All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmlens.trace.agent.bootstrap.event.gen.LoopStartEventGen Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package com.vmlens.trace.agent.bootstrap.event.gen;

import java.nio.ByteBuffer;
import com.vmlens.trace.agent.bootstrap.event.*;
import java.io.DataOutputStream;

public class LoopStartEventGen  implements RuntimeEvent 
{


  
    public int getSlidingWindowId()
    {
      return slidingWindowId;
     } 
  

   private final int slidingWindowId;
  

     public final     int     loopId;
      public  LoopStartEventGen(
int slidingWindowId 
,   int     loopId
)
 {

   this.slidingWindowId = slidingWindowId;

   this.loopId   =  loopId;
   }
 

 

public void serialize(StreamRepository streamRepository) throws Exception
{
     ByteBuffer buffer =  streamRepository.scheduler.getByteBuffer(slidingWindowId, 5, EventFactory.MAX_ARRAY_SIZE * 1000);

 buffer.put( (byte)  40 );
   
 buffer.putInt( loopId ); ;
}



public void serialize2StreamWrapper(StreamWrapperWithSlidingWindow streamWrapper) throws Exception
{
     ByteBuffer buffer =  streamWrapper.getByteBuffer(slidingWindowId, 5, EventFactory.MAX_ARRAY_SIZE * 1000);

 buffer.put( (byte)  40 );
   
 buffer.putInt( loopId ); ;
}












}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy