Package org.apache.muse.ws.resource.sg.remote

Examples of org.apache.muse.ws.resource.sg.remote.ServiceGroupClient


   */
  protected void setUp() throws Exception
  {   
    _managementServer = ManagementFactory.getPlatformMBeanServer();
   
        ServiceGroupClient serviceGroup = getServiceGroupClient();
        WsResourceClient [] members = serviceGroup.getMembers();
       
        assertEquals(
            "No resource has been yet created so how is " +
              "it possible that service group children list is not empty?",
            0,
            members.length);

        _managementServer.invoke(
            Names.QPID_EMULATOR_OBJECT_NAME,
            "createQueue",
            new Object[]{_resourceObjectName = createResourceName()},
            new String[]{ObjectName.class.getName()});
               
        members = serviceGroup.getMembers();
        assertEquals(
            "One resource has just been created so " +
              "I expect to find it on service group children list...",
            1,
            members.length);
View Full Code Here


   * @throws Exception when either the server or some resource fails to shutdown.
   */
  @Override
  protected void tearDown() throws Exception
  {
        ServiceGroupClient serviceGroup = getServiceGroupClient();
        WsResourceClient [] members = serviceGroup.getMembers();

    _managementServer.invoke(
        Names.QPID_EMULATOR_OBJECT_NAME,
        "unregister",
        new Object[]{_resourceObjectName},
        new String[]{ObjectName.class.getName()});

        members = serviceGroup.getMembers();

        assertEquals(
            "No resource has been yet created so how is it possible that service group children list is not empty?",
            0,
            members.length);
View Full Code Here

   */
  private ServiceGroupClient getServiceGroupClient()
  {
    URI address = URI.create(
        Protocol.DEFAULT_ENDPOINT_URI.replaceFirst("8080",System.getProperty(Names.ADAPTER_PORT_PROPERTY_NAME)));
    return new ServiceGroupClient(new EndpointReference(address));
  }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.sg.remote.ServiceGroupClient

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.