public class TransformationMap extends Object
| Constructor and Description | 
|---|
TransformationMap()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addTransformation(String transformationName,
                 String containerObjectId,
                 Trans trans,
                 TransConfiguration transConfiguration)
Add a transformation to the map 
 | 
SocketPortAllocation | 
allocateServerSocketPort(int portRangeStart,
                        String hostname,
                        String clusteredRunId,
                        String transformationName,
                        String sourceSlaveName,
                        String sourceStepName,
                        String sourceStepCopy,
                        String targetSlaveName,
                        String targetStepName,
                        String targetStepCopy)
This is the meat of the whole problem. 
 | 
SlaveSequence | 
createSlaveSequence(String name)  | 
void | 
deallocateServerSocketPort(int port,
                          String hostname)  | 
void | 
deallocateServerSocketPorts(CarteObjectEntry entry)
Deallocate all the ports for the given transformation entry, across all hosts. 
 | 
void | 
deallocateServerSocketPorts(String transName,
                           String carteObjectId)
Deallocate all the ports for the given transformation name, across all hosts. 
 | 
TransConfiguration | 
getConfiguration(CarteObjectEntry entry)  | 
TransConfiguration | 
getConfiguration(String transformationName)  | 
CarteObjectEntry | 
getFirstCarteObjectEntry(String transName)  | 
List<SocketPortAllocation> | 
getHostServerSocketPorts(String hostname)  | 
SlaveSequence | 
getSlaveSequence(String name)  | 
SlaveServerConfig | 
getSlaveServerConfig()  | 
Trans | 
getTransformation(CarteObjectEntry entry)  | 
Trans | 
getTransformation(String transformationName)
Find the first transformation in the list that comes to mind! 
 | 
List<CarteObjectEntry> | 
getTransformationObjects()  | 
boolean | 
isAutomaticSlaveSequenceCreationAllowed()  | 
void | 
registerTransformation(Trans trans,
                      TransConfiguration transConfiguration)  | 
void | 
removeTransformation(CarteObjectEntry entry)  | 
void | 
setSlaveServerConfig(SlaveServerConfig slaveServerConfig)  | 
public void addTransformation(String transformationName, String containerObjectId, Trans trans, TransConfiguration transConfiguration)
transformationName - The name of the transformation to addcontainerObjectId - the unique ID of the transformation in this container.trans - The transformation to addtransConfiguration - the transformation configuration to addpublic void registerTransformation(Trans trans, TransConfiguration transConfiguration)
public Trans getTransformation(String transformationName)
transformationName - public Trans getTransformation(CarteObjectEntry entry)
entry - The Carte transformation objectpublic TransConfiguration getConfiguration(String transformationName)
transformationName - public TransConfiguration getConfiguration(CarteObjectEntry entry)
entry - The Carte transformation objectpublic void removeTransformation(CarteObjectEntry entry)
entry - the Carte object entrypublic List<CarteObjectEntry> getTransformationObjects()
public SocketPortAllocation allocateServerSocketPort(int portRangeStart, String hostname, String clusteredRunId, String transformationName, String sourceSlaveName, String sourceStepName, String sourceStepCopy, String targetSlaveName, String targetStepName, String targetStepCopy)
portRangeStart - the start of the port range as described in the used cluster schemahostname - the host name to allocate this address forclusteredRunId - A unique id, created for each new clustered run during transformation split.transformationName - sourceStepName - sourceStepCopy - public void deallocateServerSocketPorts(String transName, String carteObjectId)
transName - the transformation name to releasecarteObjectId - the carte object ID to referencepublic void deallocateServerSocketPorts(CarteObjectEntry entry)
entry - the transformation object entry name to release the sockets forpublic void deallocateServerSocketPort(int port,
                                       String hostname)
public CarteObjectEntry getFirstCarteObjectEntry(String transName)
public SlaveServerConfig getSlaveServerConfig()
public void setSlaveServerConfig(SlaveServerConfig slaveServerConfig)
slaveServerConfig - the slaveServerConfig to setpublic List<SocketPortAllocation> getHostServerSocketPorts(String hostname)
public SlaveSequence getSlaveSequence(String name)
public boolean isAutomaticSlaveSequenceCreationAllowed()
public SlaveSequence createSlaveSequence(String name) throws KettleException
KettleExceptionCopyright © 2020 Hitachi Vantara. All rights reserved.