|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.remoting.stream.StreamServer
public class StreamServer
This is a helper class that runs internal to remoting on the client side. It contains a reference to a local input stream and creates a remoting server to receive calls from a target remoting server (via calls from a StreamHandler initiated by a server invoker handler).
NOTE: That once this class receives the close() method called from the server, it will also stop and destroy the internal remoting server, since is assumed there will be no more callbacks (since the stream itself is closed).
| Nested Class Summary | |
|---|---|
class |
StreamServer.Handler
Handler for accepting method calls on the input stream and perform the coresponding method call on the original input stream and returning the data. |
| Field Summary | |
|---|---|
static java.lang.String |
STREAM_HOST_KEY
|
static java.lang.String |
STREAM_PORT_KEY
|
static java.lang.String |
STREAM_TRANSPORT_KEY
|
| Constructor Summary | |
|---|---|
StreamServer(java.io.InputStream stream)
Creates the server wrapped around the specified input stream. |
|
| Method Summary | |
|---|---|
java.lang.String |
getInvokerLocator()
Gets the locator to call back on this server to get the inputstream data. |
void |
setupServer(java.lang.String locatorURI)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STREAM_TRANSPORT_KEY
public static final java.lang.String STREAM_HOST_KEY
public static final java.lang.String STREAM_PORT_KEY
| Constructor Detail |
|---|
public StreamServer(java.io.InputStream stream)
throws java.lang.Exception
stream -
java.lang.Exception| Method Detail |
|---|
public java.lang.String getInvokerLocator()
throws java.lang.Exception
java.lang.Exception
public void setupServer(java.lang.String locatorURI)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||