Package com.linkedin.databus.core

Examples of com.linkedin.databus.core.BufferInfoResponse


    {
      @Override
      public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception
      {
        System.out.println("Server : Request received");
        BufferInfoResponse bfResponse = new BufferInfoResponse();

        bfResponse.setMaxScn(_scn);
        bfResponse.setMinScn(_scn - 5000);
        bfResponse.setTimestampFirstEvent(System.currentTimeMillis() - 1000);
        bfResponse.setTimestampLatestEvent(System.currentTimeMillis());

        if(_timeout > 0)
        {
          //Thread.currentThread().sleep(_timeout);
        }
View Full Code Here


    {
      LOG.error("BufferInfoRequest : Buffer not available for physical partition :" + pPart);
        throw new BufferNotFoundException("Buffer not available for partition :" + pPart);
    }
   
    BufferInfoResponse response = new BufferInfoResponse();
    response.setMinScn(evb.getMinScn());
    response.setMaxScn(evb.lastWrittenScn());
    response.setTimestampFirstEvent(evb.getTimestampOfFirstEvent());
    response.setTimestampLatestEvent(evb.getTimestampOfLatestDataEvent());
   
      writeJsonObjectToResponse(response, request);
  }
View Full Code Here

TOP

Related Classes of com.linkedin.databus.core.BufferInfoResponse

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.