Package org.pentaho.di.cluster
Class ClusterSchema
java.lang.Object
org.pentaho.di.core.changed.ChangedFlag
org.pentaho.di.cluster.ClusterSchema
- All Implemented Interfaces:
Cloneable,ChangedFlagInterface,org.pentaho.di.core.variables.VariableSpace,org.pentaho.di.core.xml.XMLInterface,org.pentaho.di.repository.RepositoryElementInterface,org.pentaho.di.repository.RepositoryObjectInterface,org.pentaho.di.shared.SharedObjectInterface
public class ClusterSchema
extends ChangedFlag
implements Cloneable, org.pentaho.di.shared.SharedObjectInterface, org.pentaho.di.core.variables.VariableSpace, org.pentaho.di.repository.RepositoryElementInterface, org.pentaho.di.core.xml.XMLInterface
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.
- Since:
- 17-nov-2006
- Author:
- Matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.pentaho.di.repository.RepositoryObjectTypestatic final String -
Constructor Summary
ConstructorsConstructorDescriptionClusterSchema(String name, List<SlaveServer> slaveServers) ClusterSchema(Node clusterSchemaNode, List<SlaveServer> referenceSlaveServers) -
Method Summary
Modifier and TypeMethodDescriptionclone()voidcopyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space) environmentSubstitute(String aString) String[]environmentSubstitute(String[] aString) booleanfieldSubstitute(String aString, org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData) intfindSlaveServer(String slaveServerName) booleangetBooleanValueOfVariable(String variableName, boolean defaultValue) getName()org.pentaho.di.repository.ObjectIdorg.pentaho.di.repository.ObjectRevisionorg.pentaho.di.core.variables.VariableSpaceorg.pentaho.di.repository.RepositoryDirectoryInterfaceNot supported for Partition schema, return the root.org.pentaho.di.repository.RepositoryObjectTypeString[]getVariable(String variableName) getVariable(String variableName, String defaultValue) getXML()inthashCode()voidinitializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent) voidinjectVariables(Map<String, String> prop) booleanbooleanisShared()booleanString[]voidreplaceMeta(ClusterSchema clusterSchema) voidsetBasePort(String basePort) voidsetChangedDate(Date changedDate) voidsetDescription(String description) voidsetDynamic(boolean dynamic) voidvoidsetObjectId(org.pentaho.di.repository.ObjectId id) voidsetObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision) voidsetParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent) voidsetRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory) voidsetShared(boolean shared) voidsetSlaveServers(List<SlaveServer> slaveServers) voidsetSocketsBufferSize(String socketsBufferSize) voidsetSocketsCompressed(boolean socketsCompressed) voidsetSocketsFlushInterval(String socketFlushInterval) voidsetVariable(String variableName, String variableValue) voidshareVariablesWith(org.pentaho.di.core.variables.VariableSpace space) toString()Methods inherited from class org.pentaho.di.core.changed.ChangedFlag
addObserver, clearChanged, deleteObserver, hasChanged, notifyObservers, setChanged, setChangedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pentaho.di.core.variables.VariableSpace
environmentSubstitute
-
Field Details
-
XML_TAG
- See Also:
-
REPOSITORY_ELEMENT_TYPE
public static final org.pentaho.di.repository.RepositoryObjectType REPOSITORY_ELEMENT_TYPE
-
-
Constructor Details
-
ClusterSchema
public ClusterSchema() -
ClusterSchema
- Parameters:
name-slaveServers-
-
ClusterSchema
-
-
Method Details
-
clone
-
replaceMeta
-
toString
-
equals
-
hashCode
public int hashCode() -
getXML
- Specified by:
getXMLin interfaceorg.pentaho.di.shared.SharedObjectInterface- Specified by:
getXMLin interfaceorg.pentaho.di.core.xml.XMLInterface
-
getName
- Specified by:
getNamein interfaceorg.pentaho.di.repository.RepositoryElementInterface- Specified by:
getNamein interfaceorg.pentaho.di.repository.RepositoryObjectInterface- Specified by:
getNamein interfaceorg.pentaho.di.shared.SharedObjectInterface- Returns:
- the name
-
setName
- Specified by:
setNamein interfaceorg.pentaho.di.repository.RepositoryElementInterface- Parameters:
name- the name to set
-
getSlaveServers
- Returns:
- the internal (static) list of slave servers
-
setSlaveServers
- Parameters:
slaveServers- the slaveServers to set
-
getSlaveServerStrings
- Returns:
- The slave server strings from this cluster schema
-
getBasePort
- Returns:
- the basePort
-
setBasePort
- Parameters:
basePort- the basePort to set
-
findMaster
- Throws:
org.pentaho.di.core.exception.KettleException
-
findNrSlaves
public int findNrSlaves()- Returns:
- The number of slave servers, excluding the master server
-
getSocketsFlushInterval
- Returns:
- the socketFlushInterval
-
setSocketsFlushInterval
- Parameters:
socketFlushInterval- the socketFlushInterval to set
-
getSocketsBufferSize
- Returns:
- the socketsBufferSize
-
setSocketsBufferSize
- Parameters:
socketsBufferSize- the socketsBufferSize to set
-
isSocketsCompressed
public boolean isSocketsCompressed()- Returns:
- the socketsCompressed
-
setSocketsCompressed
public void setSocketsCompressed(boolean socketsCompressed) - Parameters:
socketsCompressed- the socketsCompressed to set
-
findSlaveServer
-
getObjectId
public org.pentaho.di.repository.ObjectId getObjectId()- Specified by:
getObjectIdin interfaceorg.pentaho.di.repository.RepositoryElementInterface- Specified by:
getObjectIdin interfaceorg.pentaho.di.repository.RepositoryObjectInterface
-
setObjectId
public void setObjectId(org.pentaho.di.repository.ObjectId id) - Specified by:
setObjectIdin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
copyVariablesFrom
public void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space) - Specified by:
copyVariablesFromin interfaceorg.pentaho.di.core.variables.VariableSpace
-
environmentSubstitute
- Specified by:
environmentSubstitutein interfaceorg.pentaho.di.core.variables.VariableSpace
-
environmentSubstitute
- Specified by:
environmentSubstitutein interfaceorg.pentaho.di.core.variables.VariableSpace
-
fieldSubstitute
public String fieldSubstitute(String aString, org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData) throws org.pentaho.di.core.exception.KettleValueException - Specified by:
fieldSubstitutein interfaceorg.pentaho.di.core.variables.VariableSpace- Throws:
org.pentaho.di.core.exception.KettleValueException
-
getParentVariableSpace
public org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()- Specified by:
getParentVariableSpacein interfaceorg.pentaho.di.core.variables.VariableSpace
-
setParentVariableSpace
public void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent) - Specified by:
setParentVariableSpacein interfaceorg.pentaho.di.core.variables.VariableSpace
-
getVariable
- Specified by:
getVariablein interfaceorg.pentaho.di.core.variables.VariableSpace
-
getVariable
- Specified by:
getVariablein interfaceorg.pentaho.di.core.variables.VariableSpace
-
getBooleanValueOfVariable
- Specified by:
getBooleanValueOfVariablein interfaceorg.pentaho.di.core.variables.VariableSpace
-
initializeVariablesFrom
public void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent) - Specified by:
initializeVariablesFromin interfaceorg.pentaho.di.core.variables.VariableSpace
-
listVariables
- Specified by:
listVariablesin interfaceorg.pentaho.di.core.variables.VariableSpace
-
setVariable
- Specified by:
setVariablein interfaceorg.pentaho.di.core.variables.VariableSpace
-
injectVariables
- Specified by:
injectVariablesin interfaceorg.pentaho.di.core.variables.VariableSpace
-
isDynamic
public boolean isDynamic()- Returns:
- the dynamic
-
setDynamic
public void setDynamic(boolean dynamic) - Parameters:
dynamic- the dynamic to set
-
getSlaveServersFromMasterOrLocal
public List<SlaveServer> getSlaveServersFromMasterOrLocal() throws org.pentaho.di.core.exception.KettleException- Returns:
- A list of dynamic slave servers, retrieved from the first master server that was available.
- Throws:
org.pentaho.di.core.exception.KettleException- when none of the masters can be contacted.
-
getRepositoryDirectory
public org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()Not supported for Partition schema, return the root.- Specified by:
getRepositoryDirectoryin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
setRepositoryDirectory
public void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory) - Specified by:
setRepositoryDirectoryin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
getRepositoryElementType
public org.pentaho.di.repository.RepositoryObjectType getRepositoryElementType()- Specified by:
getRepositoryElementTypein interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
getObjectRevision
public org.pentaho.di.repository.ObjectRevision getObjectRevision()- Specified by:
getObjectRevisionin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
setObjectRevision
public void setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision) - Specified by:
setObjectRevisionin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
getDescription
- Specified by:
getDescriptionin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
setDescription
- Specified by:
setDescriptionin interfaceorg.pentaho.di.repository.RepositoryElementInterface
-
getChangedDate
- Specified by:
getChangedDatein interfaceorg.pentaho.di.shared.SharedObjectInterface- Returns:
- the changedDate
-
setChangedDate
- Parameters:
changedDate- the changedDate to set
-