org.fusesource.fabric.servicemix.facade
Class ServiceMixFacadeSupport

java.lang.Object
  extended by org.fusesource.fabric.servicemix.facade.ServiceMixFacadeSupport
All Implemented Interfaces:
ServiceMixFacade
Direct Known Subclasses:
RemoteJMXServiceMixFacade

public abstract class ServiceMixFacadeSupport
extends java.lang.Object
implements ServiceMixFacade

Common facade support for both local and remote.

This implementation will provide most implementation supports as it turns out that both the local and remote org.apache.servicemix.ServiceMixContext will use the JMX API to gather information.


Field Summary
protected  javax.management.MBeanServerConnection mBeanServer
           
 
Constructor Summary
protected ServiceMixFacadeSupport(javax.management.MBeanServerConnection mBeanServer)
           
 
Method Summary
 java.util.List<org.apache.servicemix.nmr.management.ManagedEndpointMBean> getEndpoints()
          Gets all the ServiceMixContexts in the JVM
protected  javax.management.MBeanServerConnection getMBeanServerConnection()
           
protected  java.lang.Object newProxyInstance(javax.management.ObjectName objectName, java.lang.Class interfaceClass, boolean notificationBroadcaster)
           
protected  java.util.Set<javax.management.ObjectInstance> queryNames(javax.management.ObjectName name, javax.management.QueryExp query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mBeanServer

protected final javax.management.MBeanServerConnection mBeanServer
Constructor Detail

ServiceMixFacadeSupport

protected ServiceMixFacadeSupport(javax.management.MBeanServerConnection mBeanServer)
                           throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getMBeanServerConnection

protected javax.management.MBeanServerConnection getMBeanServerConnection()
                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

queryNames

protected java.util.Set<javax.management.ObjectInstance> queryNames(javax.management.ObjectName name,
                                                                    javax.management.QueryExp query)
                                                             throws java.lang.Exception
Throws:
java.lang.Exception

newProxyInstance

protected java.lang.Object newProxyInstance(javax.management.ObjectName objectName,
                                            java.lang.Class interfaceClass,
                                            boolean notificationBroadcaster)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getEndpoints

public java.util.List<org.apache.servicemix.nmr.management.ManagedEndpointMBean> getEndpoints()
                                                                                       throws java.lang.Exception
Description copied from interface: ServiceMixFacade
Gets all the ServiceMixContexts in the JVM

Specified by:
getEndpoints in interface ServiceMixFacade
Throws:
java.lang.Exception


Copyright © 2015 Red Hat. All Rights Reserved.