Package org.globus.workspace.client_core.repr

Examples of org.globus.workspace.client_core.repr.State


                    "shutdown-save is not 'TransportReady' which is illegal";
                throw new ParameterProblem(err);
            }
        }

        this.exitState = new State(State.STATE_TransportReady);
    }
View Full Code Here


        }

        try {

            SubscribeWait waiter = null;
            State useExitState = this.exitState;
            if (this.subscribeBeforeAction) {

                if (this.autodestroy) {
                    // there's no need for the waiter to wait for exit states
                    // in the auto-destroy case because we're setting up an
View Full Code Here

        if (!State.testValidState(this.args.exitStateString)) {
            throw new ParameterProblem("Provided exit string is not a " +
                    "valid state: '" + this.args.exitStateString + "'");
        }

        this.exitState = new State(this.args.exitStateString);
        if (this.pr.enabled()) {
            final String dbg = "Exit state: " + this.exitState.toString();
            if (this.pr.useThis()) {
                this.pr.dbg(dbg);
            } else if (this.pr.useLogging()) {
View Full Code Here

                    "valid state: '" +
                            this.args.veryTerseNotifyStateString + "'");
        }

        this.veryTerseNotifyState =
                new State(this.args.veryTerseNotifyStateString);
        if (this.pr.enabled()) {
            final String dbg = "very-terse-notify state: " +
                    this.veryTerseNotifyState.toString();
            if (this.pr.useThis()) {
                this.pr.dbg(dbg);
View Full Code Here

        }

        final Workspace workspace = new Workspace();

        workspace.setEpr(this.epr);
        workspace.setCurrentState(new State());

        this.workspaces = new Workspace[1];
        this.workspaces[0] = workspace;
    }
View Full Code Here

        final Workspace workspace = new Workspace();

        final EndpointReferenceType anepr = report.getEpr();

        final State state =
                State.fromCurrentState_Type(report.getCurrentState());

        if (anepr == null) {
            this.pr.debugln("Workspace # NONE");
        } else {
            this.pr.debugln("Workspace # " +
                                EPRUtils.getIdFromEPR(report.getEpr()));
        }

        if (state == null) {
            this.pr.debugln("  - state: NONE");
        } else {
            this.pr.debugln("  - state: " + state.getState());
            final Exception e = state.getProblem();
            if (e != null) {
                this.pr.debugln("  - error: " +
                        CommonUtil.genericExceptionMessageWrapper(e));
            }
        }
View Full Code Here

        final String netStr = NetUtils.oneLineNetString(workspace);

        final String problemPrefix = "** PROBLEM: ";

        final State state = workspace.getCurrentState();
        String stateStr;
        String problemStr = null;
        if (state == null) {
            stateStr = "[no state]";
        } else {
            stateStr = "State: " + state.getState();
            final Exception problem = state.getProblem();
            if (problem != null) {
                final String fullProblemString =  CommonUtil.
                        genericExceptionMessageWrapper(problem);

                final int len = fullProblemString.length();
View Full Code Here

    private void handleExitState() throws ParameterProblem {

        if (this.args.exitStateString == null) {
            this.targetState = CurrentState_Enumeration.Running;
            this.compareState = new State("Running");
            return// *** EARLY RETURN ***
        }


        if (!State.testValidState(this.args.exitStateString)) {
            throw new ParameterProblem("Provided exit string is not a " +
                    "valid state: '" + this.args.exitStateString + "'");
        }

        this.compareState = new State(this.args.exitStateString);

        if (this.pr.enabled()) {
            final String dbg = "Exit state: " + this.compareState.toString();
            if (this.pr.useThis()) {
                this.pr.dbg(dbg);
View Full Code Here

        boolean oneErrorExists = false;

        for (int i = 0; i < workspaces.length; i++) {
           
            final Workspace workspace = workspaces[i];
            final State state = workspace.getCurrentState();

            if (state == null) {

                allAtState = false;

            } else {

                if (state.isCancelled() || state.isCorrupted()) {
                    oneErrorExists = true;
                    allAtState = false;
                    break; // definitive
                }
View Full Code Here

        }

    }

    protected String getStateString(Workspace w) {
        final State state = w.getCurrentState();
        if (state == null) {
            return "UNKNOWN";
        }
        return state.getState().toUpperCase();
    }
View Full Code Here

TOP

Related Classes of org.globus.workspace.client_core.repr.State

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.