Package com.ibm.di.api.remote.impl
Class AssemblyLineHandlerImpl
- 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.AssemblyLineHandlerImpl
-
- All Implemented Interfaces:
AssemblyLineHandler,java.io.Serializable,java.rmi.Remote
public class AssemblyLineHandlerImpl extends APIRemoteObject implements AssemblyLineHandler
This class implements several methods to handle an AssemblyLine.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the handlerstatic AssemblyLineHandlerImplcreateInstance(AssemblyLine aAssemblyLine, AssemblyLineHandler aLocalHandler, SessionImpl aSession)Creates new instance of this class.java.io.Serializableeval(java.lang.String script)Evaluates the passed in as parameter script in the context of this AssemblyLine.EntryexecuteCycle()Executes an AssemblyLine cycle with null work Entry attribute.EntryexecuteCycle(Entry aEntry)Executes an AssemblyLine cycle.EntryexecuteCycle(Entry aEntry, boolean aProcessTCB)Executes an AssemblyLine cycle.AssemblyLinegetAssemblyLine()Returns an AssemblyLine instance.-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
-
-
-
-
Method Detail
-
getAssemblyLine
public AssemblyLine getAssemblyLine() throws DIException, java.rmi.RemoteException
Returns an AssemblyLine instance.- Specified by:
getAssemblyLinein interfaceAssemblyLineHandler- Returns:
thisAssemblyLine.- Throws:
DIException- if an error occurs while retrieving the AssemblyLine.java.rmi.RemoteException- if a communication-related exception occurs.
-
executeCycle
public Entry executeCycle(Entry aEntry, boolean aProcessTCB) throws DIException, java.rmi.RemoteException
Executes an AssemblyLine cycle. If an Entry is provided then it becomes the work entry.- Specified by:
executeCyclein interfaceAssemblyLineHandler- Parameters:
aEntry- the work entry to use, or null to use an empty work entry/iterator entry.aProcessTCB- if true, the AL's call/return attribute maps are applied to the provided entry and returned entry.- Returns:
- the work entry at the end of the cycle.
- Throws:
DIException- if an error occurs while executing the AssemblyLine.java.rmi.RemoteException- if a communication-related exception occurs.
-
executeCycle
public Entry executeCycle(Entry aEntry) throws DIException, java.rmi.RemoteException
Executes an AssemblyLine cycle. If an Entry is provided then it becomes the work entry.- Specified by:
executeCyclein interfaceAssemblyLineHandler- Parameters:
aEntry- the work entry to use, or null to use an empty work entry/iterator entry.- Returns:
- the work entry at the end of the cycle.
- Throws:
DIException- if an error occurs while executing the AssemblyLine.java.rmi.RemoteException- if a communication-related exception occurs.
-
executeCycle
public Entry executeCycle() throws DIException, java.rmi.RemoteException
Executes an AssemblyLine cycle with null work Entry attribute.- Specified by:
executeCyclein interfaceAssemblyLineHandler- Returns:
- the work entry at the end of the cycle
- Throws:
DIException- if an error occurs while executing the AssemblyLine.java.rmi.RemoteException- if a communication-related exception occurs.
-
eval
public java.io.Serializable eval(java.lang.String script) throws DIException, java.rmi.RemoteExceptionDescription copied from interface:AssemblyLineHandlerEvaluates the passed in as parameter script in the context of this AssemblyLine. You can access all the script beans defined in the scope of this AssemblyLine.- Specified by:
evalin interfaceAssemblyLineHandler- Parameters:
script- the script to evaluate.- Returns:
- the serializable object returned by the script or null if no return statement.
- Throws:
DIException- if an error occurs while evaluating the scriptjava.rmi.RemoteException- if a communication-related exception occurs.
-
close
public void close() throws DIException, java.rmi.RemoteExceptionCloses the handler- Specified by:
closein interfaceAssemblyLineHandler- Throws:
DIException- if an error occurs while executing the AssemblyLine.java.rmi.RemoteException- if a communication-related exception occurs.
-
createInstance
public static AssemblyLineHandlerImpl createInstance(AssemblyLine aAssemblyLine, AssemblyLineHandler aLocalHandler, SessionImpl aSession) throws DIException, java.rmi.RemoteException
Creates new instance of this class.- Parameters:
aAssemblyLine- the assembly lineaLocalHandler- local assembly line handleraSession- the SessionImpl object- Returns:
- AssemblyLineHandlerImpl object
- Throws:
DIException- if Runtime or Security exception occursjava.rmi.RemoteException- if a communication-related exception occurs.
-
-