|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The OpsClient interface defines the methods required to implement and operations client in the SiteSearch system. It defines methods to initialize the client, register/unregister with an operations server, update server status information, and retrieve remote server location information.
Method Summary | |
void |
alert(Object alertData)
Sends an object to the OpsClient containing operations alert information. |
void |
beginSession(Object user)
Increments the server session count by one. |
void |
decrConnectedClients()
Decrements the currently connected client count for the server. |
void |
decrFD()
Decrements the count of file descriptors in use by the server. |
void |
endSession(Object user)
Decrements the server session count by one. |
String |
getHostID()
Retrieves a String containing a host identifier for the server. |
ServerLocation |
getServerLocation(String serverName,
String sessionId)
Gets a ServerLocation object containing a port/host for an input server name. |
void |
incrConnectedClients()
Increments the currently connected client count for the server. |
void |
incrFD()
Increments the count of file descriptors in use by the server. |
void |
init(IniFile ini)
Initialize the OpsClient using the input IniFile object. |
void |
listenForOpsCommands()
Informs the OpsClient to start listening for operations commands. |
void |
register(int serverPort)
Registers the server with the OpsClient using the input port number that the server is currently running on. |
void |
responseTime(long timeToRespond)
Updates the average response times for the server using the input time. |
void |
setConnectedClients(int clients)
Sets the currently connected client count for the server using the input number of clients. |
void |
setFD(int openFD)
Sets the count of file descriptors in use by the server to the input count. |
void |
setServerPort(int serverPort)
Saves the port number that the server is currently running on. |
void |
setSessionCount(int sessions)
Sets the session count for the server using the input number of sessions. |
void |
unRegister()
Unregisters the server with the OpsClient. |
void |
updateStatus(boolean force)
Updates the server status with the OpsClient where the boolean indicates that the client should force the information out immediately. |
void |
updateTransRate()
Updates the transaction rate times for the server. |
Method Detail |
public void init(IniFile ini) throws Exception
ini
- the server IniFile objectpublic void setServerPort(int serverPort)
serverPort
- the port numberpublic void register(int serverPort) throws Exception
serverPort
- the port numberpublic void unRegister() throws Exception
public void updateStatus(boolean force) throws Exception
public void alert(Object alertData) throws Exception
alertData
- the alert informationpublic void setSessionCount(int sessions)
session
- the count of sessions.public void beginSession(Object user)
user
- an object or the sessionId of a userpublic void endSession(Object user)
user
- an object or the sessionId of a userpublic void setFD(int openFD)
openFD
- the count of file descriptors in use.public void incrFD()
public void decrFD()
public void setConnectedClients(int clients)
clients
- the count of currently active clients.public void incrConnectedClients()
public void decrConnectedClients()
public void updateTransRate()
public void responseTime(long timeToRespond)
timeToRespond
- the elapased time from start to finish of a commandpublic ServerLocation getServerLocation(String serverName, String sessionId) throws Exception
serverName
- the name of the server resource to locate.sessionId
- session id for the new sessionpublic void listenForOpsCommands()
public String getHostID()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |