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

com.vmlens.trace.agent.bootstrap.event.gen.RunStartEventGen 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 RunStartEventGen  implements RuntimeEvent 
{


  
    public int getSlidingWindowId()
    {
      return slidingWindowId;
     } 
  

   private final int slidingWindowId;
  

     public final     int     loopId;
      public final     int     runId;
      public  RunStartEventGen(
int slidingWindowId 
,   int     loopId
,   int     runId
)
 {

   this.slidingWindowId = slidingWindowId;

   this.loopId   =  loopId;
   this.runId   =  runId;
   }
 

 

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

 buffer.put( (byte)  42 );
   
 buffer.putInt( loopId ); ;
 buffer.putInt( runId ); ;
}



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

 buffer.put( (byte)  42 );
   
 buffer.putInt( loopId ); ;
 buffer.putInt( runId ); ;
}












}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy