|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Object
public void replaceMeta(ClusterSchema clusterSchema)
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getXML()
XMLInterface
getXML
in interface XMLInterface
getXML
in interface SharedObjectInterface
public String getName()
RepositoryObjectInterface
getName
in interface RepositoryElementInterface
getName
in interface RepositoryObjectInterface
getName
in interface SharedObjectInterface
public void setName(String name)
setName
in interface RepositoryElementInterface
name
- 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 SharedObjectInterface
public void setShared(boolean shared)
setShared
in interface SharedObjectInterface
shared
- the shared to setpublic String getBasePort()
public void setBasePort(String basePort)
basePort
- the basePort to setpublic SlaveServer findMaster() throws KettleException
KettleException
public 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 RepositoryElementInterface
getObjectId
in interface RepositoryObjectInterface
public void setObjectId(ObjectId id)
setObjectId
in interface RepositoryElementInterface
public void copyVariablesFrom(VariableSpace space)
VariableSpace
copyVariablesFrom
in interface VariableSpace
space
- the space to copy the variables from.public String environmentSubstitute(String aString)
VariableSpace
environmentSubstitute
in interface VariableSpace
aString
- The string to substitute.
public String[] environmentSubstitute(String[] aString)
VariableSpace
environmentSubstitute
in interface VariableSpace
aString
- The array of strings that wants its variables to be replaced.
public VariableSpace getParentVariableSpace()
VariableSpace
getParentVariableSpace
in interface VariableSpace
public void setParentVariableSpace(VariableSpace parent)
VariableSpace
setParentVariableSpace
in interface VariableSpace
parent
- The parent variable space to setpublic String getVariable(String variableName, String defaultValue)
VariableSpace
getVariable
in interface VariableSpace
variableName
- 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 VariableSpace
variableName
- The name of the variable
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
VariableSpace
getBooleanValueOfVariable
in interface VariableSpace
variableName
- The variable to look up.defaultValue
- The default value to return.
static method ValueMeta.convertStringToBoolean()
public void initializeVariablesFrom(VariableSpace parent)
VariableSpace
initializeVariablesFrom
in interface VariableSpace
parent
- 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 VariableSpace
variableName
- 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 VariableSpace
space
- Variable space to be shared.public void injectVariables(Map<String,String> prop)
VariableSpace
injectVariables
in interface VariableSpace
prop
- Properties object containing key-value pairs.public boolean isDynamic()
public void setDynamic(boolean dynamic)
dynamic
- the dynamic to setpublic List<SlaveServer> getSlaveServersFromMasterOrLocal() throws KettleException
KettleException
- when none of the masters can be contacted.public RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory
in interface RepositoryElementInterface
public void setRepositoryDirectory(RepositoryDirectoryInterface repositoryDirectory)
setRepositoryDirectory
in interface RepositoryElementInterface
public RepositoryObjectType getRepositoryElementType()
getRepositoryElementType
in interface RepositoryElementInterface
public ObjectRevision getObjectRevision()
getObjectRevision
in interface RepositoryElementInterface
public void setObjectRevision(ObjectRevision objectRevision)
setObjectRevision
in interface RepositoryElementInterface
public String getDescription()
getDescription
in interface RepositoryElementInterface
public void setDescription(String description)
setDescription
in interface RepositoryElementInterface
public Date getChangedDate()
getChangedDate
in interface SharedObjectInterface
public 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 |