com.ibm.able
Class AbleBufferConnection
java.lang.Object
|
+--com.ibm.able.AbleBufferConnection
- All Implemented Interfaces:
- java.io.Serializable
- public class AbleBufferConnection
- extends java.lang.Object
- implements java.io.Serializable
The AbleBufferConnection class provides a serializable connection
between two objects who implement the AbleBean
interface.
- See Also:
- Serialized Form
Method Summary |
AbleBean |
getDest()
Returns the destination object which receives output from this connection. |
AbleBean |
getSource()
Returns the source object which provides the input for this connection. |
void |
process()
Processing a connection moves data from the source output buffer to the destination
object's input buffer. |
void |
remove()
Removes the references to this connection object from the source
and destination objects. |
java.lang.String |
toString()
Returns a text representation of the connection in the form
sourceName..destinationName . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbleBufferConnection
public AbleBufferConnection(AbleBean srcObj,
AbleBean destObj)
throws AbleException
- The AbleBufferConnection provides a serializable data buffer connection
between two AbleBeans.
- Parameters:
srcObj
- The source object which provides the input for this connection.destObj
- The destination object which receives output from this connection.- Throws:
AbleException
- If the source and destination objects are the same, or if
either is null
.
getSource
public AbleBean getSource()
- Returns the source object which provides the input for this connection.
getDest
public AbleBean getDest()
- Returns the destination object which receives output from this connection.
process
public void process()
throws AbleException
- Processing a connection moves data from the source output buffer to the destination
object's input buffer.
Any necessary conversions between the source output buffer and destination input
buffer are performed.
The source object must be data flow enabled for the data to be transferred.
The source and destination objects must not be
null
.
- Throws:
AbleException
- If an error occurs during the processing of a valid connection
from a source object with data flow enabled.
If the source object is not data flow enabled,
no exception is thrown nor is any
actual operation is performed.
toString
public java.lang.String toString()
- Returns a text representation of the connection in the form
sourceName..destinationName
.
- Overrides:
toString
in class java.lang.Object
remove
public void remove()
- Removes the references to this connection object from the source
and destination objects.
(C) Copyright IBM Corporation 1999, 2003