|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.StandardMBean net.sf.snmpadaptor4j.mbean.SystemInfo
public final class SystemInfo
MBean containing all informations on the system.
Constructor Summary | |
---|---|
SystemInfo()
Constructor. |
|
SystemInfo(String sysName,
String sysDescr)
Constructor. |
|
SystemInfo(String sysName,
String sysDescr,
String sysLocation,
String sysContact)
Constructor. |
Method Summary | |
---|---|
String |
getSysContact()
Returns the administrator contact of system ( system.sysContact.0 ). |
String |
getSysDescr()
Returns the description on the system ( system.sysDescr.0 ). |
String |
getSysLocation()
Returns the location of the system ( system.sysLocation.0 ). |
String |
getSysName()
Returns the name given to the system ( system.sysName.0 ). |
long |
getSysUpTime()
Returns the elapsed time in milliseconds since the last boot ( system.sysUpTime.0 ). |
void |
setSysContact(String sysContact)
Sets the administrator contact of system ( system.sysContact.0 ). |
void |
setSysDescr(String sysDescr)
Sets the description on the system ( system.sysDescr.0 ). |
void |
setSysLocation(String sysLocation)
Sets the location of the system ( system.sysLocation.0 ). |
void |
setSysName(String sysName)
Sets the name given to the system ( system.sysName.0 ). |
String |
toString()
|
Methods inherited from class javax.management.StandardMBean |
---|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SystemInfo() throws NotCompliantMBeanException
NotCompliantMBeanException
- if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if this does
not implement the specified interface.public SystemInfo(String sysName, String sysDescr) throws NotCompliantMBeanException
sysName
- Name given to the system (system.sysName.0
).sysDescr
- Description on the system (system.sysDescr.0
).
NotCompliantMBeanException
- if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if this does
not implement the specified interface.public SystemInfo(String sysName, String sysDescr, String sysLocation, String sysContact) throws NotCompliantMBeanException
sysName
- Name given to the system (system.sysName.0
).sysDescr
- Description on the system (system.sysDescr.0
).sysLocation
- Location of the system (system.sysLocation.0
).sysContact
- Administrator contact of system (system.sysContact.0
).
NotCompliantMBeanException
- if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if this does
not implement the specified interface.Method Detail |
---|
public String getSysName()
SystemInfoMBean
system.sysName.0
).
getSysName
in interface SystemInfoMBean
public void setSysName(String sysName)
SystemInfoMBean
system.sysName.0
).
setSysName
in interface SystemInfoMBean
sysName
- Name given to the system.public String getSysDescr()
SystemInfoMBean
system.sysDescr.0
).
getSysDescr
in interface SystemInfoMBean
public void setSysDescr(String sysDescr)
SystemInfoMBean
system.sysDescr.0
).
setSysDescr
in interface SystemInfoMBean
sysDescr
- Description on the system.public String getSysLocation()
SystemInfoMBean
system.sysLocation.0
).
getSysLocation
in interface SystemInfoMBean
public void setSysLocation(String sysLocation)
SystemInfoMBean
system.sysLocation.0
).
setSysLocation
in interface SystemInfoMBean
sysLocation
- Location of the system.public String getSysContact()
SystemInfoMBean
system.sysContact.0
).
getSysContact
in interface SystemInfoMBean
public void setSysContact(String sysContact)
SystemInfoMBean
system.sysContact.0
).
setSysContact
in interface SystemInfoMBean
sysContact
- Administrator contact of system.public long getSysUpTime()
SystemInfoMBean
system.sysUpTime.0
).
getSysUpTime
in interface SystemInfoMBean
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |