Examples of WorkspaceStatusPortType


Examples of org.nimbustools.messaging.gt4_0.generated.status.WorkspaceStatusPortType

        }

        System.out.println("\nUsing endpoint:\n---------------\n" +
                            client.endpoint + "---------------\n");

        WorkspaceStatusPortType statusPort =
                                    client.initStatusPort(client.endpoint);
        try {
            client.setOptions((Stub)statusPort);
        } catch (Exception e) {
            die(e,"Problem with stub", client.isDebugMode());
        }

        for (Object actionObj : client.actions) {
            Integer action = (Integer) actionObj;

            if (action.equals(ACTION_FACTORYQUERY)) {
                (new RPQuery(client, client.endpoint, System.out)).start();
            }

            if (action.equals(ACTION_USAGEQUERY)) {
                UsedAndReservedTime_Type usedReserved = null;
                try {
                    usedReserved =
                            statusPort.queryUsedAndReservedTime(new VoidType());
                } catch (RemoteException e) {
                    die(e, "Problem with query", client.isDebugMode());
                }

                Duration used = usedReserved.getUsedTime();
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.status.WorkspaceStatusPortType

                EndpointReferenceType epr) {
       
        WorkspaceStatusServiceAddressingLocator locator =
            new WorkspaceStatusServiceAddressingLocator();

        WorkspaceStatusPortType port = null;

        try {
            port = locator.getWorkspaceStatusPortTypePort(epr);
            //setSecurity((Stub) factoryPort);
        } catch (Exception e) {
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.status.WorkspaceStatusPortType

            return; // *** EARLY RETURN ***
        }

        try {
            final WorkspaceStatusPortType port =
                    WSUtils.initStatusPortType(this.epr);
            this.stubConf.setOptions((Stub)port);
            this.portType = port;
        } catch (Throwable t) {
            final String err = "Problem setting up: " +
View Full Code Here

Examples of org.nimbustools.messaging.gt4_0.generated.status.WorkspaceStatusPortType

        if (this.out == null) {
            throw new Exception("no printstream");
        }

        WorkspaceStatusPortType statusPort =
                this.client.initStatusPort(this.endpoint);

        this.client.setOptions((Stub)statusPort);

        // return the entire RP document
        String queryStr = "/";

        QueryResourceProperties_Element query =
                new QueryResourceProperties_Element();

        query.setQueryExpression(
             createQueryExpression(WSRFConstants.XPATH_1_DIALECT,
                   queryStr));

        QueryResourcePropertiesResponse resp =
                statusPort.queryResourceProperties(query);

        StatusRPSet rpSet = (StatusRPSet) resp.get_any()[0].
                        getValueAsType(STATUS_RP_SET, StatusRPSet.class);

        String impl = null;
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.