|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fusesource.hawtdispatch.transport.PipeTransportServer
public class PipeTransportServer
| Field Summary | |
|---|---|
protected AtomicInteger |
connectionCounter
|
protected String |
connectURI
|
protected TransportServerListener |
listener
|
protected boolean |
marshal
|
protected String |
name
|
| Constructor Summary | |
|---|---|
PipeTransportServer()
|
|
| Method Summary | |
|---|---|
PipeTransport |
connect()
|
protected PipeTransport |
createClientTransport()
|
protected PipeTransport |
createServerTransport()
|
String |
getBoundAddress()
|
String |
getConnectAddress()
|
DispatchQueue |
getDispatchQueue()
Returns the dispatch queue used by the transport |
String |
getName()
|
InetSocketAddress |
getSocketAddress()
|
boolean |
isMarshal()
|
void |
resume()
resume accepting new transports |
void |
setConnectURI(String connectURI)
|
void |
setDispatchQueue(DispatchQueue queue)
Sets the dispatch queue used by the transport |
void |
setMarshal(boolean marshal)
|
void |
setName(String name)
|
void |
setTransportServerListener(TransportServerListener listener)
Registers an TransportAcceptListener which is notified of accepted
channels. |
void |
start()
|
void |
start(Runnable onCompleted)
Starts the service. |
void |
stop()
|
void |
stop(Runnable onCompleted)
Stops the service. |
void |
suspend()
suspend accepting new transports |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String connectURI
protected TransportServerListener listener
protected String name
protected boolean marshal
protected final AtomicInteger connectionCounter
| Constructor Detail |
|---|
public PipeTransportServer()
| Method Detail |
|---|
public String getBoundAddress()
getBoundAddress in interface TransportServerpublic String getConnectAddress()
getConnectAddress in interface TransportServerpublic InetSocketAddress getSocketAddress()
getSocketAddress in interface TransportServerpublic DispatchQueue getDispatchQueue()
TransportServer
getDispatchQueue in interface TransportServerpublic void setDispatchQueue(DispatchQueue queue)
TransportServer
setDispatchQueue in interface TransportServerpublic void suspend()
TransportServer
suspend in interface TransportServerpublic void resume()
TransportServer
resume in interface TransportServerpublic void setTransportServerListener(TransportServerListener listener)
TransportServerTransportAcceptListener which is notified of accepted
channels.
setTransportServerListener in interface TransportServer
public void start()
throws Exception
Exception
public void start(Runnable onCompleted)
throws Exception
TransportServer
start in interface TransportServeronCompleted - my be set to null if not interested in a callback.
Exception
public void stop()
throws Exception
Exception
public void stop(Runnable onCompleted)
throws Exception
TransportServer
stop in interface TransportServeronCompleted - my be set to null if not interested in a callback.
Exceptionpublic void setConnectURI(String connectURI)
public void setName(String name)
public String getName()
public PipeTransport connect()
protected PipeTransport createClientTransport()
protected PipeTransport createServerTransport()
public boolean isMarshal()
public void setMarshal(boolean marshal)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||