Package org.rioproject.impl.opstring

Examples of org.rioproject.impl.opstring.OpString


                                                        sbi.uuid,
                                                        null,
                                                        resourceCapability,
                                                        50);
        service = createServiceElement();
        OperationalString opString = new OpString("test", null);

        opString.addService(service);
        OpStringManager parent = null;
        boolean active = true;
        Configuration config = new DynamicConfiguration();
        OpStringManagerController opStringManagerController = new OpStringManagerController();
        manager = new DefaultOpStringManager(opString,
View Full Code Here


*/
public class DefaultOpStringManagerTest {

    @Test
    public void testSimpleStandAlone() throws IOException {
        OperationalString opString = new OpString("test", null);
        OpStringManager parent = null;
        boolean active = true;
        Configuration config = new DynamicConfiguration();
        OpStringManagerController opStringManagerController = new OpStringManagerController();
        DefaultOpStringManager manager = new DefaultOpStringManager(opString,
View Full Code Here

    @Test
    public void testNestedStandAlone() throws Exception {
        OpStringManagerController opStringManagerController = new OpStringManagerController();
        opStringManagerController.setConfig(new DynamicConfiguration());
        OperationalString opString1 = new OpString("test-1", null);

        Map<String, Throwable> errorMap = new HashMap<String, Throwable>();
        OpStringManager manager1 = opStringManagerController.addOperationalString(opString1,
                                                                                 errorMap,
                                                                                 null,
                                                                                 TestUtil.createDeployAdmin(),
                                                                                 null);
        Assert.assertTrue(manager1.isStandAlone());
        Assert.assertTrue(manager1.getParentCount()==0);

        OpString opString2 = new OpString("test-2", null);
        opString2.addOperationalString(opString1);
        OpStringManager manager2 = opStringManagerController.addOperationalString(opString2,
                                                                                 errorMap,
                                                                                 null,
                                                                                 TestUtil.createDeployAdmin(),
                                                                                 null);
View Full Code Here

    @Test
    public void testNested() throws Exception {
        OpStringManagerController opStringManagerController = new OpStringManagerController();
        opStringManagerController.setConfig(new DynamicConfiguration());
        OperationalString opString1 = new OpString("test-1", null);

        Map<String, Throwable> errorMap = new HashMap<String, Throwable>();       

        OpString opString2 = new OpString("test-2", null);
        opString2.addOperationalString(opString1);
        OpStringManager manager2 = opStringManagerController.addOperationalString(opString2,
                                                                                 errorMap,
                                                                                 null,
                                                                                 TestUtil.createDeployAdmin(),
                                                                                 null);
View Full Code Here

     * Get the OperationalString the DefaultOpStringManager is managing
     *
     * @return The OperationalString the DefaultOpStringManager is managing
     */
    public OperationalString doGetOperationalString() {
        OpString opstr = new OpString(opString.getName(), opString.loadedFrom());
        opstr.setDeployed(deployStatus);
        for (ServiceElementManager mgr : svcElemMgrs) {
            opstr.addService(mgr.getServiceElement());
        }
        for (OpStringManager nestedMgr : nestedManagers) {
            opstr.addOperationalString(nestedMgr.doGetOperationalString());
        }
        opString = opstr;
        return (opString);
    }
View Full Code Here

TOP

Related Classes of org.rioproject.impl.opstring.OpString

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.