|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.adventnet.nms.startnms.MainSocketServerBE
public class MainSocketServerBE
This is the server class for the Common Socket or Common RMI API for the BE-FE server communication. All the modules of the Web NMS viz., Topology Database, Maps, Events, Alerts and Poll use the common socket for their client and server communication. Users can plug in their own client and server module in the Web NMS and use this API for their client and server module communication. Note : This class should be used only in the BE or FE server JVM.
| Field Summary | |
|---|---|
int |
nmsSocketPortBE
The port used by the common socket server to which FE Server connects. |
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
MainSocketServerBE()
|
|
MainSocketServerBE(int port)
Constructor to initialize the Common Socket server object. |
|
MainSocketServerBE(int port,
boolean anyPort)
Constructor to initialize the Common Socket server object. |
|
MainSocketServerBE(java.lang.String proto)
The constructor to use when the server has to be accessible via RMI from the client. |
|
| Method Summary | |
|---|---|
void |
createSessions(MainSocketSessionBE session)
|
int |
getLocalPort()
This method will return the port in which the ServerSocket is listening for this instance of MainSocketServerBE. |
static int |
getSequenceId()
|
void |
instantiateMainSocketSessionBE(SocketConnectionBE clientSocket)
This method gets invoked from MainSocketClientFE, if only singleJVM variable is true. |
void |
registerForResponses(SocketServerConnectionBE servClient)
The modules which want to use the common socket connection should implement the SocketServerConnectionBE interface and use this method to register themselves. |
void |
run()
This method waits indefinitely for a new connection from FE |
void |
shutDown()
Gets called whenever Web NMS Server shuts down. |
MainSessionRemoteInterface |
start()
This method is invoked by the client to get the remote reference of the Common Session object. |
MainSessionRemoteInterface |
start(java.lang.String timeAtWhichClientConnects)
|
MainSessionRemoteInterface |
start(java.lang.String moduleID,
java.lang.String timeAtWhichClientConnects)
|
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int nmsSocketPortBE
| Constructor Detail |
|---|
public MainSocketServerBE(int port)
throws java.rmi.RemoteException
java.rmi.RemoteException
public MainSocketServerBE(int port,
boolean anyPort)
throws java.rmi.RemoteException
java.rmi.RemoteException
public MainSocketServerBE()
throws java.rmi.RemoteException
java.rmi.RemoteException
public MainSocketServerBE(java.lang.String proto)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public void instantiateMainSocketSessionBE(SocketConnectionBE clientSocket)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void run()
run in interface java.lang.Runnablepublic void createSessions(MainSocketSessionBE session)
public int getLocalPort()
public void registerForResponses(SocketServerConnectionBE servClient)
public MainSessionRemoteInterface start()
throws java.rmi.RemoteException
start in interface MainSocketAPIjava.rmi.RemoteException
public MainSessionRemoteInterface start(java.lang.String timeAtWhichClientConnects)
throws java.rmi.RemoteException
start in interface MainSocketAPIjava.rmi.RemoteException
public MainSessionRemoteInterface start(java.lang.String moduleID,
java.lang.String timeAtWhichClientConnects)
throws java.rmi.RemoteException
start in interface MainSocketAPIjava.rmi.RemoteExceptionpublic void shutDown()
ShutDownObserver
shutDown in interface ShutDownObserverpublic static int getSequenceId()
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||