org.jboss.jmx.adaptor.snmp.system
Class MIB2SystemGroupService

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.jmx.adaptor.snmp.system.MIB2SystemGroupService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, MIB2SystemGroupServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class MIB2SystemGroupService
extends org.jboss.system.ServiceMBeanSupport
implements MIB2SystemGroupServiceMBean

An MBean service that defines the MIB-2 system group an agent is supposed to implement under the oid iso.org.dod.internet.mgmt.mib-2.system (.1.3.6.1.2.1.1) See rfc-1213

Version:
$Revision: 57210 $
Author:
Heiko W. Rupp, Dimitris Andreadis

Field Summary
static String JBOSS_PREFIX
          JBoss OID Prefix
static String PRODUCT
          Product JBossAS
static String VERSION
          Version 4.0.x
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.jmx.adaptor.snmp.system.MIB2SystemGroupServiceMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
MIB2SystemGroupService()
          CTOR
 
Method Summary
protected  void createService()
           
 javax.management.ObjectName getSnmpAgent()
           
 String getSysContact()
           
 String getSysDescr()
           
 String getSysLocation()
           
 String getSysName()
           
 org.opennms.protocols.snmp.SnmpObjectId getSysObjectId()
          The oid of the system (system.2) -- not yet supported
 int getSysServices()
          The services the system provides (system.7)
 long getSysUpTime()
          The system uptime in hundreth of a second (TimeTicks)
 void setSnmpAgent(javax.management.ObjectName agent)
          The snmp agent
 void setSysContact(String sysContact)
          The system contact person (system.4)
 void setSysDescr(String sysDescr)
          The description of the system (system.1)
 void setSysLocation(String sysLocation)
          The location of the system (system.6)
 void setSysName(String sysName)
          The (node)-name of the system (system.5)
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

JBOSS_PREFIX

public static final String JBOSS_PREFIX
JBoss OID Prefix

See Also:
Constant Field Values

PRODUCT

public static final String PRODUCT
Product JBossAS

See Also:
Constant Field Values

VERSION

public static final String VERSION
Version 4.0.x

See Also:
Constant Field Values
Constructor Detail

MIB2SystemGroupService

public MIB2SystemGroupService()
CTOR

Method Detail

setSnmpAgent

public void setSnmpAgent(javax.management.ObjectName agent)
Description copied from interface: MIB2SystemGroupServiceMBean
The snmp agent

Specified by:
setSnmpAgent in interface MIB2SystemGroupServiceMBean

getSnmpAgent

public javax.management.ObjectName getSnmpAgent()
Specified by:
getSnmpAgent in interface MIB2SystemGroupServiceMBean

setSysDescr

public void setSysDescr(String sysDescr)
Description copied from interface: MIB2SystemGroupServiceMBean
The description of the system (system.1)

Specified by:
setSysDescr in interface MIB2SystemGroupServiceMBean

getSysDescr

public String getSysDescr()
Specified by:
getSysDescr in interface MIB2SystemGroupServiceMBean

getSysObjectId

public org.opennms.protocols.snmp.SnmpObjectId getSysObjectId()
Description copied from interface: MIB2SystemGroupServiceMBean
The oid of the system (system.2) -- not yet supported

Specified by:
getSysObjectId in interface MIB2SystemGroupServiceMBean

getSysUpTime

public long getSysUpTime()
The system uptime in hundreth of a second (TimeTicks)

Specified by:
getSysUpTime in interface MIB2SystemGroupServiceMBean

setSysContact

public void setSysContact(String sysContact)
Description copied from interface: MIB2SystemGroupServiceMBean
The system contact person (system.4)

Specified by:
setSysContact in interface MIB2SystemGroupServiceMBean

getSysContact

public String getSysContact()
Specified by:
getSysContact in interface MIB2SystemGroupServiceMBean

setSysName

public void setSysName(String sysName)
Description copied from interface: MIB2SystemGroupServiceMBean
The (node)-name of the system (system.5)

Specified by:
setSysName in interface MIB2SystemGroupServiceMBean

getSysName

public String getSysName()
Specified by:
getSysName in interface MIB2SystemGroupServiceMBean

setSysLocation

public void setSysLocation(String sysLocation)
Description copied from interface: MIB2SystemGroupServiceMBean
The location of the system (system.6)

Specified by:
setSysLocation in interface MIB2SystemGroupServiceMBean

getSysLocation

public String getSysLocation()
Specified by:
getSysLocation in interface MIB2SystemGroupServiceMBean

getSysServices

public int getSysServices()
Description copied from interface: MIB2SystemGroupServiceMBean
The services the system provides (system.7)

Specified by:
getSysServices in interface MIB2SystemGroupServiceMBean

createService

protected void createService()
                      throws Exception
Overrides:
createService in class org.jboss.system.ServiceMBeanSupport
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.