Package org.pentaho.di.trans.step
Class RemoteStep
java.lang.Object
org.pentaho.di.trans.step.RemoteStep
- All Implemented Interfaces:
Cloneable
,Comparable<RemoteStep>
,org.pentaho.di.core.xml.XMLInterface
public class RemoteStep
extends Object
implements Cloneable, org.pentaho.di.core.xml.XMLInterface, Comparable<RemoteStep>
Defines and handles communication to and from remote steps.
TODO: add compression as a parameter/option TODO add buffer size as a parameter
- Author:
- Matt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BufferedOutputStream
protected org.pentaho.di.core.row.RowMetaInterface
static final String
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteStep
(String hostname, String remoteHostname, String port, String sourceStep, int sourceStepCopyNr, String targetStep, int targetStepCopyNr, String sourceSlaveServerName, String targetSlaveServerName, int bufferSize, boolean compressingStreams, org.pentaho.di.core.row.RowMetaInterface rowMeta) RemoteStep
(Node node) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Close left-over sockets, streams and so on.clone()
int
compareTo
(RemoteStep remoteStep) boolean
protected void
finalize()
int
byte[]
getKey()
getPort()
intorg.pentaho.di.core.row.RowMetaInterface
int
int
getXML()
int
hashCode()
boolean
boolean
org.pentaho.di.core.BlockingRowSet
openReaderSocket
(BaseStep baseStep) void
openServerSocket
(BaseStep baseStep) org.pentaho.di.core.BlockingRowSet
Open a socket for writing.void
setBufferSize
(int bufferSize) void
setCompressingStreams
(boolean compressingStreams) void
setEncryptingStreams
(boolean encryptingStreams) void
setHostname
(String hostname) void
setKey
(byte[] key) void
void
setRemoteHostname
(String remoteHostname) void
setRowMeta
(org.pentaho.di.core.row.RowMetaInterface rowMeta) void
void
setSourceSlaveServerName
(String sourceSlaveServerName) void
setSourceStep
(String sourceStep) void
setSourceStepCopyNr
(int sourceStepCopyNr) void
setTargetSlaveServerName
(String targetSlaveServerName) void
setTargetStep
(String targetStep) void
setTargetStepCopyNr
(int targetStepCopyNr) toString()
-
Field Details
-
XML_TAG
- See Also:
-
stopped
-
bufferedOutputStream
-
rowMeta
protected org.pentaho.di.core.row.RowMetaInterface rowMeta
-
-
Constructor Details
-
RemoteStep
public RemoteStep(String hostname, String remoteHostname, String port, String sourceStep, int sourceStepCopyNr, String targetStep, int targetStepCopyNr, String sourceSlaveServerName, String targetSlaveServerName, int bufferSize, boolean compressingStreams, org.pentaho.di.core.row.RowMetaInterface rowMeta) - Parameters:
hostname
-remoteHostname
-port
-sourceStep
-sourceStepCopyNr
-targetStep
-targetStepCopyNr
-sourceSlaveServerName
-targetSlaveServerName
-bufferSize
-compressingStreams
-rowMeta
- The expected row layout to pass through this step. (input or output)
-
RemoteStep
- Throws:
org.pentaho.di.core.exception.KettleException
-
-
Method Details
-
clone
-
getXML
- Specified by:
getXML
in interfaceorg.pentaho.di.core.xml.XMLInterface
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<RemoteStep>
-
getHostname
- Returns:
- the host name
-
setHostname
- Parameters:
hostname
- the host name to set
-
getPort
int- Returns:
- the port
-
setPort
- Parameters:
port
- the port to set
-
openServerSocket
- Throws:
IOException
-
getServerSocket
- Returns:
- the serverSocket that is created by the open server socket method.
-
getSocket
- Returns:
- the socket
-
setSocket
- Parameters:
socket
- the socket to set
-
openWriterSocket
Open a socket for writing.- Returns:
- the RowSet created that will accept the rows for the remote step
- Throws:
IOException
-
cleanup
public void cleanup()Close left-over sockets, streams and so on. -
openReaderSocket
public org.pentaho.di.core.BlockingRowSet openReaderSocket(BaseStep baseStep) throws IOException, org.pentaho.di.core.exception.KettleException - Throws:
IOException
org.pentaho.di.core.exception.KettleException
-
getSourceStep
- Returns:
- the sourceStep
-
setSourceStep
- Parameters:
sourceStep
- the sourceStep to set
-
getTargetStep
- Returns:
- the targetStep
-
setTargetStep
- Parameters:
targetStep
- the targetStep to set
-
getTargetSlaveServerName
- Returns:
- the targetSlaveServerName
-
setTargetSlaveServerName
- Parameters:
targetSlaveServerName
- the targetSlaveServerName to set
-
getSourceStepCopyNr
public int getSourceStepCopyNr()- Returns:
- the sourceStepCopyNr
-
setSourceStepCopyNr
public void setSourceStepCopyNr(int sourceStepCopyNr) - Parameters:
sourceStepCopyNr
- the sourceStepCopyNr to set
-
getTargetStepCopyNr
public int getTargetStepCopyNr()- Returns:
- the targetStepCopyNr
-
setTargetStepCopyNr
public void setTargetStepCopyNr(int targetStepCopyNr) - Parameters:
targetStepCopyNr
- the targetStepCopyNr to set
-
getBufferSize
public int getBufferSize()- Returns:
- the bufferSize
-
setBufferSize
public void setBufferSize(int bufferSize) - Parameters:
bufferSize
- the bufferSize to set
-
isCompressingStreams
public boolean isCompressingStreams()- Returns:
- the compressingStreams
-
setCompressingStreams
public void setCompressingStreams(boolean compressingStreams) - Parameters:
compressingStreams
- the compressingStreams to set
-
getRemoteHostname
- Returns:
- the remoteHostname
-
setRemoteHostname
- Parameters:
remoteHostname
- the remoteHostname to set
-
getSourceSlaveServerName
- Returns:
- the sourceSlaveServer name
-
setSourceSlaveServerName
- Parameters:
sourceSlaveServerName
- the sourceSlaveServerName to set
-
finalize
-
getRowMeta
public org.pentaho.di.core.row.RowMetaInterface getRowMeta() -
setRowMeta
public void setRowMeta(org.pentaho.di.core.row.RowMetaInterface rowMeta) -
isEncryptingStreams
public boolean isEncryptingStreams() -
setEncryptingStreams
public void setEncryptingStreams(boolean encryptingStreams) -
getKey
public byte[] getKey() -
setKey
public void setKey(byte[] key)
-