Tabnine Logo
FragmentWriter
Code IndexAdd Tabnine to your IDE (free)

How to use
FragmentWriter
in
com.ociweb.pronghorn.pipe

Best Java code snippets using com.ociweb.pronghorn.pipe.FragmentWriter (Showing top 19 results out of 315)

origin: oci-pronghorn/Pronghorn

private int stopReSendingMessage(Pipe<MQTTClientToServerSchema> clientToSerer, int packetId) {
  ////////////////////////
  ///stop re-sending the message
  ///////////////////////
  Pipe.presumeRoomForWrite(clientToServerAck);
  FragmentWriter.writeI(clientToServerAck, MQTTClientToServerSchemaAck.MSG_STOPREPUBLISH_99, packetId);
  
  return packetId;
}
origin: oci-pronghorn/Pronghorn

private void requestReplayOfPersistedCollection() {
  Pipe.presumeRoomForWrite(persistBlobStoreConsumer);
  FragmentWriter.write(persistBlobStoreConsumer, PersistedBlobStoreConsumerSchema.MSG_REQUESTREPLAY_6);
}
origin: oci-pronghorn/Pronghorn

public void ackPublishedPos(int packetId) {	
  
  
  if (isPersistantSession) {
    //logger.trace("BBB must clear top level ack from drive {} ",packetId);
    
    Pipe.presumeRoomForWrite(persistBlobStoreConsumer);
    FragmentWriter.writeL(persistBlobStoreConsumer, PersistedBlobStoreConsumerSchema.MSG_RELEASE_7,
        packetId
        );
    
    //will clear locally upon ack
  } else {
    
    //logger.trace("BBB must clear top level ack form memory {} ",packetId);
    
    ackPublishedPosLocal(packetId);
  }
}
origin: oci-pronghorn/Pronghorn

  FragmentWriter.write(clientToServerAck, MQTTClientToServerSchemaAck.MSG_BROKERACKNOWLEDGEDCONNECTION_98);
FragmentWriter.writeII(clientResponse,
      MQTTClientResponseSchema.MSG_CONNECTIONATTEMPT_5, 
      retCode,
      FragmentWriter.writeLI(clientToServerAck, MQTTClientToServerSchemaAck.MSG_PUBACK_4, mostRecentTime, serverSidePacketId);
      FragmentWriter.writeLI(serverToClient, MQTTClientToServerSchema.MSG_PUBREC_5, mostRecentTime, serverSidePacketId);
FragmentWriter.writeLI(clientToServerAck, 
    MQTTClientToServerSchemaAck.MSG_PUBREL_6,
    mostRecentTime, 
FragmentWriter.writeLI(clientToServerAck, 
     MQTTClientToServerSchemaAck.MSG_PUBCOMP_7, 
     mostRecentTime, 
FragmentWriter.writeI(clientResponse, 
        MQTTClientResponseSchema.MSG_SUBSCRIPTIONRESULT_4,
        maxQoS); 
origin: oci-pronghorn/Pronghorn

 FragmentWriter.writeL(out, MQTTServerToClientSchema.MSG_PINGRESP_13, 
              arrivalTime);
FragmentWriter.writeLI(out, MQTTServerToClientSchema.MSG_UNSUBACK_11,
    arrivalTime,
    inputStream.readShort()
FragmentWriter.writeLII(out, MQTTServerToClientSchema.MSG_SUBACK_9,
    arrivalTime,
    inputStream.readShort(),
FragmentWriter.writeLI(out, MQTTServerToClientSchema.MSG_PUBCOMP_7,
    arrivalTime,
    inputStream.readShort()
FragmentWriter.writeLI(out, MQTTServerToClientSchema.MSG_PUBACK_4, 
           arrivalTime, 
           packetId40);
FragmentWriter.writeLI(out, MQTTServerToClientSchema.MSG_PUBREC_5,
            arrivalTime, 
            inputStream.readShort()
FragmentWriter.writeLI(out, MQTTServerToClientSchema.MSG_PUBREL_6,
    arrivalTime, 
    inputStream.readShort()
FragmentWriter.writeLII(out, MQTTServerToClientSchema.MSG_CONNACK_2, 
              arrivalTime,
origin: oci-pronghorn/Pronghorn

  FragmentWriter.write(idRangeControl, MQTTIdRangeControllerSchema.MSG_CLEARALL_2);
  FragmentWriter.writeI(idRangeControl, MQTTIdRangeControllerSchema.MSG_IDRANGE_1, 
               IdGenStage.buildRange(fieldBlockId, fieldBlockId+1));
case PersistedBlobLoadConsumerSchema.MSG_FINISHREPLAY_9:				
  Pipe.presumeRoomForWrite(idRangeControl);
  FragmentWriter.write(idRangeControl, MQTTIdRangeControllerSchema.MSG_READY_3);
  isInReloadPersisted = false;
break;      		        
origin: oci-pronghorn/Pronghorn

private void storePublishedPosPersisted(int blobPosition, int blobConsumed, byte[] blob, final int packetId) {
  Pipe.presumeRoomForWrite(persistBlobStoreProducer);
  FragmentWriter.writeLV(persistBlobStoreProducer, PersistedBlobStoreProducerSchema.MSG_BLOCK_1,
      packetId, //persist store supports long but we only have a packetId.
      blob, blobPosition, blobConsumed
      );
}

origin: oci-pronghorn/Pronghorn

private void releaseSocketData(long connectionId, long netPosition) {
  Pipe.presumeRoomForWrite(ackReleaseForResponseParser);
  FragmentWriter.writeLL(ackReleaseForResponseParser, 
       ReleaseSchema.MSG_RELEASE_100, 
       connectionId,
       netPosition);
}
origin: oci-pronghorn/GreenLightning

&& Pipe.hasRoomForWrite(releasePipe)) { 
FragmentWriter.writeI(releasePipe, TrafficReleaseSchema.MSG_RELEASE_20, goPendingOnPipeCount);
origin: oci-pronghorn/Pronghorn

private void clearPersistedCollection() {
  Pipe.presumeRoomForWrite(persistBlobStoreConsumer);
  FragmentWriter.write(persistBlobStoreConsumer, PersistedBlobStoreConsumerSchema.MSG_CLEAR_12);
}
origin: oci-pronghorn/Pronghorn

  if (0==i || 1==i) {
    Pipe.presumeRoomForWrite(loadProducerResponses);                               
  FragmentWriter.writeL(loadProducerResponses, PersistedBlobLoadProducerSchema.MSG_ACKWRITE_11, ackId);	
} else {
  Pipe.presumeRoomForWrite(loadReleaseResponses);
  FragmentWriter.writeL(loadReleaseResponses, PersistedBlobLoadReleaseSchema.MSG_ACKRELEASE_10, ackId);
origin: oci-pronghorn/Pronghorn

private void clearAllStoredData() {
  int i = fileControl.length;
  clearInProgress = (byte)i;
  clearIdMap();
  isDirty = false;
  fileSizeWritten = 0;
  while (--i>=0) {
    //clear every file
    Pipe<SequentialCtlSchema> output = fileControl[i];
    Pipe.presumeRoomForWrite(output);
    FragmentWriter.write(output, SequentialCtlSchema.MSG_CLEAR_2);
  }
}
origin: oci-pronghorn/Pronghorn

private void storeReleaseOfId(long fieldBlockId) {
   //keep in sync				     
   recordReleaseId(fieldBlockId);
      //write this id in case of power drop
   Pipe<RawDataSchema> out = fileOutput[fileOutput.length-1];
   int chunkSize = Pipe.addMsgIdx(out, RawDataSchema.MSG_CHUNKEDSTREAM_1);
   //logger.info("send out release data to be decrypted");
   DataOutputBlobWriter<RawDataSchema> chunkStr = Pipe.outputStream(out);
   DataOutputBlobWriter.openField(chunkStr);
   chunkStr.writePackedLong(fieldBlockId);
   DataOutputBlobWriter.closeLowLevelField(chunkStr);
      Pipe.confirmLowLevelWrite(out, chunkSize);
   Pipe.publishWrites(out);
   Pipe<SequentialCtlSchema> output = fileControl[fileControl.length-1];
      Pipe.presumeRoomForWrite(output);
   FragmentWriter.writeL(output, SequentialCtlSchema.MSG_IDTOSAVE_4, fieldBlockId);

   requestsInFlight++;
        }
origin: oci-pronghorn/Pronghorn

@Override 
public void startup() {
  
  assert(fileControl.length == 3);
  int i = fileControl.length-1; //skip the ack index file
  this.waitCount = i;
  assert(waitCount==2) : "only 2 is supported";
  while (--i>=0) {
    Pipe<SequentialCtlSchema> output = fileControl[i];
    Pipe.presumeRoomForWrite(output);
    
    FragmentWriter.write(output, SequentialCtlSchema.MSG_METAREQUEST_3);
    
  }
  
  //will grow as needed
  mapSet = new LongHashSet(15);
  
}

origin: oci-pronghorn/Pronghorn

FragmentWriter.writeL(control, SequentialCtlSchema.MSG_IDTOSAVE_4, blockId);
origin: oci-pronghorn/Pronghorn

FragmentWriter.write(output2, SequentialCtlSchema.MSG_CLEAR_2);
  FragmentWriter.write(output1, SequentialCtlSchema.MSG_REPLAY_1);
FragmentWriter.write(output, SequentialCtlSchema.MSG_REPLAY_1);
origin: oci-pronghorn/Pronghorn

  FragmentWriter.write(output1, SequentialCtlSchema.MSG_REPLAY_1);
FragmentWriter.write(output, SequentialCtlSchema.MSG_REPLAY_1);
FragmentWriter.write(loadConsumerResponses, PersistedBlobLoadConsumerSchema.MSG_BEGINREPLAY_8);
origin: oci-pronghorn/Pronghorn

    FragmentWriter.write(loadConsumerResponses, PersistedBlobLoadConsumerSchema.MSG_FINISHREPLAY_9);
case -1:		        	
  Pipe.presumeRoomForWrite(loadConsumerResponses);
  FragmentWriter.write(loadConsumerResponses, PersistedBlobLoadConsumerSchema.MSG_FINISHREPLAY_9);
origin: oci-pronghorn/Pronghorn

FragmentWriter.write(idRangeControl, MQTTIdRangeControllerSchema.MSG_READY_3);
com.ociweb.pronghorn.pipeFragmentWriter

Most used methods

  • writeI
  • write
  • writeII
  • writeL
  • writeLI
  • writeLII
  • writeLL
  • writeLV

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JFileChooser (javax.swing)
  • JOptionPane (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now