The XMOJO Project | ||
<< Prev | Chapter 2.2.2 Writing Dynamic MBean | Next >> |
Attribute Information |
|||
Attribute
Name |
Attribute
Type |
Attribute
Access |
Attribute
Description |
ServerName | java.lang.String |
read only |
The name of the machine where the server is running. |
ServerId | java.lang.String |
read only |
An identifier for the Server. In a same machine, multiple servers may run at different ports. |
ServerStarted | boolean |
read only |
To check whether the server is alive. |
ServerPort | int |
read write |
The port at which the server is listening. |
StartTime |
java.util.Date |
read only |
To show the latest start time of the server. |
ServerUpTime |
long |
read only |
To show the server uptime. |
restartCount |
int |
read only |
To show the number of times the server has been restarted. |
Operation
Information |
|||
Operation Name |
Signature |
Parameters |
Operation Description |
startService | void | - |
To start the server. |
stopService | void | - |
To stop the server. |
showDetails | void | - |
To show additional details, such as serverStartTime and number of times Server restarted. |
hideDetails | void | - |
To hide the additional details. |
restart |
void | - |
To restart the server. |
<< Prev | Home | Next >> |
When Dynamic MBean | Model MBean |