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.kernel.spi.dependency.KernelControllerContextAware, 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: 110496 $
Author:
Heiko W. Rupp, Dimitris Andreadis

Field Summary
static java.lang.String JBOSS_PREFIX
          JBoss OID Prefix http://www.wtcs.org/snmp4tpc/snmp.htm 2312 is red hat prefix from http://www.oid-info.com/get/1.3.6.1.4.1.2312 we define 100 arbitrary as the JBoss division
 
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()
           
 java.lang.String getProduct()
           
 javax.management.ObjectName getSnmpAgent()
           
 java.lang.String getSysContact()
           
 java.lang.String getSysDescr()
           
 java.lang.String getSysLocation()
           
 java.lang.String getSysName()
           
 org.snmp4j.smi.OID getSysObjectId()
          The oid of the system (system.2) -- not yet supported
 int getSysServices()
          The services the system provides (system.7)
 org.snmp4j.smi.TimeTicks getSysUpTime()
          The system uptime in hundreth of a second (TimeTicks)
 java.lang.String getVersion()
           
 void setProduct(java.lang.String product)
           
 void setSnmpAgent(javax.management.ObjectName agent)
          The snmp agent
 void setSysContact(java.lang.String sysContact)
          The system contact person (system.4)
 void setSysDescr(java.lang.String sysDescr)
          The description of the system (system.1)
 void setSysLocation(java.lang.String sysLocation)
          The location of the system (system.6)
 void setSysName(java.lang.String sysName)
          The (node)-name of the system (system.5)
 void setVersion(java.lang.String version)
           
 
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, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext
 
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 java.lang.String JBOSS_PREFIX
JBoss OID Prefix http://www.wtcs.org/snmp4tpc/snmp.htm 2312 is red hat prefix from http://www.oid-info.com/get/1.3.6.1.4.1.2312 we define 100 arbitrary as the JBoss division

See Also:
Constant Field Values
Constructor Detail

MIB2SystemGroupService

public MIB2SystemGroupService()
CTOR

Method Detail

setProduct

public void setProduct(java.lang.String product)
Specified by:
setProduct in interface MIB2SystemGroupServiceMBean
Parameters:
product - the product to set

getProduct

public java.lang.String getProduct()
Specified by:
getProduct in interface MIB2SystemGroupServiceMBean
Returns:
the product

setVersion

public void setVersion(java.lang.String version)
Specified by:
setVersion in interface MIB2SystemGroupServiceMBean
Parameters:
version - the product version to set

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface MIB2SystemGroupServiceMBean
Returns:
the product version

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(java.lang.String sysDescr)
Description copied from interface: MIB2SystemGroupServiceMBean
The description of the system (system.1)

Specified by:
setSysDescr in interface MIB2SystemGroupServiceMBean

getSysDescr

public java.lang.String getSysDescr()
Specified by:
getSysDescr in interface MIB2SystemGroupServiceMBean

getSysObjectId

public org.snmp4j.smi.OID getSysObjectId()
Description copied from interface: MIB2SystemGroupServiceMBean
The oid of the system (system.2) -- not yet supported

Specified by:
getSysObjectId in interface MIB2SystemGroupServiceMBean

getSysUpTime

public org.snmp4j.smi.TimeTicks getSysUpTime()
The system uptime in hundreth of a second (TimeTicks)

Specified by:
getSysUpTime in interface MIB2SystemGroupServiceMBean

setSysContact

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

Specified by:
setSysContact in interface MIB2SystemGroupServiceMBean

getSysContact

public java.lang.String getSysContact()
Specified by:
getSysContact in interface MIB2SystemGroupServiceMBean

setSysName

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

Specified by:
setSysName in interface MIB2SystemGroupServiceMBean

getSysName

public java.lang.String getSysName()
Specified by:
getSysName in interface MIB2SystemGroupServiceMBean

setSysLocation

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

Specified by:
setSysLocation in interface MIB2SystemGroupServiceMBean

getSysLocation

public java.lang.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 java.lang.Exception
Overrides:
createService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.