public class SlaveServer extends ChangedFlag implements Cloneable, SharedObjectInterface, VariableSpace, RepositoryElementInterface, XMLInterface
| Modifier and Type | Field and Description |
|---|---|
static int |
KETTLE_CARTE_RETRIES |
static int |
KETTLE_CARTE_RETRY_BACKOFF_INCREMENTS |
static RepositoryObjectType |
REPOSITORY_ELEMENT_TYPE |
static String |
SSL_MODE_TAG |
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) |
SlaveServer(String name,
String hostname,
String port,
String username,
String password,
String proxyHostname,
String proxyPort,
String nonProxyHosts,
boolean master,
boolean ssl) |
addObserver, clearChanged, deleteObserver, hasChanged, notifyObservers, setChanged, setChangedpublic static final String STRING_SLAVESERVER
public static final String XML_TAG
public static final RepositoryObjectType REPOSITORY_ELEMENT_TYPE
public static final String SSL_MODE_TAG
public static final int KETTLE_CARTE_RETRIES
public static final int KETTLE_CARTE_RETRY_BACKOFF_INCREMENTS
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(String name, String hostname, String port, String username, String password, String proxyHostname, String proxyPort, String nonProxyHosts, boolean master, boolean ssl)
public SlaveServer(Node slaveNode)
public static int getBackoffIncrements()
public LogChannelInterface getLogChannel()
public String getXML()
getXML in interface XMLInterfacegetXML in interface 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)
webAppName - the web application name 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 getPropertiesMasterName()
public boolean isOverrideExistingProperties()
public String getPort()
public void setPort(String port)
port - the port to setpublic String getPortSpecification()
public String constructUrl(String serviceAndArguments) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic 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 awryprotected org.apache.http.client.protocol.HttpClientContext getAuthContext()
public boolean isMaster()
public void setMaster(boolean master)
master - the master to setpublic String execService(String service, boolean retry) throws Exception
Exceptionpublic static long getDelay(int trial)
public 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 SlaveServerTransStatus getTransStatus(String transName, String carteObjectId, int startLogLineNr, boolean sendResultXmlWithStatus) throws Exception
Exceptionpublic SlaveServerJobStatus getJobStatus(String jobName, String carteObjectId, int startLogLineNr) throws Exception
Exceptionpublic WebResult stopTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic WebResult pauseResumeTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic WebResult removeTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic WebResult removeJob(String jobName, String carteObjectId) throws Exception
Exceptionpublic WebResult stopJob(String transName, String carteObjectId) throws Exception
Exceptionpublic WebResult startTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic WebResult startJob(String jobName, String carteObjectId) throws Exception
Exceptionpublic WebResult cleanupTransformation(String transName, String carteObjectId) throws Exception
Exceptionpublic WebResult deAllocateServerSockets(String transName, String clusteredRunId) throws Exception
Exceptionpublic Properties getKettleProperties() throws Exception
Exceptionpublic static SlaveServer findSlaveServer(List<SlaveServer> slaveServers, String name)
public static SlaveServer findSlaveServer(List<SlaveServer> slaveServers, 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 RepositoryElementInterfacegetName in interface RepositoryObjectInterfacegetName in interface SharedObjectInterfacepublic void setName(String name)
setName in interface RepositoryElementInterfacepublic boolean isShared()
isShared in interface SharedObjectInterfacepublic void setShared(boolean shared)
setShared in interface SharedObjectInterfacepublic void copyVariablesFrom(VariableSpace space)
copyVariablesFrom in interface VariableSpacepublic String environmentSubstitute(String aString)
environmentSubstitute in interface VariableSpacepublic String[] environmentSubstitute(String[] aString)
environmentSubstitute in interface VariableSpacepublic String fieldSubstitute(String aString, RowMetaInterface rowMeta, Object[] rowData) throws KettleValueException
fieldSubstitute in interface VariableSpaceKettleValueExceptionpublic VariableSpace getParentVariableSpace()
getParentVariableSpace in interface VariableSpacepublic void setParentVariableSpace(VariableSpace parent)
setParentVariableSpace in interface VariableSpacepublic String getVariable(String variableName, String defaultValue)
getVariable in interface VariableSpacepublic String getVariable(String variableName)
getVariable in interface VariableSpacepublic boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable in interface VariableSpacepublic void initializeVariablesFrom(VariableSpace parent)
initializeVariablesFrom in interface VariableSpacepublic String[] listVariables()
listVariables in interface VariableSpacepublic void setVariable(String variableName, String variableValue)
setVariable in interface VariableSpacepublic void shareVariablesWith(VariableSpace space)
shareVariablesWith in interface VariableSpacepublic void injectVariables(Map<String,String> prop)
injectVariables in interface VariableSpacepublic ObjectId getObjectId()
getObjectId in interface RepositoryElementInterfacegetObjectId in interface RepositoryObjectInterfacepublic void setObjectId(ObjectId id)
setObjectId in interface RepositoryElementInterfacepublic 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 String verifyAndModifySlaveServerName(List<SlaveServer> slaveServers, String oldname)
slaveServers - the slave servers to check against.oldname - the old name of the slave serverpublic String sniffStep(String transName, String stepName, String copyNr, int lines, String type) throws Exception
transName - transformation namestepName - step namecopyNr - step copy numberlines - lines numbertype - step typeExceptionpublic long getNextSlaveSequenceValue(String slaveSequenceName, long incrementValue) throws KettleException
KettleExceptionpublic SlaveServer getClient()
public Date getChangedDate()
getChangedDate in interface SharedObjectInterfacepublic void setSslMode(boolean sslMode)
sslMode - public boolean isSslMode()
public SslConfiguration getSslConfig()
Copyright © 2020 Hitachi Vantara. All rights reserved.