Examples of StateType


Examples of org.apache.beehive.sample.wsm.addressbook_enhanced.StateType

                DEFAULT_NAME,
                new Address(
                    10230,
                    "NE Points Drive",
                    "Kirkland",
                    new StateType("WA"),
                    98033,
                    new Phone(425, "555", "1234")
                )
            );
        }
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.StateType

        Element root = XmlUtils.createElement(doc, MuwsConstants.TRANSITION_QNAME);
       
        Date time = getTransitionTime();
        root.setAttribute(MuwsConstants.TIME, XsdUtils.getLocalTimeString(time));
       
        StateType previous = getPreviousState();
       
        if (previous != null)
        {
            Element previousXML = previous.toXML(doc);
            XmlUtils.setElement(root, MuwsConstants.PREVIOUS_QNAME, previousXML, true);
        }
       
        StateType entered = getEnteredState();
        Element enteredXML = entered.toXML(doc);
        XmlUtils.setElement(root, MuwsConstants.ENTERED_QNAME, enteredXML, true);
       
        return root;
    }
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.StateType

    public void setState(StateType state)
    {
        if (state == null)
            throw new NullPointerException(_MESSAGES.get("NullState"));
       
        StateType previous = _state;
        _state = state;
       
        _transition = new SimpleStateTransition(previous, _state);
    }
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.StateType

    public void setState(StateType state)
    {
        if (state == null)
            throw new NullPointerException(_MESSAGES.get("NullState"));
       
        StateType previous = _state;
        _state = state;
       
        _transition = new SimpleStateTransition(previous, _state);
    }
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.StateType

        Element root = XmlUtils.createElement(doc, MuwsConstants.TRANSITION_QNAME);
       
        Date time = getTransitionTime();
        root.setAttribute(MuwsConstants.TIME, XsdUtils.getLocalTimeString(time));
       
        StateType previous = getPreviousState();
       
        if (previous != null)
        {
            Element previousXML = previous.toXML(doc);
            XmlUtils.setElement(root, MuwsConstants.PREVIOUS_QNAME, previousXML, true);
        }
       
        StateType entered = getEnteredState();
        Element enteredXML = entered.toXML(doc);
        XmlUtils.setElement(root, MuwsConstants.ENTERED_QNAME, enteredXML, true);
       
        return root;
    }
View Full Code Here

Examples of org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.StateType

            RequestProcessingStateInformationType requestProcessingStateInformationType = notif.addNewStateInformation();
            StateTransitionType stateTransitionType = requestProcessingStateInformationType.addNewStateTransition();

            XmlObject currentState = XmlObject.Factory.parse("<tns:temp xmlns:tns=\"http://tempcentral.com/temps\">Cool</tns:temp>");

            StateType enteredState = stateTransitionType.addNewEnteredState();
            XmlBeanUtils.addChildElement(enteredState, currentState);

            StateType prevState = stateTransitionType.addNewPreviousState();
            XmlBeanUtils.addChildElement(prevState, currentState);

            stateTransitionType.setTransitionIdentifier("urn:NONE");
            stateTransitionType.setTime(currentTime);
            notif.setCurrentTime(currentTime);
View Full Code Here

Examples of org.robotninjas.barge.state.Raft.StateType

  }

  @Nonnull
  @Override
  public ListenableFuture<Object> commitOperation(@Nonnull RaftStateContext ctx, @Nonnull byte[] operation) throws RaftException {
    StateType stateType = ctx.type();
    Preconditions.checkNotNull(stateType);
    if (stateType.equals(FOLLOWER)) {
      throw new NotLeaderException(leader.get());
    } else if (stateType.equals(CANDIDATE)) {
      throw new NoLeaderException();
    }
    return Futures.immediateCancelledFuture();
  }
View Full Code Here

Examples of org.robotninjas.barge.state.RaftStateContext.StateType

  }

  @Nonnull
  @Override
  public ListenableFuture<Object> commitOperation(@Nonnull RaftStateContext ctx, @Nonnull byte[] operation) throws RaftException {
    StateType stateType = ctx.type();
    Preconditions.checkNotNull(stateType);
    if (stateType.equals(FOLLOWER)) {
      throw new NotLeaderException(leader.get());
    } else if (stateType.equals(CANDIDATE)) {
      throw new NoLeaderException();
    }
    return Futures.immediateCancelledFuture();
  }
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.