org.jboss.jmx.adaptor.snmp.agent
Interface SnmpAgentServiceMBean

All Superinterfaces:
org.jboss.system.ListenerServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
SnmpAgentService

public interface SnmpAgentServiceMBean
extends org.jboss.system.ListenerServiceMBean

SnmpAgentService MBean interface.

Version:
$Revision: 57210 $
Author:
Dimitris Andreadis

Field Summary
static javax.management.ObjectName OBJECT_NAME
          Default ObjectName
 
Fields inherited from interface org.jboss.system.ListenerServiceMBean
SL_FILTER_ELEMENT, SL_FILTER_FACTORY_ATTRIBUTE, SL_MBEAN_ELEMENT, SL_MBEAN_HANDBACK_ATTRIBUTE, SL_MBEAN_NAME_ATTRIBUTE, SL_NOTIFICATION_ELEMENT, SL_NOTIFICATION_TYPE_ATTRIBUTE, SL_ROOT_ELEMENT
 
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
 
Method Summary
 String getBindAddress()
           
 boolean getDynamicSubscriptions()
           
 int getHeartBeatPeriod()
           
 long getInstantiationTime()
          The time difference (in msecs) between instantiation time and epoch (midnight, January 1, 1970 UTC)
 String getManagersResName()
           
 String getNotificationMapResName()
           
 int getNumberOfThreads()
           
 int getPort()
           
 String getRequestHandlerClassName()
           
 String getRequestHandlerResName()
           
 int getSnmpVersion()
           
 javax.management.ObjectName getTimerName()
           
 long getTrapCount()
          The current trap counter reading
 String getTrapFactoryClassName()
           
 long getUptime()
          The up-time, in msecs.
 void reconfigureRequestHandler()
          Reconfigures the RequestHandler, that is reponsible for handling get requests etc.
 void setBindAddress(String bindAddress)
          The agent bind address
 void setDynamicSubscriptions(boolean dynamicSubscriptions)
          Enables/disables dynamic subscriptions
 void setHeartBeatPeriod(int heartBeatPeriod)
          The heartbeat period (in seconds) - 0 disables heartbeat
 void setManagersResName(String managersResName)
          The name of the file containing SNMP manager specifications
 void setNotificationMapResName(String notificationMapResName)
          The name of the file containing the notification/trap mappings
 void setNumberOfThreads(int numberOfThreads)
          The number of threads in the agent request processing thread pool
 void setPort(int port)
          The agent listening port number
 void setReadCommunity(String readCommunity)
          The read community (no getter)
 void setRequestHandlerClassName(String requestHandlerClassName)
          The RequestHandler implementation class
 void setRequestHandlerResName(String requestHandlerResName)
          The resource file name containing get/set mappings
 void setSnmpVersion(int snmpVersion)
          The snmp protocol version
 void setTimerName(javax.management.ObjectName timerName)
          The utilised timer MBean name
 void setTrapFactoryClassName(String name)
          The utilised trap factory name
 void setWriteCommunity(String writeCommunity)
          The write community (no getter)
 
Methods inherited from interface org.jboss.system.ListenerServiceMBean
setSubscriptionList
 
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

OBJECT_NAME

static final javax.management.ObjectName OBJECT_NAME
Default ObjectName

Method Detail

setManagersResName

void setManagersResName(String managersResName)
The name of the file containing SNMP manager specifications


getManagersResName

String getManagersResName()

setNotificationMapResName

void setNotificationMapResName(String notificationMapResName)
The name of the file containing the notification/trap mappings


getNotificationMapResName

String getNotificationMapResName()

setRequestHandlerResName

void setRequestHandlerResName(String requestHandlerResName)
The resource file name containing get/set mappings


getRequestHandlerResName

String getRequestHandlerResName()

setTrapFactoryClassName

void setTrapFactoryClassName(String name)
The utilised trap factory name


getTrapFactoryClassName

String getTrapFactoryClassName()

setRequestHandlerClassName

void setRequestHandlerClassName(String requestHandlerClassName)
The RequestHandler implementation class


getRequestHandlerClassName

String getRequestHandlerClassName()

setTimerName

void setTimerName(javax.management.ObjectName timerName)
The utilised timer MBean name


getTimerName

javax.management.ObjectName getTimerName()

setDynamicSubscriptions

void setDynamicSubscriptions(boolean dynamicSubscriptions)
Enables/disables dynamic subscriptions


getDynamicSubscriptions

boolean getDynamicSubscriptions()

setBindAddress

void setBindAddress(String bindAddress)
                    throws UnknownHostException
The agent bind address

Throws:
UnknownHostException

getBindAddress

String getBindAddress()

setHeartBeatPeriod

void setHeartBeatPeriod(int heartBeatPeriod)
The heartbeat period (in seconds) - 0 disables heartbeat


getHeartBeatPeriod

int getHeartBeatPeriod()

setPort

void setPort(int port)
The agent listening port number


getPort

int getPort()

setNumberOfThreads

void setNumberOfThreads(int numberOfThreads)
The number of threads in the agent request processing thread pool


getNumberOfThreads

int getNumberOfThreads()

setSnmpVersion

void setSnmpVersion(int snmpVersion)
The snmp protocol version


getSnmpVersion

int getSnmpVersion()

setReadCommunity

void setReadCommunity(String readCommunity)
The read community (no getter)


setWriteCommunity

void setWriteCommunity(String writeCommunity)
The write community (no getter)


getInstantiationTime

long getInstantiationTime()
The time difference (in msecs) between instantiation time and epoch (midnight, January 1, 1970 UTC)


getUptime

long getUptime()
The up-time, in msecs.


getTrapCount

long getTrapCount()
The current trap counter reading


reconfigureRequestHandler

void reconfigureRequestHandler()
                               throws Exception
Reconfigures the RequestHandler, that is reponsible for handling get requests etc.

Throws:
Exception


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