Save This Page
Home » JBoss-5.1.0 » org.jboss.jmx.adaptor.snmp » trapd » [javadoc | source]
public class: TrapdService [javadoc | source]

All Implemented Interfaces:
    TrapdServiceMBean, KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

MBean wrapper class that acts as an SNMP trap receiver/logger. It logs traps as INFO messages - change log4j configuration to redirect logging output. To reconfigure the listening port the MBean needs to be stopped and re-started.
Field Summary
protected  SnmpTrapSession trapSession    The snmp session used to receive the traps 
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
 public TrapdService() 
Method from org.jboss.jmx.adaptor.snmp.trapd.TrapdService Summary:
getBindAddress,   getPort,   setBindAddress,   setPort,   startService,   stopService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   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 from
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.jmx.adaptor.snmp.trapd.TrapdService Detail:
 public String getBindAddress() 
    Gets the interface that will be bound
 public int getPort() 
    Gets the port that will be used to receive traps
 public  void setBindAddress(String host) throws UnknownHostException 
    Sets the interface that will be bound
 public  void setPort(int port) 
    Sets the port that will be used to receive traps
 protected  void startService() throws Exception 
    Performs service start-up by instantiating an SnmpTrapSession
 protected  void stopService() throws Exception 
    Performs service shutdown by stopping SnmpTrapSession *