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, setChanged
public 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 XMLInterface
getXML
in interface 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)
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
UnsupportedEncodingException
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 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
Exception
public static long getDelay(int trial)
public 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 SlaveServerTransStatus getTransStatus(String transName, String carteObjectId, int startLogLineNr, boolean sendResultXmlWithStatus) throws Exception
Exception
public SlaveServerJobStatus getJobStatus(String jobName, String carteObjectId, int startLogLineNr) throws Exception
Exception
public WebResult stopTransformation(String transName, String carteObjectId) throws Exception
Exception
public WebResult pauseResumeTransformation(String transName, String carteObjectId) throws Exception
Exception
public WebResult removeTransformation(String transName, String carteObjectId) throws Exception
Exception
public WebResult removeJob(String jobName, String carteObjectId) throws Exception
Exception
public WebResult stopJob(String transName, String carteObjectId) throws Exception
Exception
public WebResult startTransformation(String transName, String carteObjectId) throws Exception
Exception
public WebResult startJob(String jobName, String carteObjectId) throws Exception
Exception
public WebResult cleanupTransformation(String transName, String carteObjectId) throws Exception
Exception
public WebResult deAllocateServerSockets(String transName, String clusteredRunId) throws Exception
Exception
public Properties getKettleProperties() throws Exception
Exception
public 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
Exception
public String getName()
getName
in interface RepositoryElementInterface
getName
in interface RepositoryObjectInterface
getName
in interface SharedObjectInterface
public void setName(String name)
setName
in interface RepositoryElementInterface
public boolean isShared()
isShared
in interface SharedObjectInterface
public void setShared(boolean shared)
setShared
in interface SharedObjectInterface
public void copyVariablesFrom(VariableSpace space)
copyVariablesFrom
in interface VariableSpace
public String environmentSubstitute(String aString)
environmentSubstitute
in interface VariableSpace
public String[] environmentSubstitute(String[] aString)
environmentSubstitute
in interface VariableSpace
public String fieldSubstitute(String aString, RowMetaInterface rowMeta, Object[] rowData) throws KettleValueException
fieldSubstitute
in interface VariableSpace
KettleValueException
public VariableSpace getParentVariableSpace()
getParentVariableSpace
in interface VariableSpace
public void setParentVariableSpace(VariableSpace parent)
setParentVariableSpace
in interface VariableSpace
public String getVariable(String variableName, String defaultValue)
getVariable
in interface VariableSpace
public String getVariable(String variableName)
getVariable
in interface VariableSpace
public boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable
in interface VariableSpace
public void initializeVariablesFrom(VariableSpace parent)
initializeVariablesFrom
in interface VariableSpace
public String[] listVariables()
listVariables
in interface VariableSpace
public void setVariable(String variableName, String variableValue)
setVariable
in interface VariableSpace
public void shareVariablesWith(VariableSpace space)
shareVariablesWith
in interface VariableSpace
public void injectVariables(Map<String,String> prop)
injectVariables
in interface VariableSpace
public ObjectId getObjectId()
getObjectId
in interface RepositoryElementInterface
getObjectId
in interface RepositoryObjectInterface
public void setObjectId(ObjectId id)
setObjectId
in interface RepositoryElementInterface
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 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 typeException
public long getNextSlaveSequenceValue(String slaveSequenceName, long incrementValue) throws KettleException
KettleException
public SlaveServer getClient()
public Date getChangedDate()
getChangedDate
in interface SharedObjectInterface
public void setSslMode(boolean sslMode)
sslMode
- public boolean isSslMode()
public SslConfiguration getSslConfig()
Copyright © 2018 Hitachi Vantara. All rights reserved.