public class DumpToFilePentahoSystemListener extends Object implements IPentahoSystemListener
To use:
systemListeners.xml
:
<bean id="dumpToFilePentahoSystemListener" class="org.pentaho.platform.repository2.unified.jcr.DumpToFilePentahoSystemListener" />
-Dpentaho.repository.dumpToFile=/tmp/repodumpor
-Dpentaho.repository.dumpToFile.systemView=/tmp/repodumpor
-Dpentaho.repository.dumpToFile.documentView=/tmp/repodump
Uses PentahoSystem instead of Spring injection since its collaborators are not yet instantiated when this class is instantiated.
Modifier and Type | Class and Description |
---|---|
static class |
DumpToFilePentahoSystemListener.DumpToFileTraversingItemVisitor |
Modifier and Type | Field and Description |
---|---|
static String |
PROP_DUMP_TO_FILE
Exports the repository using a custom TraversingItemVisitor.
|
static String |
PROP_DUMP_TO_FILE_DOCUMENT_VIEW
Exports the repository using Document View.
|
static String |
PROP_DUMP_TO_FILE_SYSTEM_VIEW
Exports the repository using System View.
|
Constructor and Description |
---|
DumpToFilePentahoSystemListener() |
Modifier and Type | Method and Description |
---|---|
protected IPentahoSession |
createRepositoryAdminPentahoSession(String repositoryAdminUsername) |
String |
getFileName() |
void |
setFileName(String fileName) |
void |
shutdown() |
boolean |
startup(IPentahoSession pentahoSession) |
public static final String PROP_DUMP_TO_FILE
public static final String PROP_DUMP_TO_FILE_SYSTEM_VIEW
public static final String PROP_DUMP_TO_FILE_DOCUMENT_VIEW
public boolean startup(IPentahoSession pentahoSession)
startup
in interface IPentahoSystemListener
protected IPentahoSession createRepositoryAdminPentahoSession(String repositoryAdminUsername)
public void shutdown()
shutdown
in interface IPentahoSystemListener
public String getFileName()
public void setFileName(String fileName)
Copyright © 2017 Hitachi Vantara. All rights reserved.