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
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
KETTLE_CARTE_RETRIES |
static int |
KETTLE_CARTE_RETRY_BACKOFF_INCREMENTS |
static org.pentaho.di.repository.RepositoryObjectType |
REPOSITORY_ELEMENT_TYPE |
static String |
SSL_MODE_TAG |
static String |
STRING_SLAVESERVER |
static String |
XML_TAG |
| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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,
boolean retry) |
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) |
protected org.apache.http.client.protocol.HttpClientContext |
getAuthContext() |
static int |
getBackoffIncrements() |
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue) |
Date |
getChangedDate() |
SlaveServer |
getClient() |
static long |
getDelay(int trial) |
String |
getDescription() |
String |
getHostname() |
SlaveServerJobStatus |
getJobStatus(String jobName,
String carteObjectId,
int startLogLineNr) |
Properties |
getKettleProperties() |
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 |
getPropertiesMasterName() |
String |
getProxyHostname() |
String |
getProxyPort() |
org.pentaho.di.repository.RepositoryDirectoryInterface |
getRepositoryDirectory()
Not used in this case, simply return root /
|
org.pentaho.di.repository.RepositoryObjectType |
getRepositoryElementType() |
String |
getServerAndPort() |
List<SlaveServerDetection> |
getSlaveServerDetections() |
static String[] |
getSlaveServerNames(List<SlaveServer> slaveServers) |
SslConfiguration |
getSslConfig() |
SlaveServerStatus |
getStatus() |
SlaveServerTransStatus |
getTransStatus(String transName,
String carteObjectId,
int startLogLineNr) |
SlaveServerTransStatus |
getTransStatus(String transName,
String carteObjectId,
int startLogLineNr,
boolean sendResultXmlWithStatus) |
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 |
isOverrideExistingProperties() |
boolean |
isShared() |
boolean |
isSslMode() |
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 |
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 |
setSslMode(boolean sslMode) |
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() |
String |
verifyAndModifySlaveServerName(List<SlaveServer> slaveServers,
String oldname)
Verify the name of the slave server and if required, change it if it already exists in the list of slave servers.
|
addObserver, clearChanged, deleteObserver, hasChanged, notifyObservers, setChanged, setChangedpublic static final org.pentaho.di.repository.RepositoryObjectType REPOSITORY_ELEMENT_TYPE
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 org.pentaho.di.core.logging.LogChannelInterface getLogChannel()
public String getXML()
getXML 在接口中 org.pentaho.di.core.xml.XMLInterfacegetXML 在接口中 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)
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
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 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 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 Properties getKettleProperties() 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 在接口中 org.pentaho.di.repository.RepositoryElementInterfacegetName 在接口中 org.pentaho.di.repository.RepositoryObjectInterfacegetName 在接口中 org.pentaho.di.shared.SharedObjectInterfacepublic void setName(String name)
setName 在接口中 org.pentaho.di.repository.RepositoryElementInterfacepublic boolean isShared()
isShared 在接口中 org.pentaho.di.shared.SharedObjectInterfacepublic void setShared(boolean shared)
setShared 在接口中 org.pentaho.di.shared.SharedObjectInterfacepublic void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
copyVariablesFrom 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String environmentSubstitute(String aString)
environmentSubstitute 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String[] environmentSubstitute(String[] aString)
environmentSubstitute 在接口中 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 在接口中 org.pentaho.di.core.variables.VariableSpaceorg.pentaho.di.core.exception.KettleValueExceptionpublic org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
getParentVariableSpace 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
setParentVariableSpace 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String getVariable(String variableName, String defaultValue)
getVariable 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String getVariable(String variableName)
getVariable 在接口中 org.pentaho.di.core.variables.VariableSpacepublic boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
initializeVariablesFrom 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String[] listVariables()
listVariables 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void setVariable(String variableName, String variableValue)
setVariable 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
shareVariablesWith 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void injectVariables(Map<String,String> prop)
injectVariables 在接口中 org.pentaho.di.core.variables.VariableSpacepublic org.pentaho.di.repository.ObjectId getObjectId()
getObjectId 在接口中 org.pentaho.di.repository.RepositoryElementInterfacegetObjectId 在接口中 org.pentaho.di.repository.RepositoryObjectInterfacepublic void setObjectId(org.pentaho.di.repository.ObjectId id)
setObjectId 在接口中 org.pentaho.di.repository.RepositoryElementInterfacepublic org.pentaho.di.repository.RepositoryDirectoryInterface getRepositoryDirectory()
getRepositoryDirectory 在接口中 org.pentaho.di.repository.RepositoryElementInterfacepublic void setRepositoryDirectory(org.pentaho.di.repository.RepositoryDirectoryInterface repositoryDirectory)
setRepositoryDirectory 在接口中 org.pentaho.di.repository.RepositoryElementInterfacepublic org.pentaho.di.repository.RepositoryObjectType getRepositoryElementType()
getRepositoryElementType 在接口中 org.pentaho.di.repository.RepositoryElementInterfacepublic org.pentaho.di.repository.ObjectRevision getObjectRevision()
getObjectRevision 在接口中 org.pentaho.di.repository.RepositoryElementInterfacepublic void setObjectRevision(org.pentaho.di.repository.ObjectRevision objectRevision)
setObjectRevision 在接口中 org.pentaho.di.repository.RepositoryElementInterfacepublic String getDescription()
getDescription 在接口中 org.pentaho.di.repository.RepositoryElementInterfacepublic void setDescription(String description)
setDescription 在接口中 org.pentaho.di.repository.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 org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleExceptionpublic SlaveServer getClient()
public Date getChangedDate()
getChangedDate 在接口中 org.pentaho.di.shared.SharedObjectInterfacepublic void setSslMode(boolean sslMode)
sslMode - public boolean isSslMode()
public SslConfiguration getSslConfig()
Copyright © 2024 Hitachi Vantara. All rights reserved.