com.ibm.di.api.remote
Interface Sequence

All Superinterfaces:
Remote
All Known Implementing Classes:
SequenceImpl

public interface Sequence
extends Remote


Method Summary
 ConfigInstance getConfigInstance()
          Returns the configuration instance of the Sequence.
 String getName()
          Returns the name of the Sequence.
 Entry getResult()
          This method returns the result entry object.
 TaskStatistics getStatistics()
          This method returns the TaskStatistics object for this Sequence.
 int getUniqueCode()
          Returns the unique code of the Sequence.
 boolean isActive()
          Checks if the Sequence is active.
 void stop()
          Stops the execution of the Sequence.
 void stop(boolean sync)
          Stops the execution of the Sequence, and waits for it to stop.
 

Method Detail

getConfigInstance

ConfigInstance getConfigInstance()
                                 throws DIException,
                                        RemoteException
Returns the configuration instance of the Sequence.

Returns:
Returns ConfigInstance object
Throws:
DIException - if an error occurs while retrieving the configuration instance information.
RemoteException

getName

String getName()
               throws DIException,
                      RemoteException
Returns the name of the Sequence.

Returns:
String object representing the Sequence's name.
Throws:
DIException - if an error occurs while retrieving the name
RemoteException

getUniqueCode

int getUniqueCode()
                  throws DIException,
                         RemoteException
Returns the unique code of the Sequence.

Returns:
int value representing the unique code of the Sequence.
Throws:
DIException - if an error occurs while retrieving the unique code.
RemoteException

getStatistics

TaskStatistics getStatistics()
                             throws DIException,
                                    RemoteException
This method returns the TaskStatistics object for this Sequence.

Returns:
The accumulated TaskStatistics object.
Throws:
DIException - if an error occurs while getting the Sequence statistics.
RemoteException

isActive

boolean isActive()
                 throws DIException,
                        RemoteException
Checks if the Sequence is active.

Returns:
true if the Sequence thread is alive, false otherwise.
Throws:
DIException - if an error occurs while getting the state.
RemoteException

getResult

Entry getResult()
                throws DIException,
                       RemoteException
This method returns the result entry object. This object is a copy of the working entry.

Returns:
The last "work" entry object.
Throws:
DIException - if an error occurs while getting the result Entry.
RemoteException

stop

void stop()
          throws DIException,
                 RemoteException
Stops the execution of the Sequence.

Throws:
DIException - if an error occurs while stopping the AssemblyLine.
RemoteException

stop

void stop(boolean sync)
          throws DIException,
                 RemoteException
Stops the execution of the Sequence, and waits for it to stop.

Parameters:
sync - If true, create a new Thread to do the waiting.
Throws:
DIException - if an error occurs while stopping the Sequence.
RemoteException