Package com.ibm.di.api.remote.impl
Class SequenceImpl
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- com.ibm.di.api.remote.impl.APIRemoteObject
-
- com.ibm.di.api.remote.impl.SequenceImpl
-
- All Implemented Interfaces:
Sequence,java.io.Serializable,java.rmi.Remote
public class SequenceImpl extends APIRemoteObject implements Sequence
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SequenceImplcreateInstance(Sequence sequence, SessionImpl session)ConfigInstancegetConfigInstance()Returns the configuration instance of the Sequence.java.lang.StringgetName()Returns the name of the Sequence.EntrygetResult()This method returns the result entry object.TaskStatisticsgetStatistics()This method returns the TaskStatistics object for this Sequence.intgetUniqueCode()Returns the unique code of the Sequence.booleanisActive()Checks if the Sequence is active.voidstop()Stops the execution of the Sequence.voidstop(boolean sync)Stops the execution of the Sequence, and waits for it to stop.-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
-
-
-
Method Detail
-
createInstance
public static SequenceImpl createInstance(Sequence sequence, SessionImpl session) throws DIException, java.rmi.RemoteException
- Throws:
DIExceptionjava.rmi.RemoteException
-
getConfigInstance
public ConfigInstance getConfigInstance() throws DIException, java.rmi.RemoteException
Description copied from interface:SequenceReturns the configuration instance of the Sequence.- Specified by:
getConfigInstancein interfaceSequence- Returns:
- Returns ConfigInstance object
- Throws:
DIException- if an error occurs while retrieving the configuration instance information.java.rmi.RemoteException
-
getName
public java.lang.String getName() throws DIException, java.rmi.RemoteExceptionDescription copied from interface:SequenceReturns the name of the Sequence.- Specified by:
getNamein interfaceSequence- Returns:
- String object representing the Sequence's name.
- Throws:
DIException- if an error occurs while retrieving the namejava.rmi.RemoteException
-
getResult
public Entry getResult() throws DIException, java.rmi.RemoteException
Description copied from interface:SequenceThis method returns the result entry object. This object is a copy of the working entry.- Specified by:
getResultin interfaceSequence- Returns:
- The last "work" entry object.
- Throws:
DIException- if an error occurs while getting the result Entry.java.rmi.RemoteException
-
getStatistics
public TaskStatistics getStatistics() throws DIException, java.rmi.RemoteException
Description copied from interface:SequenceThis method returns the TaskStatistics object for this Sequence.- Specified by:
getStatisticsin interfaceSequence- Returns:
- The accumulated TaskStatistics object.
- Throws:
DIException- if an error occurs while getting the Sequence statistics.java.rmi.RemoteException
-
getUniqueCode
public int getUniqueCode() throws DIException, java.rmi.RemoteExceptionDescription copied from interface:SequenceReturns the unique code of the Sequence.- Specified by:
getUniqueCodein interfaceSequence- Returns:
- int value representing the unique code of the Sequence.
- Throws:
DIException- if an error occurs while retrieving the unique code.java.rmi.RemoteException
-
isActive
public boolean isActive() throws DIException, java.rmi.RemoteExceptionDescription copied from interface:SequenceChecks if the Sequence is active.- Specified by:
isActivein interfaceSequence- Returns:
- true if the Sequence thread is alive, false otherwise.
- Throws:
DIException- if an error occurs while getting the state.java.rmi.RemoteException
-
stop
public void stop() throws DIException, java.rmi.RemoteExceptionDescription copied from interface:SequenceStops the execution of the Sequence.- Specified by:
stopin interfaceSequence- Throws:
DIException- if an error occurs while stopping the AssemblyLine.java.rmi.RemoteException
-
stop
public void stop(boolean sync) throws DIException, java.rmi.RemoteExceptionDescription copied from interface:SequenceStops the execution of the Sequence, and waits for it to stop.- Specified by:
stopin interfaceSequence- Parameters:
sync- If true, create a new Thread to do the waiting.- Throws:
DIException- if an error occurs while stopping the Sequence.java.rmi.RemoteException
-
-