Examples of Event


Examples of org.menacheri.jetclient.event.Event

    }
   
    MessageBuffer<ChannelBuffer> messageBuffer = new NettyMessageBuffer();
    messageBuffer.writeInt(type);
    messageBuffer.writeInt(operation);
    Event event = Events.networkEvent(messageBuffer,DeliveryGuarantyOptions.FAST);
    session.onEvent(event);
  }
View Full Code Here

Examples of org.menacheri.jetserver.event.Event

    private final AtomicInteger counter = new AtomicInteger(0);
    @Override
    protected Object decode(ChannelHandlerContext ctx, Channel channel,
        Object msg) throws Exception
    {
      Event event = (Event)msg;
      if(Events.START == event.getType())
      {
        int started = counter.incrementAndGet();
        System.out.println("Started: " + started);
      }
      else if(Events.NETWORK_MESSAGE == event.getType())
      {
        System.out.println("Client Recieved Data No: " + INTEGER.addAndGet(5000));
      }
      else
      {
        System.out.println("Recieved eventType: " + event.getType());
      }
      return msg;
    }
View Full Code Here

Examples of org.metawb.lib.Event

                TimeZone.getTimeZone("America/Los_Angeles"));
        time.set(1951, Calendar.MAY, 2, 17, 31, 0);

        DMS longi = new DMS(-1, 118, 21, 8);
        DMS lati = new DMS(0, 33, 57, 42);
        event = new Event(time, longi, lati);
        // init the expected data
        Map<PlanetId,EphPlanet> pdata = buildPlanetMap(ernieStringData);
        expPlanetData = Collections.unmodifiableMap(pdata);
        Map<HouseId, EphHouse> hdata = buildHouseMap(ernieStringData);
        expHouseData = Collections.unmodifiableMap(hdata);
View Full Code Here

Examples of org.mitre.sim.event.Event

      if (resultList == null) {
        //System.out.println("dequeue Null");
        return null;
      }
      else {
        Event result = (Event) resultList.removeFirst();
        if (resultList.size() == 0) {
          db.remove(keyVal);
        }
        //System.out.println("dequeue " + result.toString());
        return result;
View Full Code Here

Examples of org.modeshape.jcr.api.observation.Event

        }

        @Override
        public void onEvent( EventIterator events ) {
            try {
                Event event = (Event)events.nextEvent();
                this.sequencedNodePath = event.getPath();
                latch.countDown();
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
View Full Code Here

Examples of org.mypj.db.thing.Event

  }

  @Test
  public void testAddPersonEvent() {
    Person p1=new Person("haku");
    Event e1=new Event(new Date(),"my home","study japanese");
    p1.getEvents().add(e1);
    impl.create(p1);
    Person p2= impl.getByName("haku");
    assertNotNull(p2);
    assertNotNull(p2.getEvents());
View Full Code Here

Examples of org.oasis.wsrp.v2.Event

      {
         throw new NotYetImplemented("Need to support multiple events at once...");
      }

      // since we currently don't support sending multiple events to process at once, assume there's only one
      Event event = events.get(0);

      eventInvocation.setName(event.getName());
      eventInvocation.setPayload(PayloadUtils.getPayloadAsSerializable(event));

      // Extensions
      processExtensionsFrom(eventParams.getClass(), eventParams.getExtensions());
View Full Code Here

Examples of org.odlabs.wiquery.core.events.Event

    final WebMarkupContainer info1 = new WebMarkupContainer("info1");
    info1.setOutputMarkupId(true);
    add(info1);

    chart1.add(new WiQueryEventBehavior(new Event(JQPlotEvent.DATA_CLICK)
    {
      private static final long serialVersionUID = 1L;

      @Override
      public JsScope callback()
View Full Code Here

Examples of org.ofbiz.webapp.control.ConfigXMLReader.Event

        Debug.logInfo("Running service named [" + serviceName + "] from event with mode [" + mode + "]", module);

        // call the service via the ServiceEventHandler which
        // adapts an event to a service.
        Event event = new Event("service", mode, serviceName, false);
        try {
            return seh.invoke(event, null, request, response);
        } catch (EventHandlerException e) {
            String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.service_eventhandler_exception", locale);
            request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg + ": " + e.getMessage());
View Full Code Here

Examples of org.olat.core.gui.control.Event

    try {
      float rating = Float.parseFloat(cmd);     
      // update GUI
      this.setCurrentRating(rating);
      // notify listeners
      Event event = new RatingEvent(rating);
      fireEvent(ureq, event);
    } catch (NumberFormatException e) {
      log.error("Error while parsing rating value::" + cmd);
    }   
  }
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.