Java Doc for JMXProxy.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » management » monitoring » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.management.monitoring 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas.management.monitoring.JMXProxy

All known Subclasses:   org.objectweb.jonas.management.monitoring.ServerProxy,  org.objectweb.jonas.management.monitoring.ClusterDaemonProxy,
JMXProxy
abstract public class JMXProxy (Code)
Abstract class acting as a JMXConnector client It is implemented by ServerProxy or ClusterDaemonProxy
author:
   durieuxp


Field Summary
final public static  intFAILED
    
final public static  intINITIAL
    
final public static  intRUNNING
    
final public static  intSTARTING
    
final public static  intSTOPPED
    
final public static  intSTOPPING
    
final public static  intUNKNOWN
    
final public static  intUNREACHABLE
     This state is corresponding to the situation when the JMX connection is broken - maybe temporary.
protected  MBeanServerConnectionconnection
    
protected  JMXConnectorconnector
    
 DomainMonitordm
    
protected  Mapenv
    
protected  JmxServiceImpljmx
    
protected static  Loggerlogger
     logger for traces.
protected  Stringname
    
protected  StringobjectName
     The OBJECT_NAME of this Proxy MBean Must be initialized before checking connection.
protected  ObjectNameserverOn
    
protected  intstate
    

Constructor Summary
public  JMXProxy(DomainMonitor dm, String name, Collection urls)
    

Method Summary
protected  booleancheckConnection()
     Check the established connection to the remote object, or try to establish a connection if the connection object is null.
public  booleanconnect(Collection urls)
    
public  voiddisconnect()
    
public  ObjectgetAttribute(ObjectName on, String attribute)
    
public  AttributeListgetAttributes(ObjectName on, String[] attributes)
    
public  MBeanServerConnectiongetConnection()
    
public  StringgetConnectionUrl()
    
public  StringgetDomain()
    
public  StringgetName()
    
public  StringgetObjectName()
    
public  intgetServerState()
    
public  StringgetState()
    
public  ArrayListgetUrls()
    
public  booleanisRegistered(ObjectName on)
    
public  SetqueryNames(ObjectName on)
    
public  voidsetObjectName(String on)
    

Field Detail
FAILED
final public static int FAILED(Code)
Server which can't be reached after a several number of retries



INITIAL
final public static int INITIAL(Code)
This is the initial state



RUNNING
final public static int RUNNING(Code)
Server is RUNNING and its reacheable



STARTING
final public static int STARTING(Code)
Server is starting (temporary state)



STOPPED
final public static int STOPPED(Code)
Server is stopped



STOPPING
final public static int STOPPING(Code)
Server is stopping (temporary state)



UNKNOWN
final public static int UNKNOWN(Code)
Server which started without the discovery and can't be reached after a several number of retries



UNREACHABLE
final public static int UNREACHABLE(Code)
This state is corresponding to the situation when the JMX connection is broken - maybe temporary.



connection
protected MBeanServerConnection connection(Code)
JMX connection



connector
protected JMXConnector connector(Code)
JMX Connector



dm
DomainMonitor dm(Code)
ref on the DomainMonitor



env
protected Map env(Code)
Environment used to get the connection



jmx
protected JmxServiceImpl jmx(Code)



logger
protected static Logger logger(Code)
logger for traces.



name
protected String name(Code)
Unique name of the remote object



objectName
protected String objectName(Code)
The OBJECT_NAME of this Proxy MBean Must be initialized before checking connection.



serverOn
protected ObjectName serverOn(Code)
The server's ObjectName (this corresponds to the J2EEServer MBean registered in the represented server's MBean server)



state
protected int state(Code)
State of the remote object (as seen from the proxy)




Constructor Detail
JMXProxy
public JMXProxy(DomainMonitor dm, String name, Collection urls)(Code)
Constructor
Parameters:
  name - the proxy name
Parameters:
  urls - the urls that can be used to establish connection
Parameters:
  dm - reference to the domain monitor




Method Detail
checkConnection
protected boolean checkConnection()(Code)
Check the established connection to the remote object, or try to establish a connection if the connection object is null. true if connection is ok.



connect
public boolean connect(Collection urls)(Code)
Try to connect this Proxy to its Server
Parameters:
  urls - the urls that can be used to establish connection True if connected



disconnect
public void disconnect()(Code)
Disconnect the proxy



getAttribute
public Object getAttribute(ObjectName on, String attribute)(Code)
Get an MBean Attribute on the remote server
Parameters:
  on - the MBean's ObjectName
Parameters:
  attribute - the attribute name the attribute value



getAttributes
public AttributeList getAttributes(ObjectName on, String[] attributes)(Code)
Get a group of MBean Attributes on the remote server
Parameters:
  on - the MBean's ObjectName
Parameters:
  attributes - the attributes names a list of Attribute objects containing for each attributeits name and value



getConnection
public MBeanServerConnection getConnection()(Code)
the connection to the remote MBean server



getConnectionUrl
public String getConnectionUrl()(Code)
the URL of the current connection



getDomain
public String getDomain()(Code)
the current domain name



getName
public String getName()(Code)
The name of the remote object



getObjectName
public String getObjectName()(Code)
Return this MBean's name The name of the MBean (see OBJECT_NAME in the JSR77)



getServerState
public int getServerState()(Code)
Return the int giving the server state the state value as an int



getState
public String getState()(Code)
MBean method returning the state as a String Return the String form of the server state the state value



getUrls
public ArrayList getUrls()(Code)
the list of urls that can be used for connection



isRegistered
public boolean isRegistered(ObjectName on)(Code)
Check if an ObjectName is registered on the remote server
Parameters:
  on - the ObjectName to be checked true if registered



queryNames
public Set queryNames(ObjectName on)(Code)

Parameters:
  on - the MBean's ObjectName A set containing the ObjectNames for the MBeans selected.



setObjectName
public void setObjectName(String on)(Code)
Set its OBJECT_NAME and register the MBean
Parameters:
  on - OBJECT_NAME



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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