net.sf.snmpadaptor4j.mbean
Class SystemInfo

java.lang.Object
  extended by javax.management.StandardMBean
      extended by net.sf.snmpadaptor4j.mbean.SystemInfo
All Implemented Interfaces:
Serializable, DynamicMBean, MBeanRegistration, SystemInfoMBean

public final class SystemInfo
extends StandardMBean
implements SystemInfoMBean, Serializable

MBean containing all informations on the system.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

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

SystemInfo

public SystemInfo()
           throws NotCompliantMBeanException
Constructor.

Throws:
NotCompliantMBeanException - if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if this does not implement the specified interface.

SystemInfo

public SystemInfo(String sysName,
                  String sysDescr)
           throws NotCompliantMBeanException
Constructor.

Parameters:
sysName - Name given to the system (system.sysName.0).
sysDescr - Description on the system (system.sysDescr.0).
Throws:
NotCompliantMBeanException - if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if this does not implement the specified interface.

SystemInfo

public SystemInfo(String sysName,
                  String sysDescr,
                  String sysLocation,
                  String sysContact)
           throws NotCompliantMBeanException
Constructor.

Parameters:
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).
Throws:
NotCompliantMBeanException - if the mbeanInterface does not follow JMX design patterns for Management Interfaces, or if this does not implement the specified interface.
Method Detail

getSysName

public String getSysName()
Description copied from interface: SystemInfoMBean
Returns the name given to the system (system.sysName.0).

Specified by:
getSysName in interface SystemInfoMBean
Returns:
Name given to the system.

setSysName

public void setSysName(String sysName)
Description copied from interface: SystemInfoMBean
Sets the name given to the system (system.sysName.0).

Specified by:
setSysName in interface SystemInfoMBean
Parameters:
sysName - Name given to the system.

getSysDescr

public String getSysDescr()
Description copied from interface: SystemInfoMBean
Returns the description on the system (system.sysDescr.0).

Specified by:
getSysDescr in interface SystemInfoMBean
Returns:
Description on the system.

setSysDescr

public void setSysDescr(String sysDescr)
Description copied from interface: SystemInfoMBean
Sets the description on the system (system.sysDescr.0).

Specified by:
setSysDescr in interface SystemInfoMBean
Parameters:
sysDescr - Description on the system.

getSysLocation

public String getSysLocation()
Description copied from interface: SystemInfoMBean
Returns the location of the system (system.sysLocation.0).

Specified by:
getSysLocation in interface SystemInfoMBean
Returns:
Location of the system.

setSysLocation

public void setSysLocation(String sysLocation)
Description copied from interface: SystemInfoMBean
Sets the location of the system (system.sysLocation.0).

Specified by:
setSysLocation in interface SystemInfoMBean
Parameters:
sysLocation - Location of the system.

getSysContact

public String getSysContact()
Description copied from interface: SystemInfoMBean
Returns the administrator contact of system (system.sysContact.0).

Specified by:
getSysContact in interface SystemInfoMBean
Returns:
Administrator contact of system.

setSysContact

public void setSysContact(String sysContact)
Description copied from interface: SystemInfoMBean
Sets the administrator contact of system (system.sysContact.0).

Specified by:
setSysContact in interface SystemInfoMBean
Parameters:
sysContact - Administrator contact of system.

getSysUpTime

public long getSysUpTime()
Description copied from interface: SystemInfoMBean
Returns the elapsed time in milliseconds since the last boot (system.sysUpTime.0).

Specified by:
getSysUpTime in interface SystemInfoMBean
Returns:
Elapsed time in milliseconds since the last boot.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 snmpAdaptor4j. All Rights Reserved.