public class SlaveServer 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
| Modifier and Type | Field and Description |
|---|---|
static org.pentaho.di.repository.RepositoryObjectType |
REPOSITORY_ELEMENT_TYPE |
static String |
STRING_SLAVESERVER |
static String |
XML_TAG |
| Constructor and Description |
|---|
SlaveServer() |
SlaveServer(Node slaveNode) |
SlaveServer(String name,
String hostname,
String port,
String username,
String password) |
SlaveServer(String name,
String hostname,
String port,
String username,
String password,
String proxyHostname,
String proxyPort,
String nonProxyHosts,
boolean master) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCredentials(org.apache.commons.httpclient.HttpClient client) |
void |
addProxy(org.apache.commons.httpclient.HttpClient client) |
int |
allocateServerSocket(String runId,
int portRangeStart,
String hostname,
String transformationName,
String sourceSlaveName,
String sourceStepName,
String sourceStepCopy,
String targetSlaveName,
String targetStepName,
String targetStepCopy) |
org.pentaho.di.www.WebResult |
cleanupTransformation(String transName,
String carteObjectId) |
Object |
clone() |
String |
constructUrl(String serviceAndArguments) |
void |
copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space) |
org.pentaho.di.www.WebResult |
deAllocateServerSockets(String transName,
String clusteredRunId) |
String |
environmentSubstitute(String aString) |
String[] |
environmentSubstitute(String[] aString) |
boolean |
equals(Object obj) |
String |
execService(String service) |
String |
execService(String service,
Map<String,String> headerValues) |
String |
fieldSubstitute(String aString,
org.pentaho.di.core.row.RowMetaInterface rowMeta,
Object[] rowData) |
static SlaveServer |
findSlaveServer(List<SlaveServer> slaveServers,
org.pentaho.di.repository.ObjectId id) |
static SlaveServer |
findSlaveServer(List<SlaveServer> slaveServers,
String name) |
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue) |
Date |
getChangedDate() |
String |
getDescription() |
String |
getHostname() |
SlaveServerJobStatus |
getJobStatus(String jobName,
String carteObjectId,
int startLogLineNr) |
org.pentaho.di.core.logging.LogChannelInterface |
getLogChannel() |
String |
getName() |
long |
getNextSlaveSequenceValue(String slaveSequenceName,
long incrementValue) |
String |
getNonProxyHosts() |
org.pentaho.di.repository.ObjectId |
getObjectId() |
org.pentaho.di.repository.ObjectRevision |
getObjectRevision() |
org.pentaho.di.core.variables.VariableSpace |
getParentVariableSpace() |
String |
getPassword() |
String |
getPort() |
String |
getPortSpecification() |
String |
getProxyHostname() |
String |
getProxyPort() |
org.pentaho.di.repository.RepositoryDirectoryInterface |
getRepositoryDirectory()
Not used in this case, simply return root /
|
org.pentaho.di.repository.RepositoryObjectType |
getRepositoryElementType() |
org.apache.commons.httpclient.methods.PostMethod |
getSendByteArrayMethod(byte[] content,
String service) |
String |
getServerAndPort() |
List<SlaveServerDetection> |
getSlaveServerDetections() |
static String[] |
getSlaveServerNames(List<SlaveServer> slaveServers) |
SlaveServerStatus |
getStatus() |
SlaveServerTransStatus |
getTransStatus(String transName,
String carteObjectId,
int startLogLineNr) |
String |
getUsername() |
String |
getVariable(String variableName) |
String |
getVariable(String variableName,
String defaultValue) |
String |
getWebAppName() |
String |
getXML() |
int |
hashCode() |
void |
initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent) |
void |
injectVariables(Map<String,String> prop) |
boolean |
isMaster() |
boolean |
isShared() |
String[] |
listVariables() |
org.pentaho.di.www.WebResult |
pauseResumeTransformation(String transName,
String carteObjectId) |
org.pentaho.di.www.WebResult |
removeJob(String jobName,
String carteObjectId) |
org.pentaho.di.www.WebResult |
removeTransformation(String transName,
String carteObjectId) |
void |
replaceMeta(SlaveServer slaveServer) |
String |
sendExport(String filename,
String type,
String load)
Send an exported archive over to this slave server
|
String |
sendXML(String xml,
String service) |
void |
setChangedDate(Date changedDate) |
void |
setDescription(String description) |
void |
setHostname(String urlString) |
void |
setMaster(boolean master) |
void |
setName(String name) |
void |
setNonProxyHosts(String nonProxyHosts) |
void |
setObjectId(org.pentaho.di.repository.ObjectId id) |
void |
setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision) |
void |
setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent) |
void |
setPassword(String password) |
void |
setPort(String port) |
void |
setProxyHostname(String proxyHostname) |
void |
setProxyPort(String proxyPort) |
void |
setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory) |
void |
setShared(boolean shared) |
void |
setUsername(String username) |
void |
setVariable(String variableName,
String variableValue) |
void |
setWebAppName(String webAppName) |
void |
shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space) |
String |
sniffStep(String transName,
String stepName,
String copyNr,
int lines,
String type)
Sniff rows on a the slave server, return xml containing the row metadata and data.
|
org.pentaho.di.www.WebResult |
startJob(String jobName,
String carteObjectId) |
org.pentaho.di.www.WebResult |
startTransformation(String transName,
String carteObjectId) |
org.pentaho.di.www.WebResult |
stopJob(String transName,
String carteObjectId) |
org.pentaho.di.www.WebResult |
stopTransformation(String transName,
String carteObjectId) |
String |
toString() |
addObserver, clearChanged, deleteObserver, hasChanged, notifyObservers, setChanged, setChangedpublic static final String STRING_SLAVESERVER
public static final String XML_TAG
public static final org.pentaho.di.repository.RepositoryObjectType REPOSITORY_ELEMENT_TYPE
public SlaveServer()
public SlaveServer(String name, String hostname, String port, String username, String password)
public SlaveServer(String name, String hostname, String port, String username, String password, String proxyHostname, String proxyPort, String nonProxyHosts, boolean master)
public SlaveServer(Node slaveNode)
public org.pentaho.di.core.logging.LogChannelInterface getLogChannel()
public String getXML()
getXML in interface org.pentaho.di.core.xml.XMLInterfacegetXML in interface org.pentaho.di.shared.SharedObjectInterfacepublic void replaceMeta(SlaveServer slaveServer)
public String getServerAndPort()
public String getHostname()
public void setHostname(String urlString)
public String getPassword()
public void setPassword(String password)
password - the password to setpublic String getUsername()
public void setUsername(String username)
username - the username to setpublic String getWebAppName()
public void setWebAppName(String webAppName)
username - the username to setpublic String getNonProxyHosts()
public void setNonProxyHosts(String nonProxyHosts)
nonProxyHosts - the nonProxyHosts to setpublic String getProxyHostname()
public void setProxyHostname(String proxyHostname)
proxyHostname - the proxyHostname to setpublic String getProxyPort()
public void setProxyPort(String proxyPort)
proxyPort - the proxyPort to setpublic String getPortSpecification()
public String constructUrl(String serviceAndArguments) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String getPort()
public void setPort(String port)
port - the port to setpublic org.apache.commons.httpclient.methods.PostMethod getSendByteArrayMethod(byte[] content,
String service)
throws Exception
Exceptionpublic String sendExport(String filename, String type, String load) throws Exception
filename - The archive to sendtype - The type of file to add to the slave server (AddExportServlet.TYPE_*)load - The filename to load in the archive (the .kjb or .ktr)Exception - in case something goes awrypublic void addProxy(org.apache.commons.httpclient.HttpClient client)
public void addCredentials(org.apache.commons.httpclient.HttpClient client)
public boolean isMaster()
public void setMaster(boolean master)
master - the master to setpublic String execService(String service, Map<String,String> headerValues) throws Exception
Exceptionpublic SlaveServerStatus getStatus() throws Exception
Exceptionpublic List<SlaveServerDetection> getSlaveServerDetections() throws Exception
Exceptionpublic SlaveServerTransStatus getTransStatus(String transName, String carteObjectId, int startLogLineNr) throws Exception
Exceptionpublic SlaveServerJobStatus getJobStatus(String jobName, String carteObjectId, int startLogLineNr) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult stopTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult pauseResumeTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult removeTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult removeJob(String jobName, String carteObjectId) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult stopJob(String transName, String carteObjectId) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult startTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult startJob(String jobName, String carteObjectId) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult cleanupTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic org.pentaho.di.www.WebResult deAllocateServerSockets(String transName, String clusteredRunId) throws Exception
Exceptionpublic static SlaveServer findSlaveServer(List<SlaveServer> slaveServers, String name)
public static SlaveServer findSlaveServer(List<SlaveServer> slaveServers, org.pentaho.di.repository.ObjectId id)
public static String[] getSlaveServerNames(List<SlaveServer> slaveServers)
public int allocateServerSocket(String runId, int portRangeStart, String hostname, String transformationName, String sourceSlaveName, String sourceStepName, String sourceStepCopy, String targetSlaveName, String targetStepName, String targetStepCopy) throws Exception
Exceptionpublic String getName()
getName in interface org.pentaho.di.repository.RepositoryElementInterfacegetName in interface org.pentaho.di.repository.RepositoryObjectInterfacegetName in interface org.pentaho.di.shared.SharedObjectInterfacepublic void setName(String name)
setName in interface org.pentaho.di.repository.RepositoryElementInterfacepublic boolean isShared()
isShared in interface org.pentaho.di.shared.SharedObjectInterfacepublic void setShared(boolean shared)
setShared in interface org.pentaho.di.shared.SharedObjectInterfacepublic void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
copyVariablesFrom in interface org.pentaho.di.core.variables.VariableSpacepublic String environmentSubstitute(String aString)
environmentSubstitute in interface org.pentaho.di.core.variables.VariableSpacepublic String[] environmentSubstitute(String[] aString)
environmentSubstitute in interface org.pentaho.di.core.variables.VariableSpacepublic String fieldSubstitute(String aString, org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData) throws org.pentaho.di.core.exception.KettleValueException
fieldSubstitute in interface org.pentaho.di.core.variables.VariableSpaceorg.pentaho.di.core.exception.KettleValueExceptionpublic org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
getParentVariableSpace in interface org.pentaho.di.core.variables.VariableSpacepublic void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
setParentVariableSpace in interface org.pentaho.di.core.variables.VariableSpacepublic String getVariable(String variableName, String defaultValue)
getVariable in interface org.pentaho.di.core.variables.VariableSpacepublic String getVariable(String variableName)
getVariable in interface org.pentaho.di.core.variables.VariableSpacepublic boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable in interface org.pentaho.di.core.variables.VariableSpacepublic void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
initializeVariablesFrom in interface org.pentaho.di.core.variables.VariableSpacepublic String[] listVariables()
listVariables in interface org.pentaho.di.core.variables.VariableSpacepublic void setVariable(String variableName, String variableValue)
setVariable in interface org.pentaho.di.core.variables.VariableSpacepublic void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
shareVariablesWith in interface org.pentaho.di.core.variables.VariableSpacepublic void injectVariables(Map<String,String> prop)
injectVariables in interface org.pentaho.di.core.variables.VariableSpacepublic org.pentaho.di.repository.ObjectId getObjectId()
getObjectId in interface org.pentaho.di.repository.RepositoryElementInterfacegetObjectId in interface org.pentaho.di.repository.RepositoryObjectInterfacepublic void setObjectId(org.pentaho.di.repository.ObjectId id)
setObjectId in interface org.pentaho.di.repository.RepositoryElementInterfacepublic org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory in interface org.pentaho.di.repository.RepositoryElementInterfacepublic void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory)
setRepositoryDirectory in interface org.pentaho.di.repository.RepositoryElementInterfacepublic org.pentaho.di.repository.RepositoryObjectType getRepositoryElementType()
getRepositoryElementType in interface org.pentaho.di.repository.RepositoryElementInterfacepublic org.pentaho.di.repository.ObjectRevision getObjectRevision()
getObjectRevision in interface org.pentaho.di.repository.RepositoryElementInterfacepublic void setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)
setObjectRevision in interface org.pentaho.di.repository.RepositoryElementInterfacepublic String getDescription()
getDescription in interface org.pentaho.di.repository.RepositoryElementInterfacepublic void setDescription(String description)
setDescription in interface org.pentaho.di.repository.RepositoryElementInterfacepublic String sniffStep(String transName, String stepName, String copyNr, int lines, String type) throws Exception
transName - stepName - copyNr - lines - Exceptionpublic long getNextSlaveSequenceValue(String slaveSequenceName, long incrementValue) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic Date getChangedDate()
getChangedDate in interface org.pentaho.di.shared.SharedObjectInterfacepublic void setChangedDate(Date changedDate)
changedDate - the changedDate to set