public class SharedObjects extends Object
| 构造器和说明 |
|---|
SharedObjects() |
SharedObjects(String sharedObjectsFile) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
createFilename(String sharedObjectsFile) |
String |
getFilename() |
Map<org.pentaho.di.shared.SharedObjects.SharedEntry,org.pentaho.di.shared.SharedObjectInterface> |
getObjectsMap() |
org.pentaho.di.core.database.DatabaseMeta |
getSharedDatabase(String name)
Get the shared database with the specified name
|
org.pentaho.di.shared.SharedObjectInterface |
getSharedObject(Class<org.pentaho.di.shared.SharedObjectInterface> clazz,
String objectName)
Return the shared object with the given class and name
|
org.pentaho.di.shared.SharedObjectInterface |
getSharedObject(String className,
String objectName)
Return the shared object with the given class name and object name
|
protected OutputStream |
initOutputStreamUsingKettleVFS(org.apache.commons.vfs2.FileObject fileObject) |
void |
removeObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
Remove the sharedObject from the object map.
|
protected void |
restoreFileFromBackup(String backupFileName)
Call
copyFile(String, String) method to restore file from backup |
void |
saveToFile() |
void |
setFilename(String filename) |
void |
setObjectsMap(Map<org.pentaho.di.shared.SharedObjects.SharedEntry,org.pentaho.di.shared.SharedObjectInterface> objects) |
void |
storeObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
Store the sharedObject in the object map.
|
String |
toString() |
protected void |
writeToFile(org.apache.commons.vfs2.FileObject fileObject,
String backupFileName)
Write sharedObjects to file.
|
public SharedObjects(String sharedObjectsFile) throws org.pentaho.di.core.exception.KettleXMLException
org.pentaho.di.core.exception.KettleXMLExceptionpublic SharedObjects()
throws org.pentaho.di.core.exception.KettleXMLException
org.pentaho.di.core.exception.KettleXMLExceptionpublic Map<org.pentaho.di.shared.SharedObjects.SharedEntry,org.pentaho.di.shared.SharedObjectInterface> getObjectsMap()
public void setObjectsMap(Map<org.pentaho.di.shared.SharedObjects.SharedEntry,org.pentaho.di.shared.SharedObjectInterface> objects)
public void storeObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
sharedObject - public void removeObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
sharedObject - public void saveToFile()
throws IOException,
org.pentaho.di.core.exception.KettleException
IOExceptionorg.pentaho.di.core.exception.KettleExceptionpublic org.pentaho.di.shared.SharedObjectInterface getSharedObject(Class<org.pentaho.di.shared.SharedObjectInterface> clazz, String objectName)
clazz - The class of the shared objectobjectName - the name of the objectpublic org.pentaho.di.shared.SharedObjectInterface getSharedObject(String className, String objectName)
className - The class name of the shared objectobjectName - the name of the objectpublic org.pentaho.di.core.database.DatabaseMeta getSharedDatabase(String name)
name - The name of the shared databasepublic String getFilename()
public void setFilename(String filename)
filename - the filename to setprotected void writeToFile(org.apache.commons.vfs2.FileObject fileObject,
String backupFileName)
throws IOException,
org.pentaho.di.core.exception.KettleException
fileObject - is file for writingbackupFileName - is backup file nameIOExceptionorg.pentaho.di.core.exception.KettleExceptionprotected OutputStream initOutputStreamUsingKettleVFS(org.apache.commons.vfs2.FileObject fileObject) throws IOException
IOExceptionprotected void restoreFileFromBackup(String backupFileName) throws IOException, org.pentaho.di.core.exception.KettleFileException
copyFile(String, String) method to restore file from backupbackupFileName - IOExceptionorg.pentaho.di.core.exception.KettleFileExceptionCopyright © 2024 Hitachi Vantara. All rights reserved.