Package org.arch.event

Examples of org.arch.event.Event


      content.write(resBuffer, chunkLength);
      try
      {
        while (content.readable())
        {
          Event ev = EventDispatcher.getSingletonInstance().parse(
                  content);
          ev = Event.extractEvent(ev);
          EventHeader header = Event.getHeader(ev);
          try
          {
            C4RemoteHandler session = C4RemoteHandler.getSession(ev
                    .getHash());
            if (null != session)
            {
              session.onEvent(header, ev);
            }
View Full Code Here


  {
    localHandler = local;
    sessionTable.put(local.getId(), this);
    logger.info(String.format("Session[%d]Request %s %s",
            localHandler.getId(), req.getMethod(), req.getUri()));
    Event ev = buildHttpRequestEvent(req);
    if (null == ev)
    {
      local.close();
      return;
    }
View Full Code Here

      bodyContent.advanceWriteIndex(len);
      if (bodyContent.readableBytes() >= bodyLength)
      {
        try
        {
          Event ev = EventHelper.parseEvent(bodyContent);
          ev = Event.extractEvent(ev);
          EventHeader header = new EventHeader(
                  Event.getTypeVersion(ev.getClass()), ev.getHash());
          ev.setAttachment(this);
          handler.onEvent(header, ev);
          removeHttpClientHandler();
        }
        catch (Exception e)
        {
View Full Code Here

TOP

Related Classes of org.arch.event.Event

Copyright © 2018 www.massapicom. 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.