Package org.apache.servicemix.kernel.gshell.admin

Examples of org.apache.servicemix.kernel.gshell.admin.Instance


    public void setAdminService(AdminService adminService) {
        this.adminService = adminService;
    }

    protected Instance getExistingInstance(String name) {
        Instance i = adminService.getInstance(name);
        if (i == null) {
            throw new IllegalArgumentException("Instance '" + name + "' does not exist");
        }
        return i;
    }
View Full Code Here


            copyFilteredResourceToDir(serviceMixBase, "bin/servicemix.bat", props);
        } else {
            copyFilteredResourceToDir(serviceMixBase, "bin/servicemix", props);
            chmod(new File(serviceMixBase, "bin/servicemix"), "a+x");
        }
        Instance instance = new InstanceImpl(this, name, serviceMixBase.toString());
        instances.put(name, instance);
        saveState();
        return instance;
    }
View Full Code Here

        getExistingInstance(name).destroy();
    }


    private Instance getExistingInstance(String name) {
        Instance i = adminService.getInstance(name);
        if (i == null) {
            throw new IllegalArgumentException("Instance '" + name + "' does not exist");
        }
        return i;
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.kernel.gshell.admin.Instance

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.