|
AdventNet Web NMS 4 DMS API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.nms.extranet.remote.communication.fw.probe.NOCServerCommAPI
This class controls the working on the DMS side. This class is initialized at DMS startup time and only one reference is maintained. To have a
control over DMS, various APIs have been provided in this class. A reference of this class is got by calling NOCServerCommAPI.getInstance().
| Method Summary | |
boolean |
checkNOCProperties()
Checks the Central Server properties. |
java.util.Properties |
getCustomerInfo()
Returns the information about the Customer given in NOCServerDetails.xml |
static NOCServerCommAPI |
getInstance()
Returns the reference of this object. |
java.lang.String |
getNOCServerName()
Returns the name of the Central Server to which the DMS is connected. |
int |
getNOCServerPort()
Returns the port number in the Central Server through which the DMS is connected. |
int |
getReEstablishInterval()
Returns the time period in seconds after which the DMS will start communicating again with the Primary Central Server. |
java.lang.String |
getRegionID()
Returns the ID with which the DMS is registered with the Central Server. |
int |
getRetries()
Returns the count after which the DMS will start communicating with the Standby Central Server once the communication with Primary Central Server fails. |
java.lang.String |
getStandByNOCServerName()
Returns the name of the StandBy Central Server to which the DMS will communicate once the primary Central Server is down. |
int |
getStandByNOCServerPort()
Returns the port number in the StandBy Central Server through which the DMS will communicate once the primary Central Server is down. |
int |
getSwitchOverInterval()
Returns the time period in seconds after which the DMS will start communicating with the Standby Central Server once the communication with Primary Central Server fails. |
boolean |
isRegionRegistered()
Checks whether the DMS is registered with the Central Server or not. |
boolean |
publish(DataObject dataObject)
Publishes the given DataObject to registered modules. |
boolean |
registerForNotification(int notificationType,
ModuleListener listener)
Modules register with the communication framework through this method. |
boolean |
sendData(DataObject dataObject,
int notificationType)
The DataObject that needs to be transfered to the Central Server from the modules in the DMS can be sent through this method. |
boolean |
sendData(DataObject dataObject,
int notificationType,
int priority)
The DataObject that needs to be transfered to the Central Server from the modules in the DMS can be sent through this method. |
void |
setNOCServerName(java.lang.String serverName)
Sets the primary Central Server's name. |
void |
setNOCServerPort(int port)
Sets the primary Central Server port. |
void |
setReEstablishInterval(int reEstablishInterval)
Sets the re-establish interval in seconds. |
void |
setRetries(int retries)
Sets the retry count. |
void |
setStandByNOCServerName(java.lang.String serverName)
Sets the name of stand-by Central Server. |
void |
setStandByNOCServerPort(int port)
Sets the port of stand-by Central Server. |
void |
setSwitchOverInterval(int interval)
Sets the switch over interval in seconds. |
void |
shutDownRegion(java.lang.String message)
Shuts down the DMS. |
void |
shutDownRegion(java.lang.String message,
int exitID)
Shuts down the DMS. |
void |
update()
Updates all information about the Central Server. |
void |
updateSession()
Updates the communication session. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static NOCServerCommAPI getInstance()
public boolean checkNOCProperties()
public java.lang.String getNOCServerName()
public int getNOCServerPort()
public java.lang.String getRegionID()
public java.lang.String getStandByNOCServerName()
public int getStandByNOCServerPort()
public int getSwitchOverInterval()
public int getRetries()
public int getReEstablishInterval()
public void setNOCServerName(java.lang.String serverName)
public void setNOCServerPort(int port)
public void setStandByNOCServerName(java.lang.String serverName)
public void setStandByNOCServerPort(int port)
public void setSwitchOverInterval(int interval)
public void setRetries(int retries)
public void setReEstablishInterval(int reEstablishInterval)
public boolean sendData(DataObject dataObject,
int notificationType)
public boolean sendData(DataObject dataObject,
int notificationType,
int priority)
public boolean registerForNotification(int notificationType,
ModuleListener listener)
throws java.lang.Exception
public void update()
public boolean publish(DataObject dataObject)
public boolean isRegionRegistered()
public void updateSession()
public java.util.Properties getCustomerInfo()
public void shutDownRegion(java.lang.String message)
public void shutDownRegion(java.lang.String message,
int exitID)
|
AdventNet Web NMS 4 DMS API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||