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, setChanged
public 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.XMLInterface
getXML
in interface org.pentaho.di.shared.SharedObjectInterface
public 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
UnsupportedEncodingException
public 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
Exception
public 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
Exception
public SlaveServerStatus getStatus() throws Exception
Exception
public List<SlaveServerDetection> getSlaveServerDetections() throws Exception
Exception
public SlaveServerTransStatus getTransStatus(String transName, String carteObjectId, int startLogLineNr) throws Exception
Exception
public SlaveServerJobStatus getJobStatus(String jobName, String carteObjectId, int startLogLineNr) throws Exception
Exception
public org.pentaho.di.www.WebResult stopTransformation(String transName, String carteObjectId) throws Exception
Exception
public org.pentaho.di.www.WebResult pauseResumeTransformation(String transName, String carteObjectId) throws Exception
Exception
public org.pentaho.di.www.WebResult removeTransformation(String transName, String carteObjectId) throws Exception
Exception
public org.pentaho.di.www.WebResult removeJob(String jobName, String carteObjectId) throws Exception
Exception
public org.pentaho.di.www.WebResult stopJob(String transName, String carteObjectId) throws Exception
Exception
public org.pentaho.di.www.WebResult startTransformation(String transName, String carteObjectId) throws Exception
Exception
public org.pentaho.di.www.WebResult startJob(String jobName, String carteObjectId) throws Exception
Exception
public org.pentaho.di.www.WebResult cleanupTransformation(String transName, String carteObjectId) throws Exception
Exception
public org.pentaho.di.www.WebResult deAllocateServerSockets(String transName, String clusteredRunId) throws Exception
Exception
public 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
Exception
public String getName()
getName
in interface org.pentaho.di.repository.RepositoryElementInterface
getName
in interface org.pentaho.di.repository.RepositoryObjectInterface
getName
in interface org.pentaho.di.shared.SharedObjectInterface
public void setName(String name)
setName
in interface org.pentaho.di.repository.RepositoryElementInterface
public boolean isShared()
isShared
in interface org.pentaho.di.shared.SharedObjectInterface
public void setShared(boolean shared)
setShared
in interface org.pentaho.di.shared.SharedObjectInterface
public void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
copyVariablesFrom
in interface org.pentaho.di.core.variables.VariableSpace
public String environmentSubstitute(String aString)
environmentSubstitute
in interface org.pentaho.di.core.variables.VariableSpace
public String[] environmentSubstitute(String[] aString)
environmentSubstitute
in interface org.pentaho.di.core.variables.VariableSpace
public 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.VariableSpace
org.pentaho.di.core.exception.KettleValueException
public org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
getParentVariableSpace
in interface org.pentaho.di.core.variables.VariableSpace
public void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
setParentVariableSpace
in interface org.pentaho.di.core.variables.VariableSpace
public String getVariable(String variableName, String defaultValue)
getVariable
in interface org.pentaho.di.core.variables.VariableSpace
public String getVariable(String variableName)
getVariable
in interface org.pentaho.di.core.variables.VariableSpace
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable
in interface org.pentaho.di.core.variables.VariableSpace
public void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
initializeVariablesFrom
in interface org.pentaho.di.core.variables.VariableSpace
public String[] listVariables()
listVariables
in interface org.pentaho.di.core.variables.VariableSpace
public void setVariable(String variableName, String variableValue)
setVariable
in interface org.pentaho.di.core.variables.VariableSpace
public void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
shareVariablesWith
in interface org.pentaho.di.core.variables.VariableSpace
public void injectVariables(Map<String,String> prop)
injectVariables
in interface org.pentaho.di.core.variables.VariableSpace
public org.pentaho.di.repository.ObjectId getObjectId()
getObjectId
in interface org.pentaho.di.repository.RepositoryElementInterface
getObjectId
in interface org.pentaho.di.repository.RepositoryObjectInterface
public void setObjectId(org.pentaho.di.repository.ObjectId id)
setObjectId
in interface org.pentaho.di.repository.RepositoryElementInterface
public org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory
in interface org.pentaho.di.repository.RepositoryElementInterface
public void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory)
setRepositoryDirectory
in interface org.pentaho.di.repository.RepositoryElementInterface
public org.pentaho.di.repository.RepositoryObjectType getRepositoryElementType()
getRepositoryElementType
in interface org.pentaho.di.repository.RepositoryElementInterface
public org.pentaho.di.repository.ObjectRevision getObjectRevision()
getObjectRevision
in interface org.pentaho.di.repository.RepositoryElementInterface
public void setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)
setObjectRevision
in interface org.pentaho.di.repository.RepositoryElementInterface
public String getDescription()
getDescription
in interface org.pentaho.di.repository.RepositoryElementInterface
public void setDescription(String description)
setDescription
in interface org.pentaho.di.repository.RepositoryElementInterface
public String sniffStep(String transName, String stepName, String copyNr, int lines, String type) throws Exception
transName
- stepName
- copyNr
- lines
- Exception
public long getNextSlaveSequenceValue(String slaveSequenceName, long incrementValue) throws org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleException
public Date getChangedDate()
getChangedDate
in interface org.pentaho.di.shared.SharedObjectInterface
public void setChangedDate(Date changedDate)
changedDate
- the changedDate to set