|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.geronimo.messaging.BaseEndPoint
org.apache.geronimo.messaging.io.StreamManagerImpl
StreamManager implementation.
| Nested Class Summary | |
protected static class |
StreamManagerImpl.ID
This is the object, which is written to an OutputStream during serialization of a GInputStream. |
| Field Summary | |
static byte[] |
NULL_READ
Used to signal an end of input stream. |
protected NodeInfo |
owningNode
Node owning this manager. |
| Fields inherited from class org.apache.geronimo.messaging.BaseEndPoint |
id, node, out, sender |
| Fields inherited from interface org.apache.geronimo.messaging.io.StreamManager |
NAME |
| Constructor Summary | |
StreamManagerImpl(Node aNode)
Creates a manager owned by the specified node. |
|
| Method Summary | |
Object |
register(InputStream anIn)
Registers the provided InputStream. |
InputStream |
retrieve(Object anId)
Retrieves the InputStream having the provided id. |
byte[] |
retrieveLocalNext(Object anID)
Reads from the InputStream having the specified identifier and returns the read bytes. |
protected byte[] |
retrieveNext(Object anID)
|
void |
start()
Starts. |
void |
stop()
Stops. |
| Methods inherited from class org.apache.geronimo.messaging.BaseEndPoint |
getID, getMsgConsumerOut, handleRequest, handleResponse, setMsgProducerOut |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.geronimo.messaging.EndPoint |
getID |
| Methods inherited from interface org.apache.geronimo.messaging.MsgProducer |
setMsgProducerOut |
| Methods inherited from interface org.apache.geronimo.messaging.MsgConsumer |
getMsgConsumerOut |
| Field Detail |
public static final byte[] NULL_READ
protected final NodeInfo owningNode
| Constructor Detail |
public StreamManagerImpl(Node aNode)
aNode - Node containing this instance.| Method Detail |
public void start()
StreamManager
start in interface StreamManagerpublic void stop()
StreamManager
stop in interface StreamManagerpublic Object register(InputStream anIn)
StreamManager
register in interface StreamManageranIn - InputStream to be tracked.
public InputStream retrieve(Object anId)
throws IOException
StreamManager
retrieve in interface StreamManageranId - Identifier.
IOException - Indicates that no InputStream is registered for
the provided identifier.
public byte[] retrieveLocalNext(Object anID)
throws IOException
StreamManager
retrieveLocalNext in interface StreamManageranID - InputStream identifier.
IOException - Indicates than an I/O error has occured.
protected byte[] retrieveNext(Object anID)
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||