Package flex.management

Examples of flex.management.BaseControl


     *   resolve the MessageBroker MBean name
     *   @return An objectName for the MessageBroker MBean.
     */
    public String getObjectNameForMessageBroker() throws Exception
    {          
        BaseControl bc = mb.getControl();
        return bc.getObjectName().toString();
   
View Full Code Here


    public String getObjectNameForService(String serviceName) throws Exception
    {        
        Service service = (Service) mb.getService(serviceName);
        if (service == null)
            throw new Exception("Service " + serviceName + " not found");
        BaseControl bc = service.getControl();
        return bc.getObjectName().toString();
    }    
View Full Code Here

     *   @return An objectName for the destination MBean.
     */
    public String getObjectNameForDestination(String serviceName, String destinationName) throws Exception
    {         
        Destination dest = getDestination(serviceName, destinationName);
        BaseControl bc = dest.getControl();
        return bc.getObjectName().toString();
    }
View Full Code Here

        ServiceAdapter adp = dest.getAdapter();
       
        if (adp == null)
            throw new Exception("Adapter " + adapterName + " not found");
       
        BaseControl bc = adp.getControl();
        return bc.getObjectName().toString();
    }
View Full Code Here

        Destination dest = getDestination(serviceName, destinationName);
        if (!(dest instanceof MessageDestination))
            throw new Exception(destinationName + " not a MessageDestination");
        MessageDestination mdest = (MessageDestination)dest;

        BaseControl bc = mdest.getSubscriptionManager().getControl();    
        return bc.getObjectName().toString();
    }
View Full Code Here

        Destination dest = getDestination(serviceName, destinationName);
        if (!(dest instanceof MessageDestination))
            throw new Exception(destinationName + " not a MessageDestination");

        MessageDestination mdest = (MessageDestination)dest;
        BaseControl bc = mdest.getThrottleManager().getControl();     
        return bc.getObjectName().toString();
    }
View Full Code Here

    {
        Endpoint endpoint = (Endpoint) mb.getEndpoint(endpointName);
        if (endpoint == null)
            throw new Exception("Endpoint " + endpointName + " not found");
       
        BaseControl bc = endpoint.getControl();
        return bc.getObjectName().toString();
    }
View Full Code Here

TOP

Related Classes of flex.management.BaseControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.