Prism.extensions.port.compression
Class AbstractCompression

java.lang.Object
  extended by Prism.extensions.port.compression.AbstractCompression
Direct Known Subclasses:
Compression

public abstract class AbstractCompression
extends java.lang.Object

Any compression implementation in Prism needs to extend this abstract class.

Version:
2.0
Author:
USC Soft. Arch. Group. Contact: Sam Malek malek@usc.edu

Constructor Summary
AbstractCompression()
           
 
Method Summary
abstract  java.lang.Object processEvent(java.lang.Object eventObj, java.lang.String direction)
          This method is called to compress or decomperss an event depending on the direction of the event.
abstract  void start()
          This method is called from the ExtensbilePort.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCompression

public AbstractCompression()
Method Detail

start

public abstract void start()
This method is called from the ExtensbilePort. Any initialization of compression module occurs here.


processEvent

public abstract java.lang.Object processEvent(java.lang.Object eventObj,
                                              java.lang.String direction)
This method is called to compress or decomperss an event depending on the direction of the event.

Parameters:
eventObj - event to be processed
direction - "IN" for decompression, "OUT" for compression