Java Doc for BaseJmxClient.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » console » jmxclient » 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 » ESB » cbesb 1.2 » com.bostechcorp.cbesb.console.jmxclient 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bostechcorp.cbesb.console.jmxclient.BaseJmxClient

All known Subclasses:   com.bostechcorp.cbesb.console.jmxclient.ServicemixJmxClient,
BaseJmxClient
abstract public class BaseJmxClient implements JmxClient(Code)


Field Summary
final public static  StringBOOTSTRAP_COMP
    
final protected static  StringENDPOINT_MBEAN_NAME
    
final protected static  StringLIFE_CYCLE_EXTENSION_MBEAN_NAME
    
protected static  intSERVICEMIX_CONTAINER
    
protected  intcontainerType
    
protected  JMXConnectorjmxConnector
    
static  ConcurrentHashMap<String, ClientListener>listenerStatisMap
    
static  ConcurrentHashMap<String, ClientListener>listenerStatusMap
    
protected  Loglog
    
protected  Stringpassword
    
protected  intport
    
static  ConcurrentHashMap<String, SaClientListener>saListenerStatisMap
    
static  ConcurrentHashMap<String, SaClientListener>saListenerStatusMap
    
protected  StringsessionId
    
protected  Stringuser
    

Constructor Summary
protected  BaseJmxClient(String port, String user, String password)
    
protected  BaseJmxClient()
    
protected  BaseJmxClient(String user, String password)
    

Method Summary
public  voidcloseJmxConnection()
    
public  voiddeployServiceAssembly(String assemblyZipUrl)
    
abstract protected  ObjectNamegetAdminServiceMbeanName()
    
public  voidgetAssemblyObj(JmxAssemblyObj sa)
     get one assembly info .
public  voidgetAssemblyObjAndValues(JmxAssemblyObj sa)
     get one assembly info and endpoint property's value.
public  voidgetCCSLVersionInfo(String name, ConsoleVersion consoleVersion)
    
public  JmxComponentObjgetComponentObj(String saName, String componentName)
    
public  JmxComponentObjgetComponentObjAndValues(String saName, String componentName)
    
public  voidgetConnectInfo()
    
public  ObjectName[]getCurComponentObjectNames()
    
public  voidgetCurrentComponentList(JmxComponentInfo info)
    
public  voidgetCurrentServiceAssemblyList(JmxAssemblyInfo info)
    
public  StringgetCurrentState(String componentName)
    
public  voidgetDependences(String componentName, JmxComponentInfo info)
    
public  voidgetDeployServiceAssemblyList(JmxAssemblyInfo info)
    
abstract protected  ObjectNamegetDeploymentServiceMbeanName()
    
public  String[]getDisplayTitles(String componentName)
    
public  String[]getEndpointNameArray()
    
public  JmxEndpointObjgetEndpointObj(String saName, String componentName, String endpointName)
    
public  String[]getExtendedComponentByAssembly(String saName)
    
public  voidgetInstallCompontentList(JmxComponentInfo info)
    
abstract protected  ObjectNamegetInstallationServiceMbeanName()
    
abstract protected  ObjectNamegetInstallerMbeanName(String componentName)
    
abstract protected  JMXConnectorgetJmxConnector(JMXServiceURL url)
    
protected  LifeCycleExtensionMBeangetLifeCycleExtensionMBean(String componentName)
    
abstract protected  ObjectNamegetLifeCycleExtensionMbeanName(String componentName)
    
abstract protected  ObjectNamegetLifeCycleMbeanName(String componentName)
    
public  StringgetLogConfig()
    
public  voidgetPropertyObjects(String componentName, String endpointName, JmxEndpointObj obj)
    
protected  ObjectgetProxy(ObjectName name, Class type)
    
abstract protected  ObjectNamegetRegistryMbeanName()
    
public  voidgetRemoveComponentList(JmxComponentInfo info)
    
public  voidgetRemoveServiceAssemblyList(JmxAssemblyInfo info)
    
public  String[]getSANames()
    
public  voidgetSaList(JmxEndpointInfo info)
     get the endpoint status and properties info for all SAs .
public  MBeanServerConnectiongetServerConnection()
    
public  StringgetServiceAssemblState(String assemblyName)
    
abstract protected  ObjectNamegetServiceUnitLifeCycleMbeanName(String serviceUintName, String componentName)
    
abstract protected  JMXServiceURLgetServiceUrl()
    
public  StringgetSessionId()
    
abstract protected  ObjectNamegetSharedLibraryInstallerMbeanName(String libName)
    
abstract protected  ObjectNamegetSharedLibraryMbeanName(String libName)
    
abstract protected  String[]getSharedLibraryNames()
    
public  ConcurrentHashMap<String, EndpointStatVO>getStatisticInfo(long timeout)
    
public  voidgetStatisticsChange(long timeout, JmxEndpointInfo info)
    
public  voidgetStatisticsChangeBySA(long timeout, JmxAssemblyObj sa)
    
public  voidgetStatusChange(long timeout, JmxEndpointInfo info)
    
public  voidgetStatusChangeBySA(long timeout, JmxAssemblyObj info)
    
public  JmxEndpointInfogetStatusChangeBySA(long timeout, String saName)
    
Parameters:
  timeout -
Parameters:
  saName - if there is status change, return JmxAssemblyObj.
public  voidgetVersionInfo(String name, ConsoleVersion consoleVersion)
    
protected  voidinit(String port, String user, String password)
    
public  voidinstallComponent(String componentName, String jarName)
    
public  voidinstallSharedLibrary(String libName, String jarName)
    
public  voidinstallUserComponent(String fileName)
    
public  voidremoveComponent(String componentJarName)
    
public  voidremoveServiceAssembly(String assemblyJarName)
    
public  voidremoveSharedLibrary(String libName)
    
public  voidresetEndpointStatistics(String saName)
    
public  voidsetLogConfig(String logConfig)
    
public  voidsetPropertyObjects(String componentName, String endpointName, String[][] propertyObjects, JmxEndpointInfo info)
    
public  voidsetSessionId(String sessionId)
    
public  voidshutdownComponent(String componentName)
    
public  voidshutdownServiceAssembly(String assemblyName)
    
public  voidstartComponent(String componentName)
    
public  voidstartEndpoint(String componentName, String endpointName)
    
public  voidstartServiceAssembly(String assemblyName)
    
public  voidstopComponent(String componentName)
    
public  voidstopEndpoint(String componentName, String endpointName)
    
public  voidstopPollingNotification()
    
public  voidstopServiceAssembly(String assemblyName)
    
public  voidundeployServiceAssembly(String assemblyName)
    
public  voiduninstallComponent(String componentName)
    
public  voiduninstallSharedLibrary(String libName)
    

Field Detail
BOOTSTRAP_COMP
final public static String BOOTSTRAP_COMP(Code)



ENDPOINT_MBEAN_NAME
final protected static String ENDPOINT_MBEAN_NAME(Code)



LIFE_CYCLE_EXTENSION_MBEAN_NAME
final protected static String LIFE_CYCLE_EXTENSION_MBEAN_NAME(Code)



SERVICEMIX_CONTAINER
protected static int SERVICEMIX_CONTAINER(Code)



containerType
protected int containerType(Code)



jmxConnector
protected JMXConnector jmxConnector(Code)



listenerStatisMap
static ConcurrentHashMap<String, ClientListener> listenerStatisMap(Code)



listenerStatusMap
static ConcurrentHashMap<String, ClientListener> listenerStatusMap(Code)



log
protected Log log(Code)



password
protected String password(Code)



port
protected int port(Code)



saListenerStatisMap
static ConcurrentHashMap<String, SaClientListener> saListenerStatisMap(Code)



saListenerStatusMap
static ConcurrentHashMap<String, SaClientListener> saListenerStatusMap(Code)



sessionId
protected String sessionId(Code)



user
protected String user(Code)




Constructor Detail
BaseJmxClient
protected BaseJmxClient(String port, String user, String password) throws Exception(Code)
Port is not neded anymore;



BaseJmxClient
protected BaseJmxClient() throws Exception(Code)
blank constructor; do whatever in super classes
throws:
  Exception -



BaseJmxClient
protected BaseJmxClient(String user, String password) throws Exception(Code)
main constructor
Parameters:
  user -
Parameters:
  password -
throws:
  Exception - Since 1.2




Method Detail
closeJmxConnection
public void closeJmxConnection()(Code)



deployServiceAssembly
public void deployServiceAssembly(String assemblyZipUrl) throws Exception(Code)



getAdminServiceMbeanName
abstract protected ObjectName getAdminServiceMbeanName() throws MalformedObjectNameException(Code)



getAssemblyObj
public void getAssemblyObj(JmxAssemblyObj sa) throws Exception(Code)
get one assembly info . no endpoint property values



getAssemblyObjAndValues
public void getAssemblyObjAndValues(JmxAssemblyObj sa) throws Exception(Code)
get one assembly info and endpoint property's value.



getCCSLVersionInfo
public void getCCSLVersionInfo(String name, ConsoleVersion consoleVersion) throws Exception(Code)



getComponentObj
public JmxComponentObj getComponentObj(String saName, String componentName) throws Exception(Code)



getComponentObjAndValues
public JmxComponentObj getComponentObjAndValues(String saName, String componentName) throws Exception(Code)



getConnectInfo
public void getConnectInfo() throws ServerSideException(Code)



getCurComponentObjectNames
public ObjectName[] getCurComponentObjectNames() throws Exception(Code)
get all installed components' objectName



getCurrentComponentList
public void getCurrentComponentList(JmxComponentInfo info) throws Exception(Code)
get all component for component->control view



getCurrentServiceAssemblyList
public void getCurrentServiceAssemblyList(JmxAssemblyInfo info) throws Exception(Code)



getCurrentState
public String getCurrentState(String componentName) throws Exception(Code)



getDependences
public void getDependences(String componentName, JmxComponentInfo info) throws Exception(Code)



getDeployServiceAssemblyList
public void getDeployServiceAssemblyList(JmxAssemblyInfo info) throws Exception(Code)



getDeploymentServiceMbeanName
abstract protected ObjectName getDeploymentServiceMbeanName() throws MalformedObjectNameException(Code)



getDisplayTitles
public String[] getDisplayTitles(String componentName) throws Exception(Code)



getEndpointNameArray
public String[] getEndpointNameArray() throws Exception(Code)



getEndpointObj
public JmxEndpointObj getEndpointObj(String saName, String componentName, String endpointName) throws Exception(Code)



getExtendedComponentByAssembly
public String[] getExtendedComponentByAssembly(String saName) throws Exception(Code)



getInstallCompontentList
public void getInstallCompontentList(JmxComponentInfo info) throws Exception(Code)
get all component for component->install view



getInstallationServiceMbeanName
abstract protected ObjectName getInstallationServiceMbeanName() throws MalformedObjectNameException(Code)



getInstallerMbeanName
abstract protected ObjectName getInstallerMbeanName(String componentName) throws MalformedObjectNameException(Code)



getJmxConnector
abstract protected JMXConnector getJmxConnector(JMXServiceURL url) throws ServerSideException(Code)



getLifeCycleExtensionMBean
protected LifeCycleExtensionMBean getLifeCycleExtensionMBean(String componentName) throws Exception(Code)



getLifeCycleExtensionMbeanName
abstract protected ObjectName getLifeCycleExtensionMbeanName(String componentName) throws MalformedObjectNameException(Code)



getLifeCycleMbeanName
abstract protected ObjectName getLifeCycleMbeanName(String componentName) throws MalformedObjectNameException(Code)



getLogConfig
public String getLogConfig() throws ServerSideException(Code)



getPropertyObjects
public void getPropertyObjects(String componentName, String endpointName, JmxEndpointObj obj) throws Exception(Code)



getProxy
protected Object getProxy(ObjectName name, Class type) throws ServerSideException(Code)



getRegistryMbeanName
abstract protected ObjectName getRegistryMbeanName() throws MalformedObjectNameException(Code)



getRemoveComponentList
public void getRemoveComponentList(JmxComponentInfo info) throws Exception(Code)



getRemoveServiceAssemblyList
public void getRemoveServiceAssemblyList(JmxAssemblyInfo info) throws Exception(Code)



getSANames
public String[] getSANames() throws Exception(Code)



getSaList
public void getSaList(JmxEndpointInfo info) throws Exception(Code)
get the endpoint status and properties info for all SAs .



getServerConnection
public MBeanServerConnection getServerConnection() throws ServerSideException(Code)



getServiceAssemblState
public String getServiceAssemblState(String assemblyName) throws Exception(Code)



getServiceUnitLifeCycleMbeanName
abstract protected ObjectName getServiceUnitLifeCycleMbeanName(String serviceUintName, String componentName) throws MalformedObjectNameException(Code)



getServiceUrl
abstract protected JMXServiceURL getServiceUrl() throws MalformedURLException(Code)



getSessionId
public String getSessionId()(Code)



getSharedLibraryInstallerMbeanName
abstract protected ObjectName getSharedLibraryInstallerMbeanName(String libName) throws MalformedObjectNameException(Code)



getSharedLibraryMbeanName
abstract protected ObjectName getSharedLibraryMbeanName(String libName) throws MalformedObjectNameException(Code)



getSharedLibraryNames
abstract protected String[] getSharedLibraryNames() throws ServerSideException(Code)



getStatisticInfo
public ConcurrentHashMap<String, EndpointStatVO> getStatisticInfo(long timeout) throws Exception(Code)
timeout should larger than 60000ms



getStatisticsChange
public void getStatisticsChange(long timeout, JmxEndpointInfo info) throws Exception(Code)



getStatisticsChangeBySA
public void getStatisticsChangeBySA(long timeout, JmxAssemblyObj sa) throws Exception(Code)



getStatusChange
public void getStatusChange(long timeout, JmxEndpointInfo info) throws Exception(Code)



getStatusChangeBySA
public void getStatusChangeBySA(long timeout, JmxAssemblyObj info) throws Exception(Code)



getStatusChangeBySA
public JmxEndpointInfo getStatusChangeBySA(long timeout, String saName) throws Exception(Code)

Parameters:
  timeout -
Parameters:
  saName - if there is status change, return JmxAssemblyObj. if not, return null .
throws:
  Exception -



getVersionInfo
public void getVersionInfo(String name, ConsoleVersion consoleVersion) throws Exception(Code)



init
protected void init(String port, String user, String password) throws ServerSideException(Code)



installComponent
public void installComponent(String componentName, String jarName) throws Exception(Code)



installSharedLibrary
public void installSharedLibrary(String libName, String jarName) throws Exception(Code)



installUserComponent
public void installUserComponent(String fileName) throws Exception(Code)



removeComponent
public void removeComponent(String componentJarName) throws Exception(Code)



removeServiceAssembly
public void removeServiceAssembly(String assemblyJarName) throws Exception(Code)



removeSharedLibrary
public void removeSharedLibrary(String libName) throws Exception(Code)



resetEndpointStatistics
public void resetEndpointStatistics(String saName) throws Exception(Code)
if saname=="all",reset all SA's statistics info, otherwise reset one SA's statistics info which name is saName
Parameters:
  saName -
throws:
  Exception -



setLogConfig
public void setLogConfig(String logConfig) throws ServerSideException(Code)



setPropertyObjects
public void setPropertyObjects(String componentName, String endpointName, String[][] propertyObjects, JmxEndpointInfo info) throws Exception(Code)



setSessionId
public void setSessionId(String sessionId)(Code)



shutdownComponent
public void shutdownComponent(String componentName) throws Exception(Code)



shutdownServiceAssembly
public void shutdownServiceAssembly(String assemblyName) throws Exception(Code)



startComponent
public void startComponent(String componentName) throws Exception(Code)



startEndpoint
public void startEndpoint(String componentName, String endpointName) throws Exception(Code)



startServiceAssembly
public void startServiceAssembly(String assemblyName) throws Exception(Code)



stopComponent
public void stopComponent(String componentName) throws Exception(Code)



stopEndpoint
public void stopEndpoint(String componentName, String endpointName) throws Exception(Code)



stopPollingNotification
public void stopPollingNotification()(Code)



stopServiceAssembly
public void stopServiceAssembly(String assemblyName) throws Exception(Code)



undeployServiceAssembly
public void undeployServiceAssembly(String assemblyName) throws Exception(Code)



uninstallComponent
public void uninstallComponent(String componentName) throws Exception(Code)



uninstallSharedLibrary
public void uninstallSharedLibrary(String libName) throws Exception(Code)



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.