|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.ws.stateless.Node
org.marketcetera.util.ws.stateless.StatelessServer
public class StatelessServer
A server node for stateless communication.
| Field Summary |
|---|
| Fields inherited from class org.marketcetera.util.ws.stateless.Node |
|---|
DEFAULT_HOST, DEFAULT_PORT |
| Constructor Summary | |
|---|---|
StatelessServer()
Creates a new server node with the default server host name and port. |
|
StatelessServer(String host,
int port)
Creates a new server node with the given server host name and port. |
|
StatelessServer(String inHost,
int inPort,
Class<?>... inContextClasses)
Create a new StatelessServer instance. |
|
| Method Summary | ||
|---|---|---|
|
publish(T impl,
Class<T> iface)
Publishes the given service interface, supported by the given implementation, and returns a handle that can be used to stop the interface. |
|
void |
stop()
Shuts down the receiver. |
|
| Methods inherited from class org.marketcetera.util.ws.stateless.Node |
|---|
getConnectionUrl, getHost, getId, getPort, setHost |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatelessServer(String inHost,
int inPort,
Class<?>... inContextClasses)
inHost - a String valueinPort - an int valueinContextClasses - a Class<?>... value
public StatelessServer(String host,
int port)
host - The host name.port - The port.public StatelessServer()
| Method Detail |
|---|
public <T extends StatelessServiceBase> ServiceInterface publish(T impl,
Class<T> iface)
impl - The implementation.iface - The interface class.
public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||