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

com.vmlens.trace.agent.bootstrap.event.AgentLogEvent Maven / Gradle / Ivy

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

import java.io.DataOutputStream;

public class AgentLogEvent implements StaticEvent  {
	
	
	private final String message;

	public AgentLogEvent(String message) {
		super();
		
		int maxLength = Math.min(  6000 ,  message.length() );
		this.message = message.substring(0, maxLength);
		
		//this.message = message;
	}

	@Override
	public void serialize(StreamRepository streamRepository) throws Exception {
	
		DataOutputStream stream = streamRepository.agentLog.getStream();
		
		stream.writeUTF(message);
	
		
		stream.flush();
		
	}
	
	
	

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy