cgl.narada.service.compression
Class CompressionService

java.lang.Object
  extended by cgl.narada.service.compression.CompressionService

public class CompressionService
extends Object

This class is responsible for compressing events. Based on the specified compression constraints.


Constructor Summary
protected CompressionService()
          This is to be used for testing purposes only
  CompressionService(QosServiceImpl qosServiceImpl)
           
 
Method Summary
 void compressEvent(NBEvent nbEvent, Properties compressionProperties, boolean isPayloadCompressionFinalStep)
           
 byte[] compressPayload(byte[] payload)
           
 void decompressPayload(byte[] compressedPayload, int originalLength)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressionService

protected CompressionService()
This is to be used for testing purposes only


CompressionService

public CompressionService(QosServiceImpl qosServiceImpl)
Method Detail

compressEvent

public void compressEvent(NBEvent nbEvent,
                          Properties compressionProperties,
                          boolean isPayloadCompressionFinalStep)
                   throws ServiceException
Throws:
ServiceException

compressPayload

public byte[] compressPayload(byte[] payload)

decompressPayload

public void decompressPayload(byte[] compressedPayload,
                              int originalLength)

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project