|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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()
SystemInfoMBeansystem.sysName.0).
getSysName in interface SystemInfoMBeanpublic void setSysName(String sysName)
SystemInfoMBeansystem.sysName.0).
setSysName in interface SystemInfoMBeansysName - Name given to the system.public String getSysDescr()
SystemInfoMBeansystem.sysDescr.0).
getSysDescr in interface SystemInfoMBeanpublic void setSysDescr(String sysDescr)
SystemInfoMBeansystem.sysDescr.0).
setSysDescr in interface SystemInfoMBeansysDescr - Description on the system.public String getSysLocation()
SystemInfoMBeansystem.sysLocation.0).
getSysLocation in interface SystemInfoMBeanpublic void setSysLocation(String sysLocation)
SystemInfoMBeansystem.sysLocation.0).
setSysLocation in interface SystemInfoMBeansysLocation - Location of the system.public String getSysContact()
SystemInfoMBeansystem.sysContact.0).
getSysContact in interface SystemInfoMBeanpublic void setSysContact(String sysContact)
SystemInfoMBeansystem.sysContact.0).
setSysContact in interface SystemInfoMBeansysContact - Administrator contact of system.public long getSysUpTime()
SystemInfoMBeansystem.sysUpTime.0).
getSysUpTime in interface SystemInfoMBeanpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||