Examples of EventId


Examples of com.streamreduce.core.event.EventId

        if (nodeMetadata.getStatus().equals(NodeMetadata.Status.TERMINATED)) {
            throw new CommandNotAllowedException("You cannot reboot a terminated node.");
        }

        EventId eventId;

        if (client.rebootEC2Instance(jcloudsNodeId)) {
            eventId = EventId.CLOUD_INVENTORY_ITEM_REBOOT;
        } else {
            // TODO: Handle this issue but it can be a false positive if the time it takes surpasses the time we wait
View Full Code Here

Examples of com.streamreduce.core.event.EventId

        if (nodeMetadata.getStatus().equals(NodeMetadata.Status.TERMINATED)) {
            return;
        }

        EventId eventId;

        if (client.destroyEC2Instance(jcloudsNodeId)) {
            eventId = EventId.CLOUD_INVENTORY_ITEM_TERMINATE;
        } else {
            // TODO: Handle this issue but it can be a false positive if the time it takes surpasses the time we wait
View Full Code Here

Examples of domain.EventId

      Transaction transaction = databaseSession.beginTransaction();     

      databaseSession.delete(oldEvent);
     
      Event newEvent = new Event();
      newEvent.setId( new EventId() );
      newEvent.getId().setType(eventTypeObject);
      newEvent.getId().setOwner(oldOwner);
      newEvent.getId().setFrom(fromDate);
      newEvent.getId().setTo(toDate);
      newEvent.setDescription(this.description);
View Full Code Here

Examples of domain.EventId

        EventType eventTypeObject = (EventType) databaseSession.createCriteria(EventType.class).add(Restrictions.eq("id", this.eventType)).uniqueResult();
        if(null == eventTypeObject) {
          return new Response(ResponseStatus.FAIL, "Not valid event type");
        }
       
        EventId eventIdObject = new EventId()
        eventIdObject.setFrom(fromDate);
        eventIdObject.setTo(toDate);
        eventIdObject.setOwner(userObject);
        eventIdObject.setType(eventTypeObject);
       
        PermissionType permisssionTypeObject = (PermissionType) databaseSession.createCriteria(PermissionType.class).add(Restrictions.eq("id", this.permissionType)).uniqueResult();
        if(null == permisssionTypeObject) {
          return new Response(ResponseStatus.FAIL, "Not valid permisssion type");
        }
View Full Code Here

Examples of domain.EventId

          return (new Response(ResponseStatus.FAIL, "Not valid event type"));
        }
       
        User eventOwner = (User) databaseSession.get(User.class, this.owner);
       
        EventId eventIdObject = new EventId();
        eventIdObject.setFrom(fromDate);
        eventIdObject.setTo(toDate);
        eventIdObject.setOwner(eventOwner);
        eventIdObject.setType(eventTypeObject);
       
        Event eventObject = (Event) databaseSession.get(Event.class, eventIdObject);
       
        if (eventObject == null) {
          throw new IllegalArgumentException("Could not locate event in question!");
View Full Code Here

Examples of org.cspoker.common.api.shared.event.EventId

    File output = new File(baseDir,"http.xml");
    Marshaller marschaller = AllJAXBContexts.context.createMarshaller();
    marschaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
    marschaller.setProperty(Marshaller.JAXB_FRAGMENT, true);

    EventId eid1 = new EventId(42);
    EventId eid2 = new EventId(43);
   
    TableId tid = new TableId(1337);
   
    Queue<DispatchableAction<?>> queue = new LinkedList<DispatchableAction<?>>();
    SitInAnywhereAction action1 = new SitInAnywhereAction(eid1,tid,6500);
View Full Code Here

Examples of org.cspoker.common.api.shared.event.EventId

      throws RemoteException, LoginException {
    XmlActionSerializer serializer = createXmlActionSerializer(username,password);
    XmlServerListenerTree listenerTree = new XmlServerListenerTree();
    CallSynchronizer callSynchronizer = new CallSynchronizer(listenerTree,serializer);
    try {
      callSynchronizer.perform(new LoginAction(new EventId(), username, password));
    } catch (IllegalActionException exception) {
      throw new LoginException(exception.getMessage());
    }
    return new XmlRemoteServerContext(callSynchronizer,listenerTree);
  }
View Full Code Here

Examples of org.cspoker.common.api.shared.event.EventId

public class IDGenerator {

  AtomicLong id = new AtomicLong(0);
 
  public EventId getNextID(){
    return new EventId(id.incrementAndGet());
  }
View Full Code Here

Examples of org.dcm4che3.audit.EventID

    private static EventID[] toEventIDArray(String... ss) {
        EventID[] a = new EventID[ss.length];
        for (int i = 0; i < ss.length; i++) {
            Code code = new Code(ss[i]);
            a[i] = new EventID();
            a[i].setCode(code.getCodeValue());
            a[i].setCodeSystemName(code.getCodingSchemeDesignator());
            a[i].setDisplayName(code.getCodeMeaning());
        }
        return a;
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.