Package org.apache.axis2.description

Examples of org.apache.axis2.description.AxisServiceGroup


        assertNotSame(reOld, reNew);
    }

    public void testUpdateServiceParameter() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testUp");
        AxisService asv = new AxisService("testServiceUp");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);

        Parameter parm = new Parameter();
        parm.setName("testParam");
View Full Code Here


        assertTrue(s1.equals("TestParam"));
    }

    public void testDeleteService() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("ExistingSvGroup1");
        AxisService asv = new AxisService("ExistingSv1");
        asvGroup.addService(asv);

        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);

        pf.getServicePM().deleteService(asv);
View Full Code Here

        Resource re = pf.getServicePM().getService(asv);
        assertNull(re);
    }

    public void testRemoveServiceParam() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testGD");
        AxisService asv = new AxisService("testServiceD");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);

        Parameter parm = new Parameter();
        parm.setName("testParam1");
View Full Code Here

        pf.getServicePM().removeServiceParameter(asv, parm);
        assertFalse(configRegistry.resourceExists(serviceParamResourcePath));
    }

    public void testDeleteServiceGroup() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testSVG");
        AxisService asv = new AxisService("testSvgService");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);

        pf.getServiceGroupPM().deleteServiceGroup(asvGroup);
        String sgName = asvGroup.getServiceGroupName();
        String sgResourcePath = RegistryResources.SERVICE_GROUPS + sgName;
        assertFalse(configRegistry.resourceExists(sgResourcePath));
    }
View Full Code Here

        assertFalse(configRegistry.resourceExists(modulePath));
    }


    public void testengageModuleForService() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testAsvG");
        AxisService asv = new AxisService("testAsv");
        asvGroup.addService(asv);
        AxisModule am = new AxisModule();
        am.setName("Module2");
        Version v = new Version("1.0");
        am.setVersion(v);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
View Full Code Here

    public void tearDown() throws Exception {
        super.tearDown();
    }

    public void testGetResourcePath() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testServiceGroup1");
        AxisService asv = new AxisService("testService1");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        String path = PersistenceUtils.getResourcePath(asvGroup);
        assertTrue(path.equals(RegistryResources.SERVICE_GROUPS + "testServiceGroup1"));
    }
View Full Code Here

        String path = PersistenceUtils.getResourcePath(asvGroup);
        assertTrue(path.equals(RegistryResources.SERVICE_GROUPS + "testServiceGroup1"));
    }

    public void testGetResourcePath1() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testServiceGroup2");
        AxisService asv = new AxisService("testService2");
        asvGroup.addService(asv);
        pf.getServiceGroupPM().handleNewServiceGroupAddition(asvGroup);
        pf.getServicePM().handleNewServiceAddition(asv);
        String path = PersistenceUtils.getResourcePath(asv);
        assertTrue(path.equals(RegistryResources.SERVICE_GROUPS +
                "testServiceGroup2/services/testService2"));
View Full Code Here

        assertTrue(path.equals(RegistryResources.SERVICE_GROUPS +
                "testServiceGroup2/services/testService2"));
    }

    public void testGetResourcePath2() throws Exception {
        AxisServiceGroup asvGroup = new AxisServiceGroup(ac);
        asvGroup.setServiceGroupName("testServiceGroup3");
        AxisService asv = new AxisService("testService3");
        AxisOperation operation = AxisOperationFactory
                .getAxisOperation(WSDLConstants.MEP_CONSTANT_IN_OUT);
        asvGroup.addService(asv);
        asv.addOperation(operation);
        String path = PersistenceUtils.getResourcePath(operation);
        assertNotNull(path);
    }
View Full Code Here

                        Resource axisDescriptionResource;
                        try {
                            //Recover the faulty serviceGroup or service.
                            if (axisDescription instanceof AxisServiceGroup) {
                                AxisServiceGroup axisServiceGroup =
                                        (AxisServiceGroup) axisDescription;
                                axisDescriptionResource = pf.getServiceGroupPM().getServiceGroup(
                                        axisServiceGroup.getServiceGroupName());
                                pf.getServiceGroupPM().handleExistingServiceGroupInit(
                                        axisDescriptionResource, axisServiceGroup);

                                //Start all the services in this serviceGroup and remove the special
                                // parameter
                                startServiceGroup(axisServiceGroup,
                                        axisServiceGroup.getAxisConfiguration());
                                log.info("Recovered and Deployed axis2 service group: " +
                                        axisServiceGroup.getServiceGroupName() +
                                        getTenantIdAndDomainString());

                            } else if (axisDescription instanceof AxisService) {
                                AxisService axisService = (AxisService) axisDescription;
                                axisDescriptionResource = pf.getServicePM().getService(axisService);
View Full Code Here

        }
    }

    public void deployStockQuoteService() throws IOException {
        File file = copyResourceToFileSystem("SimpleStockQuoteService.aar", "SimpleStockQuoteService.aar");
        AxisServiceGroup serviceGroup = DeploymentEngine.loadServiceGroup(file, cfgCtx);
        cfgCtx.getAxisConfiguration().addServiceGroup(serviceGroup);
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.AxisServiceGroup

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.