Examples of executeAndReturnAttributes()


Examples of com.sun.enterprise.admin.cli.remote.RemoteCommand.executeAndReturnAttributes()

        try {
            RemoteCommand cmd =
                    new RemoteCommand("__locations", programOpts, env);
            Map<String, String> attrs =
                    cmd.executeAndReturnAttributes(new String[]{"__locations"});
            String theirDirPath = attrs.get(directoryKey);
            logger.finer("Remote server has root directory " + theirDirPath);

            if (ok(theirDirPath)) {
                File theirDir = getUniquePath(new File(theirDirPath));
View Full Code Here

Examples of com.sun.enterprise.admin.cli.remote.RemoteCommand.executeAndReturnAttributes()

     */
    protected final boolean isRestartable() throws CommandException {
        // false negative is worse than false positive.
        // there is one and only one case where we return false
        RemoteCommand cmd = new RemoteCommand("_get-runtime-info", programOpts, env);
        Map<String, String> atts = cmd.executeAndReturnAttributes("_get-runtime-info");

        if (atts != null) {
            String val = atts.get("restartable_value");

            if (ok(val) && val.equals("false"))
View Full Code Here

Examples of com.sun.enterprise.admin.cli.remote.RemoteCommand.executeAndReturnAttributes()

    private boolean rendezvousOccurred() {
        boolean rendezvousOccurred = false;
        RemoteCommand rc = null;
        try {
            rc = new RemoteCommand("get", this.programOpts, this.env);
            Map<String, String> map = rc.executeAndReturnAttributes("get", RENDEZVOUS_DOTTED_NAME);
            String output = map.get("children");
            String val = output.substring(output.indexOf("=") + 1);
            rendezvousOccurred = Boolean.parseBoolean(val);
            logger.finer("rendezvousOccurred = " + val + " for instance " + instanceName);
        } catch (CommandException ce) {
View Full Code Here

Examples of com.sun.enterprise.admin.cli.remote.RemoteCommand.executeAndReturnAttributes()

        return instanceHostName;
    }

    private void setDomainName() throws CommandException {
        RemoteCommand rc = new RemoteCommand("_get-runtime-info", this.programOpts, this.env);
        Map<String, String> map = rc.executeAndReturnAttributes("_get-runtime-info", "--target", "server");
        this.domainName = map.get("domain_name_value");
    }

    @Override
    protected boolean mkdirs(File f) {
View Full Code Here

Examples of com.sun.enterprise.admin.cli.remote.RemoteCommand.executeAndReturnAttributes()

    private boolean rendezvousOccurred() {
        boolean rendezvousOccurred = false;
        RemoteCommand rc = null;
        try {
            rc = new RemoteCommand("get", this.programOpts, this.env);
            Map<String, String> map = rc.executeAndReturnAttributes("get", RENDEZVOUS_DOTTED_NAME);
            String output = map.get("children");
            String val = output.substring(output.indexOf("=") + 1);
            rendezvousOccurred = Boolean.parseBoolean(val);
            logger.finer("rendezvousOccurred = " + val + " for instance " + instanceName);
        } catch (CommandException ce) {
View Full Code Here

Examples of com.sun.enterprise.admin.cli.remote.RemoteCommand.executeAndReturnAttributes()

        return instanceHostName;
    }

    private void setDomainName() throws CommandException {
        RemoteCommand rc = new RemoteCommand("_get-runtime-info", this.programOpts, this.env);
        Map<String, String> map = rc.executeAndReturnAttributes("_get-runtime-info", "--target", "server");
        this.domainName = map.get("domain_name_value");
    }

    @Override
    protected boolean mkdirs(File f) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.