|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.slave.Shutdown.Request
Asks question to the server by using the upper protocol.
| Field Summary | |
private javax.swing.JInternalFrame |
parentFrame
The parent frame. |
private UpperProtocol |
protocol
The object used to send to and receive messages from the server. |
| Constructor Summary | |
Request(UpperProtocol protocol,
javax.swing.JInternalFrame parentFrame)
Creates a new request object. |
|
| Method Summary | |
boolean |
cancel(java.lang.String serverName)
The following code is an example of a request to the server. |
ValueHashtable |
getServerList()
Get the list of available servers for the pingOO server. |
boolean |
reboot(java.lang.String serverName,
int timeout)
The following code is an example of a request to the server. |
boolean |
shutdown(java.lang.String serverName,
int timeout)
The following code is an example of a request to the server. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private UpperProtocol protocol
private javax.swing.JInternalFrame parentFrame
| Constructor Detail |
public Request(UpperProtocol protocol,
javax.swing.JInternalFrame parentFrame)
protocol - The protocol to which send the requests.parentFrame - This is just need for blocking windows.| Method Detail |
public ValueHashtable getServerList()
public boolean shutdown(java.lang.String serverName,
int timeout)
Tries to shutdown a server.
serverName - The name of the server to shutdown.timeout - The time left before timeout in minutes.true if the request was successfull false otherwise.
public boolean reboot(java.lang.String serverName,
int timeout)
Tries to reboot a server.
serverName - The name of the server to reboot.timeout - The time left before timeout in minutes.true if the request was successfull false otherwise.public boolean cancel(java.lang.String serverName)
Tries to cancel an action on a server.
serverName - The name of the server to prevent from rebooting/shutdown.true if the request was successfull false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||