Examples of Status


Examples of org.omg.CosTransactions.Status

        }
        current_transaction_locks.lock( mode );
        return true;
    };
    private void check_status( TransactionCoordinator tc ){
        Status status = tc.get_state();
        if( status.equals( Status.StatusActive ) ){
            return;
        } else if( status.equals( Status.StatusPrepared )      ||
                   status.equals( Status.StatusCommitted )     ||
                   status.equals( Status.StatusUnknown )       ||
                   status.equals( Status.StatusNoTransaction ) ||
                   status.equals( Status.StatusPreparing )     ||
                   status.equals( Status.StatusCommitting ) )  {
            throw new org.omg.CORBA.INVALID_TRANSACTION();
        } else if (status.equals( Status.StatusRollingBack )   ||
                   status.equals( Status.StatusMarkedRollback) ||
                   status.equals( Status.StatusRolledBack) )   {
            throw new org.omg.CORBA.TRANSACTION_ROLLEDBACK();
        }
    }
View Full Code Here

Examples of org.openblend.fejstbuk.domain.Status

        }
        posts.add(linked);
    }

    public Status addStatus(User owner, String status) {
        Status st = new Status();
        st.setStatus(status);
        st.setUser(owner);
        st.setTimestamp(new Date());
        em.persist(st);
        addLinked(owner, st);
        return st;
    }
View Full Code Here

Examples of org.openquark.cal.services.Status

            int nErrorsBefore = msgLogger.getNErrors();

            // The compiled module source has passed the initial quick check of validity. 
            // Now we want to open it and read its import list.  This will allow us to do
            // a deeper validity check against the modules it depends on.
            Status status = new Status("Compiled definition input stream status.");
            try {
                // Get the set of imported modules. 
                // This is needed to check the validity of the current compiled module source.
                Set<ModuleName> importedModules = compiledDefinitionInfo.getImportedModuleNames();
View Full Code Here

Examples of org.opensaml.saml1.core.Status

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
            throws UnmarshallingException {

        Status status = (Status) parentSAMLObject;

        if (childSAMLObject instanceof StatusCode) {
            status.setStatusCode((StatusCode) childSAMLObject);
        } else if (childSAMLObject instanceof StatusMessage) {
            status.setStatusMessage((StatusMessage) childSAMLObject);
        } else if (childSAMLObject instanceof StatusDetail) {

            status.setStatusDetail((StatusDetail) childSAMLObject);

        } else {
            super.processChildElement(parentSAMLObject, childSAMLObject);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.core.Status

        DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
        docBuilderFactory.setNamespaceAware(true);
        DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
        Document doc = docBuilder.newDocument();
       
        Status status =
            SAML2PResponseComponentBuilder.createStatus(
                SAMLProtocolResponseValidator.SAML2_STATUSCODE_SUCCESS, null
            );
        Response response =
            SAML2PResponseComponentBuilder.createSAMLResponse(
View Full Code Here

Examples of org.opensaml.ws.wstrust.Status

public class StatusUnmarshaller extends AbstractWSTrustObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Status status= (Status) parentXMLObject;
       
        if (childXMLObject instanceof Code) {
            status.setCode((Code) childXMLObject);
        } else if (childXMLObject instanceof Reason) {
            status.setReason((Reason) childXMLObject);
        } else {
            super.processChildElement(parentXMLObject, childXMLObject);
        }
    }
View Full Code Here

Examples of org.openxri.xml.Status

      // System.out.println(xrds);

      assertTrue("Expected 5 XRDs", xrds.getNumChildren() == 5);
      assertTrue("subseg[3] should be *0003-badcid", xrds.getDescriptorAt(3).getQuery().equals("*0003-badcid"));
     
      Status s3 = xrds.getDescriptorAt(3).getStatus();
      assertTrue("subseg[3].status.cid should be 'failed'", s3.getCID().equals("failed"));
     
      Status s4 = xrds.getDescriptorAt(4).getStatus();
      assertTrue("subseg[4].status.cid should be 'failed'", s4.getCID().equals("failed"));

     
     
      qxri = "@xrid*test*live.unit.tests*0001-simple";
      xri = XRI.fromIRINormalForm(qxri);
View Full Code Here

Examples of org.purl.sword.client.Status

    public ServiceDocument getServiceDocument() throws HttpException, SWORDClientException
    {
        log.info("Getting Sword Service Document from " + serviceDocUrl);
        ServiceDocument sd = client.getServiceDocument(serviceDocUrl, onBehalfOf);

        Status status = client.getStatus();

        if (status.getCode() == 200)
        {
            log.info("Sword Service Document successfully retrieved from " + serviceDocUrl);
            return sd;
        }
        else
View Full Code Here

Examples of org.red5.server.net.rtmp.status.Status

  /**
   * Sends publish start notifications
   */
  private void sendPublishStartNotify() {
    Status publishStatus = new Status(StatusCodes.NS_PUBLISH_START);
    publishStatus.setClientid(getStreamId());
    publishStatus.setDetails(getPublishedName());

    StatusMessage startMsg = new StatusMessage();
    startMsg.setBody(publishStatus);
    pushMessage(startMsg);
  }
View Full Code Here

Examples of org.restlet.client.data.Status

                // Send the request to the client
                httpCall.sendRequest(request, response, new Uniform() {
                    public void handle(Request request, Response response) {
                        try {
                            updateResponse(response,
                                    new Status(httpCall.getStatusCode(), null,
                                            httpCall.getReasonPhrase(), null),
                                    httpCall);

                            if (userCallback != null) {
                                userCallback.handle(request, response);
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.