| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.core.changed.ChangedFlag
org.pentaho.di.cluster.ClusterSchema
public class ClusterSchema
A cluster schema combines a list of slave servers so that they can be set altogether. It (can) also contain a number of performance tuning options regarding this cluster. For example options regarding communications with the master node of the nodes themselves come to mind.
| Field Summary | |
|---|---|
| static RepositoryObjectType | REPOSITORY_ELEMENT_TYPE | 
| static String | XML_TAG | 
| Constructor Summary | |
|---|---|
| ClusterSchema() | |
| ClusterSchema(Node clusterSchemaNode,
              List<SlaveServer> referenceSlaveServers) | |
| ClusterSchema(String name,
              List<SlaveServer> slaveServers) | |
| Method Summary | |
|---|---|
|  ClusterSchema | clone() | 
|  void | copyVariablesFrom(VariableSpace space)Copy the variables from another space, without initializing with the defaults. | 
|  String | environmentSubstitute(String aString)Substitute the string using the current variable space. | 
|  String[] | environmentSubstitute(String[] aString)Replaces environment variables in an array of strings. | 
|  boolean | equals(Object obj) | 
|  SlaveServer | findMaster() | 
|  int | findNrSlaves() | 
|  SlaveServer | findSlaveServer(String slaveServerName) | 
|  String | getBasePort() | 
|  boolean | getBooleanValueOfVariable(String variableName,
                          boolean defaultValue)This method returns a boolean for the new variable check boxes. | 
|  Date | getChangedDate() | 
|  String | getDescription() | 
|  String | getName()The name of the repository object | 
|  ObjectId | getObjectId()The id of the object | 
|  ObjectRevision | getObjectRevision() | 
|  VariableSpace | getParentVariableSpace()Get the parent of the variable space. | 
|  RepositoryDirectoryInterface | getRepositoryDirectory()Not supported for Partition schema, return the root. | 
|  RepositoryObjectType | getRepositoryElementType() | 
|  List<SlaveServer> | getSlaveServers() | 
|  List<SlaveServer> | getSlaveServersFromMasterOrLocal() | 
|  String[] | getSlaveServerStrings() | 
|  String | getSocketsBufferSize() | 
|  String | getSocketsFlushInterval() | 
|  String | getVariable(String variableName)Get the value of a variable. | 
|  String | getVariable(String variableName,
            String defaultValue)Get the value of a variable with a default in case the variable is not found. | 
|  String | getXML()Describes the Object implementing this interface as XML | 
|  int | hashCode() | 
|  void | initializeVariablesFrom(VariableSpace parent)Initialize variable space using the defaults, copy over the variables from the parent (using copyVariablesFrom()), after this the "injected" variables should be inserted (injectVariables()). | 
|  void | injectVariables(Map<String,String> prop)Inject variables. | 
|  boolean | isDynamic() | 
|  boolean | isShared() | 
|  boolean | isSocketsCompressed() | 
|  String[] | listVariables()List the variables (not the values) that are currently in the variable space. | 
|  void | replaceMeta(ClusterSchema clusterSchema) | 
|  void | setBasePort(String basePort) | 
|  void | setChangedDate(Date changedDate) | 
|  void | setDescription(String description) | 
|  void | setDynamic(boolean dynamic) | 
|  void | setName(String name) | 
|  void | setObjectId(ObjectId id) | 
|  void | setObjectRevision(ObjectRevision objectRevision) | 
|  void | setParentVariableSpace(VariableSpace parent)Set the parent variable space | 
|  void | setRepositoryDirectory(RepositoryDirectoryInterface repositoryDirectory) | 
|  void | setShared(boolean shared) | 
|  void | setSlaveServers(List<SlaveServer> slaveServers) | 
|  void | setSocketsBufferSize(String socketsBufferSize) | 
|  void | setSocketsCompressed(boolean socketsCompressed) | 
|  void | setSocketsFlushInterval(String socketFlushInterval) | 
|  void | setVariable(String variableName,
            String variableValue)Sets a variable in the Kettle Variables list. | 
|  void | shareVariablesWith(VariableSpace space)Share a variable space from another variable space. | 
|  String | toString() | 
| Methods inherited from class org.pentaho.di.core.changed.ChangedFlag | 
|---|
| addObserver, clearChanged, deleteObserver, hasChanged, notifyObservers, setChanged, setChanged | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final String XML_TAG
public static final RepositoryObjectType REPOSITORY_ELEMENT_TYPE
| Constructor Detail | 
|---|
public ClusterSchema()
public ClusterSchema(String name,
                     List<SlaveServer> slaveServers)
name - slaveServers - 
public ClusterSchema(Node clusterSchemaNode,
                     List<SlaveServer> referenceSlaveServers)
| Method Detail | 
|---|
public ClusterSchema clone()
clone in class Objectpublic void replaceMeta(ClusterSchema clusterSchema)
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getXML()
XMLInterface
getXML in interface XMLInterfacegetXML in interface SharedObjectInterfacepublic String getName()
RepositoryObjectInterface
getName in interface RepositoryElementInterfacegetName in interface RepositoryObjectInterfacegetName in interface SharedObjectInterfacepublic void setName(String name)
setName in interface RepositoryElementInterfacename - the name to setpublic List<SlaveServer> getSlaveServers()
public void setSlaveServers(List<SlaveServer> slaveServers)
slaveServers - the slaveServers to setpublic String[] getSlaveServerStrings()
public boolean isShared()
isShared in interface SharedObjectInterfacepublic void setShared(boolean shared)
setShared in interface SharedObjectInterfaceshared - the shared to setpublic String getBasePort()
public void setBasePort(String basePort)
basePort - the basePort to set
public SlaveServer findMaster()
                       throws KettleException
KettleExceptionpublic int findNrSlaves()
public String getSocketsFlushInterval()
public void setSocketsFlushInterval(String socketFlushInterval)
socketFlushInterval - the socketFlushInterval to setpublic String getSocketsBufferSize()
public void setSocketsBufferSize(String socketsBufferSize)
socketsBufferSize - the socketsBufferSize to setpublic boolean isSocketsCompressed()
public void setSocketsCompressed(boolean socketsCompressed)
socketsCompressed - the socketsCompressed to setpublic SlaveServer findSlaveServer(String slaveServerName)
public ObjectId getObjectId()
RepositoryObjectInterface
getObjectId in interface RepositoryElementInterfacegetObjectId in interface RepositoryObjectInterfacepublic void setObjectId(ObjectId id)
setObjectId in interface RepositoryElementInterfacepublic void copyVariablesFrom(VariableSpace space)
VariableSpace
copyVariablesFrom in interface VariableSpacespace - the space to copy the variables from.public String environmentSubstitute(String aString)
VariableSpace
environmentSubstitute in interface VariableSpaceaString - The string to substitute.
public String[] environmentSubstitute(String[] aString)
VariableSpace
environmentSubstitute in interface VariableSpaceaString - The array of strings that wants its variables to be replaced.
public VariableSpace getParentVariableSpace()
VariableSpace
getParentVariableSpace in interface VariableSpacepublic void setParentVariableSpace(VariableSpace parent)
VariableSpace
setParentVariableSpace in interface VariableSpaceparent - The parent variable space to set
public String getVariable(String variableName,
                          String defaultValue)
VariableSpace
getVariable in interface VariableSpacevariableName - The name of the variabledefaultValue - The default value in case the variable could not be 
                     found
public String getVariable(String variableName)
VariableSpace
getVariable in interface VariableSpacevariableName - The name of the variable
public boolean getBooleanValueOfVariable(String variableName,
                                         boolean defaultValue)
VariableSpace
getBooleanValueOfVariable in interface VariableSpacevariableName - The variable to look up.defaultValue - The default value to return.
static method ValueMeta.convertStringToBoolean()public void initializeVariablesFrom(VariableSpace parent)
VariableSpace
initializeVariablesFrom in interface VariableSpaceparent - the parent to start from, or null if root.public String[] listVariables()
VariableSpace
listVariables in interface VariableSpace
public void setVariable(String variableName,
                        String variableValue)
VariableSpace
setVariable in interface VariableSpacevariableName - The name of the variable to setvariableValue - The value of the variable to set.  If the 
                      variableValue is null, the variable is cleared 
                      from the list.public void shareVariablesWith(VariableSpace space)
VariableSpace
shareVariablesWith in interface VariableSpacespace - Variable space to be shared.public void injectVariables(Map<String,String> prop)
VariableSpace
injectVariables in interface VariableSpaceprop - Properties object containing key-value pairs.public boolean isDynamic()
public void setDynamic(boolean dynamic)
dynamic - the dynamic to set
public List<SlaveServer> getSlaveServersFromMasterOrLocal()
                                                   throws KettleException
KettleException - when none of the masters can be contacted.public RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory in interface RepositoryElementInterfacepublic void setRepositoryDirectory(RepositoryDirectoryInterface repositoryDirectory)
setRepositoryDirectory in interface RepositoryElementInterfacepublic RepositoryObjectType getRepositoryElementType()
getRepositoryElementType in interface RepositoryElementInterfacepublic ObjectRevision getObjectRevision()
getObjectRevision in interface RepositoryElementInterfacepublic void setObjectRevision(ObjectRevision objectRevision)
setObjectRevision in interface RepositoryElementInterfacepublic String getDescription()
getDescription in interface RepositoryElementInterfacepublic void setDescription(String description)
setDescription in interface RepositoryElementInterfacepublic Date getChangedDate()
getChangedDate in interface SharedObjectInterfacepublic void setChangedDate(Date changedDate)
changedDate - the changedDate to set| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||