AdventNet Web NMS 4 API Specification

com.adventnet.nms.failover
Class FailOverEvent

java.lang.Object
  |
  +--com.adventnet.nms.failover.FailOverEvent

public class FailOverEvent
extends java.lang.Object


Constructor Summary
FailOverEvent(java.util.Properties previousFEInfo, java.util.Properties presentFEInfo)
          This class serve as a event object for FailOver Event.
 
Method Summary
 java.sql.Time getFailOverTime()
          This method will return the time of FailOver happened.
 java.lang.String getNewHost()
          This method will return the host name of Presently connected FE Server(Which is used for receiving further updates from BackEnd Server)
 int getNewPort()
          This method will return the port of Current WebServer(Which is used for receiving further updates from BackEnd Server)
 java.lang.String getOldHost()
          This method will return the host name of Previously connected FE Server(Which is used for maintain the communication between client and server)
 int getOldPort()
          This method will return the port of Previously connected WebServer(Which is used for maintain the communication between client and server)
 java.util.Properties getPresentFEInfo()
          This method will return the Properties of Present FE Server(Which is used for receiving further updates from BackEnd Server)
 java.util.Properties getPreviousFEInfo()
          This method will return the Properties of Previous FE Server(Which is used to maintain the communication between client and server)
 boolean getResult()
          This method is used to get the result for this Event
 int getSocketType()
          This method is used to get the socket type from where this event has been generated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FailOverEvent

public FailOverEvent(java.util.Properties previousFEInfo,
                     java.util.Properties presentFEInfo)
This class serve as a event object for FailOver Event. For Construct this object we need to give two properties object One Properties object contains the information about FrontEndServer which is used to maintain the client server communication.
Method Detail

getFailOverTime

public java.sql.Time getFailOverTime()
This method will return the time of FailOver happened.

getPreviousFEInfo

public java.util.Properties getPreviousFEInfo()
This method will return the Properties of Previous FE Server(Which is used to maintain the communication between client and server)

getPresentFEInfo

public java.util.Properties getPresentFEInfo()
This method will return the Properties of Present FE Server(Which is used for receiving further updates from BackEnd Server)

getOldHost

public java.lang.String getOldHost()
This method will return the host name of Previously connected FE Server(Which is used for maintain the communication between client and server)

getOldPort

public int getOldPort()
This method will return the port of Previously connected WebServer(Which is used for maintain the communication between client and server)

getNewHost

public java.lang.String getNewHost()
This method will return the host name of Presently connected FE Server(Which is used for receiving further updates from BackEnd Server)

getNewPort

public int getNewPort()
This method will return the port of Current WebServer(Which is used for receiving further updates from BackEnd Server)

getResult

public boolean getResult()
This method is used to get the result for this Event

getSocketType

public int getSocketType()
This method is used to get the socket type from where this event has been generated.
Returns:
the socket type.

AdventNet Web NMS 4 API Specification