The XMOJO Project
Back Chapter 2.3.1 Writing a Model MBean Back

The following tables summarises the management information exposed by the model MBean

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
Port int
read write
The port at which the server is binded
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
restart
void -
To restart the server

Back Home Back
Writing a Model MBean
Writing a Model MBean