Java Doc for SnmpAgentService.java in  » EJB-Server-JBoss-4.2.1 » varia » org » jboss » jmx » adaptor » snmp » agent » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » varia » org.jboss.jmx.adaptor.snmp.agent 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService

SnmpAgentService
public class SnmpAgentService extends ListenerServiceMBeanSupport implements SnmpAgentServiceMBean(Code)
SnmpAgentService is an MBean class implementing an SNMP agent. It allows to send V1 or V2 traps to one or more SNMP managers defined by their IP address, listening port number and expected SNMP version. It support mapping SNMP get/set requests JMX mbean attribute get/sets.
author:
   Spyros Pollatos
author:
   Dimitris Andreadis
author:
   Krishnaraj S
version:
   $Revision: 44599 $


Field Summary
final public static  StringDEFAULT_READ_COMMUNITY
    
final public static  StringDEFAULT_WRITE_COMMUNITY
    
final public static  intSNMPV1
    
final public static  intSNMPV2
    

Constructor Summary
public  SnmpAgentService()
    

Method Summary
public  StringgetBindAddress()
    
public  booleangetDynamicSubscriptions()
    
public  intgetHeartBeatPeriod()
    
public  longgetInstantiationTime()
     Returns the difference, measured in milliseconds, between the instantiation time and midnight, January 1, 1970 UTC.
public  StringgetManagersResName()
    
public  StringgetNotificationMapResName()
    
public  intgetNumberOfThreads()
    
public  intgetPort()
    
public  StringgetRequestHandlerClassName()
    
public  StringgetRequestHandlerResName()
    
public  intgetSnmpVersion()
    
public  ObjectNamegetTimerName()
    
public  longgetTrapCount()
    
public  StringgetTrapFactoryClassName()
    
public  longgetUptime()
    
public  voidhandleNotification2(Notification n, Object handback)
     All notifications are intercepted here and are routed for emission.
public  voidreconfigureRequestHandler()
     Reconfigures the RequestHandler, reponsible for handling get requests etc.
public  voidsetBindAddress(String bindAddress)
    
public  voidsetDynamicSubscriptions(boolean dynamicSubscriptions)
    
public  voidsetHeartBeatPeriod(int heartBeatPeriod)
    
public  voidsetManagersResName(String managersResName)
    
public  voidsetNotificationMapResName(String notificationMapResName)
    
public  voidsetNumberOfThreads(int numberOfThreads)
    
public  voidsetPort(int port)
    
public  voidsetReadCommunity(String readCommunity)
    
public  voidsetRequestHandlerClassName(String requestHandlerClassName)
    
public  voidsetRequestHandlerResName(String requestHandlerResName)
    
public  voidsetSnmpVersion(int snmpVersion)
    
public  voidsetTimerName(ObjectName timerName)
    
public  voidsetTrapFactoryClassName(String name)
    
public  voidsetWriteCommunity(String writeCommunity)
    
protected  voidstartService()
    
protected  voidstopService()
    

Field Detail
DEFAULT_READ_COMMUNITY
final public static String DEFAULT_READ_COMMUNITY(Code)
Default communities



DEFAULT_WRITE_COMMUNITY
final public static String DEFAULT_WRITE_COMMUNITY(Code)



SNMPV1
final public static int SNMPV1(Code)
Supported versions



SNMPV2
final public static int SNMPV2(Code)




Constructor Detail
SnmpAgentService
public SnmpAgentService()(Code)
Default CTOR




Method Detail
getBindAddress
public String getBindAddress()(Code)
Gets the agent bind address



getDynamicSubscriptions
public boolean getDynamicSubscriptions()(Code)
Gets the dynamic subscriptions status



getHeartBeatPeriod
public int getHeartBeatPeriod()(Code)
Gets the heartbeat switch



getInstantiationTime
public long getInstantiationTime()(Code)
Returns the difference, measured in milliseconds, between the instantiation time and midnight, January 1, 1970 UTC.



getManagersResName
public String getManagersResName()(Code)
Gets the name of the file containing SNMP manager specifications



getNotificationMapResName
public String getNotificationMapResName()(Code)
Gets the name of the file containing the notification/trap mappings



getNumberOfThreads
public int getNumberOfThreads()(Code)
Gets the number of threads in the agent requests processing thread pool



getPort
public int getPort()(Code)
Gets the agent listening port number



getRequestHandlerClassName
public String getRequestHandlerClassName()(Code)
Gets the RequestHandler implementation class



getRequestHandlerResName
public String getRequestHandlerResName()(Code)
Gets the resource file name containing get/set mappings



getSnmpVersion
public int getSnmpVersion()(Code)
Gets the snmp protocol version



getTimerName
public ObjectName getTimerName()(Code)
Gets the utilised timer MBean name



getTrapCount
public long getTrapCount()(Code)
Returns the current trap counter reading



getTrapFactoryClassName
public String getTrapFactoryClassName()(Code)
Gets the utilised trap factory name



getUptime
public long getUptime()(Code)
Returns the up-time



handleNotification2
public void handleNotification2(Notification n, Object handback)(Code)
All notifications are intercepted here and are routed for emission.



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



setBindAddress
public void setBindAddress(String bindAddress) throws UnknownHostException(Code)
Sets the agent bind address



setDynamicSubscriptions
public void setDynamicSubscriptions(boolean dynamicSubscriptions)(Code)
Enables/disables dynamic subscriptions



setHeartBeatPeriod
public void setHeartBeatPeriod(int heartBeatPeriod)(Code)
Sets the heartbeat period (in seconds) switch



setManagersResName
public void setManagersResName(String managersResName)(Code)
Sets the name of the file containing SNMP manager specifications



setNotificationMapResName
public void setNotificationMapResName(String notificationMapResName)(Code)
Sets the name of the file containing the notification/trap mappings



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



setPort
public void setPort(int port)(Code)
Sets the agent listening port number



setReadCommunity
public void setReadCommunity(String readCommunity)(Code)
Sets the read community (no getter)



setRequestHandlerClassName
public void setRequestHandlerClassName(String requestHandlerClassName)(Code)
Sets the RequestHandler implementation class



setRequestHandlerResName
public void setRequestHandlerResName(String requestHandlerResName)(Code)
Sets the resource file name containing get/set mappings



setSnmpVersion
public void setSnmpVersion(int snmpVersion)(Code)
Sets the snmp protocol version



setTimerName
public void setTimerName(ObjectName timerName)(Code)
Sets the utilised timer MBean name



setTrapFactoryClassName
public void setTrapFactoryClassName(String name)(Code)
Sets the utilised trap factory name



setWriteCommunity
public void setWriteCommunity(String writeCommunity)(Code)
Sets the write community (no getter)



startService
protected void startService() throws Exception(Code)
Perform service start-up



stopService
protected void stopService() throws Exception(Code)
Perform service shutdown



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.