public class SharedObjects extends Object
| Constructor and Description |
|---|
SharedObjects() |
SharedObjects(String sharedObjectsFile) |
| Modifier and Type | Method and Description |
|---|---|
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
|
void |
removeObject(org.pentaho.di.shared.SharedObjectInterface sharedObject)
Remove the sharedObject from the object map.
|
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.
|
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 String getFilename()
public void setFilename(String filename)
filename - the filename to setpublic 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)
clasName - 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 database