|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.remoting.samples.detection.multicast.SimpleDetectorServer
public class SimpleDetectorServer
A simple JBoss/Remoting remoting server. This uses an inner class SampleInvocationHandler as the invocation target handler class.
Nested Class Summary | |
---|---|
static class |
SimpleDetectorServer.SampleInvocationHandler
Simple invocation handler implementation. |
Constructor Summary | |
---|---|
SimpleDetectorServer()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Can pass transport and port to be used as parameters. |
static void |
println(java.lang.String msg)
Outputs a message to stdout. |
void |
setupDetector()
Sets up NetworkRegistry and MulticastDetector so will can register ourselves on the network. |
void |
setupServer(java.lang.String locatorURI)
Sets up our JBoss/Remoting server by creating our Connector on the given locator URI and installing our invocation handler that will handle incoming messages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDetectorServer()
Method Detail |
---|
public void setupDetector() throws java.lang.Exception
java.lang.Exception
public void setupServer(java.lang.String locatorURI) throws java.lang.Exception
locatorURI
- defines our server endpoing
java.lang.Exception
public static void main(java.lang.String[] args)
args
- transport and port numberpublic static void println(java.lang.String msg)
msg
- the message to output
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |