|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.remoting.samples.detection.jndi.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. |
| Field Summary | |
|---|---|
protected static java.lang.String |
host
|
protected static int |
port
|
protected static java.lang.String |
transport
|
| Constructor Summary | |
|---|---|
SimpleDetectorServer()
|
|
| Method Summary | |
|---|---|
protected java.util.Map |
getConfiguration()
|
protected SimpleDetectorServer |
getDetectorServer()
|
protected static java.lang.String |
getLocatorURI(java.lang.String[] args)
|
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 JNDItDetector 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 |
| Field Detail |
|---|
protected static java.lang.String transport
protected static java.lang.String host
protected static int port
| 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.Exceptionpublic static void main(java.lang.String[] args)
args - transport and port numberpublic static void println(java.lang.String msg)
msg - the message to outputprotected static java.lang.String getLocatorURI(java.lang.String[] args)
protected java.util.Map getConfiguration()
protected SimpleDetectorServer getDetectorServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||