Package org.apache.geronimo.deployment.plugin

Examples of org.apache.geronimo.deployment.plugin.TargetImpl


    private ObjectName configName;
    private ConfigurationParent parent;

    public LocalServer(URI rootConfigID, File storeDir) throws Exception {
        this.rootConfigID = rootConfigID;
        target = new TargetImpl(this.rootConfigID.toString(), null);
        kernel = new Kernel(this.rootConfigID.toString(), "geronimo.localserver");
        this.storeDir = storeDir;
    }
View Full Code Here


                TargetModuleIDImpl module = (TargetModuleIDImpl) modules[i];

                URI moduleID = URI.create(module.getModuleID());
                kernel.stopConfiguration(moduleID);

                TargetImpl target = (TargetImpl) module.getTarget();
                ObjectName storeName = target.getObjectName();
                URI configID = URI.create(module.getModuleID());
                kernel.invoke(storeName, "uninstall", new Object[]{configID}, UNINSTALL_SIG);
                addModule(module);
            }
            complete("Completed");
View Full Code Here

                TargetModuleIDImpl module = (TargetModuleIDImpl) modules[i];

                URI configID = URI.create(module.getModuleID());
                kernel.stopConfiguration(configID);
               
                TargetImpl target = (TargetImpl) module.getTarget();
                ObjectName storeName = target.getObjectName();
                kernel.invoke(storeName, "uninstall", new Object[]{configID}, UNINSTALL_SIG);

                Object[] args = {moduleArchive, deploymentPlan};
                URI configId = (URI) kernel.invoke(deployer, "deploy", args, DEPLOY_SIG);
                module = new TargetModuleIDImpl(module.getTarget(), configId.toString());
View Full Code Here

        }

        Target[] targets = new Target[stores.size()];
        for (int i = 0; i < stores.size(); i++) {
            ObjectName storeName = (ObjectName) stores.get(i);
            targets[i] = new TargetImpl(storeName, null);
        }
        return targets;
    }
View Full Code Here

        }

        try {
            ArrayList result = new ArrayList();
            for (int i = 0; i < targetList.length; i++) {
                TargetImpl target = (TargetImpl) targetList[i];
                ObjectName storeName = target.getObjectName();
                List infos = kernel.listConfigurations(storeName);
                for (int j = 0; j < infos.size(); j++) {
                    ConfigurationInfo info = (ConfigurationInfo) infos.get(j);
                    if (filter.accept(info)) {
                        TargetModuleID moduleID = new TargetModuleIDImpl(target, info.getConfigID().toString());
View Full Code Here

        }

        Target[] targets = new Target[stores.size()];
        for (int i = 0; i < stores.size(); i++) {
            AbstractName storeName = (AbstractName) stores.get(i);
            targets[i] = new TargetImpl(storeName, null);
        }
        return targets;
    }
View Full Code Here

            throw new IllegalStateException("Disconnected");
        }
        try {
            ArrayList<TargetModuleIDImpl> result = new ArrayList<TargetModuleIDImpl>();
            for (Target aTargetList : targetList) {
                TargetImpl target = (TargetImpl) aTargetList;
                AbstractName storeName = target.getAbstractName();
                List infos = configurationManager.listConfigurations(storeName);
                for (Object info1 : infos) {
                    ConfigurationInfo info = (ConfigurationInfo) info1;
                    if (filter.accept(info)) {
                        String name = info.getConfigID().toString();
View Full Code Here

                    } catch (NoSuchConfigException e) {
                        // module was already undeployed - just continue
                    }

                    try {
                        TargetImpl target = (TargetImpl) module.getTarget();
                        ObjectName storeName = target.getObjectName();
                        URI configID = URI.create(module.getModuleID());
                        kernel.invoke(storeName, "uninstall", new Object[]{configID}, UNINSTALL_SIG);
                        updateStatus("Module "+moduleID+" uninstalled.");
                        addModule(module);
                    } catch (NoSuchConfigException e) {
View Full Code Here

                        }
                    } catch (NoSuchConfigException e) {
                        // The modules isn't loaded -- that's OK
                    }

                    TargetImpl target = (TargetImpl) module.getTarget();
                    ObjectName storeName = target.getObjectName();
                    kernel.invoke(storeName, "uninstall", new Object[]{configID}, UNINSTALL_SIG);
                    updateStatus("Uninstalled "+configID);

                    doDeploy(module.getTarget(), false);
                    updateStatus("Deployed "+configID);
View Full Code Here

        }

        Target[] targets = new Target[stores.size()];
        for (int i = 0; i < stores.size(); i++) {
            ObjectName storeName = (ObjectName) stores.get(i);
            targets[i] = new TargetImpl(storeName, null);
        }
        return targets;
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.deployment.plugin.TargetImpl

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.