private static class ServerStatus.AdminPortTask extends ServerStatus.Task
Modifier and Type | Field and Description |
---|---|
(package private) String |
host
Server administration interface host.
|
private static Logger |
LOGGER
Logger instance for this class.
|
(package private) int |
port
Server administration interface port.
|
private ServerStatus.Result |
result
Server administration port status check result.
|
(package private) int |
timeout
Socked connecting timeout [ms].
|
exceptionMeasage, failureEvent, server, serverName, tmStart
Constructor and Description |
---|
ServerStatus.AdminPortTask(GlassFishServer server,
int timeout)
Creates an instance of administration port status check.
|
Modifier and Type | Method and Description |
---|---|
(package private) ServerStatus.Result |
check()
Parent thread task to verify if server administration port is alive.
|
private void |
closeSocket(Socket socket)
Close socket and handle
IOException that could
be thrown. |
(package private) ServerStatus.Result |
getResult()
Get server administration port status check result.
|
private void |
handleIOException(IOException ioe,
String host,
int port,
String message)
Handle IO Exception caught in server administration port verification
task.
|
operationStateChanged, timeout, tm
private static final Logger LOGGER
String host
int port
int timeout
private ServerStatus.Result result
ServerStatus.AdminPortTask(GlassFishServer server, int timeout)
server
- GlassFish server to be checked.timeout
- Socked connecting timeout.ServerStatus.Result getResult()
private void closeSocket(Socket socket)
IOException
that could
be thrown.
socket
- Socket to be closed.private void handleIOException(IOException ioe, String host, int port, String message)
ioe
- IOException
caught.host
- Server administration host.port
- Server administration port.message
- Message to be logged. Shall not be null
.ServerStatus.Result check()
true
when server administration port
is alive or false
otherwise.Copyright © 2013. All Rights Reserved.