infoservice.agreement.paxos.integration
Class InfoServiceCollectMessage

java.lang.Object
  extended by infoservice.agreement.paxos.integration.InfoServiceCollectMessage
All Implemented Interfaces:
IDistributable

public class InfoServiceCollectMessage
extends java.lang.Object
implements IDistributable


Field Summary
private  byte[] m_compressedData
           
private  CollectMessage m_message
           
 
Fields inherited from interface anon.infoservice.IDistributable
FIELD_HTTP_REQUEST_STRING, FIELD_HTTP_SERIALS_REQUEST_STRING
 
Constructor Summary
InfoServiceCollectMessage(CollectMessage a_msg)
          Creates a decorating InfoServiceCollectMessage for the given message
 
Method Summary
 java.lang.String getId()
          Returns a ID for this information.
 byte[] getPostData()
          Returns the data to post to the other infoservice.
 int getPostEncoding()
          Returns the content encoding of the post data.
 java.lang.String getPostFile()
          Returns the filename (InfoService command) to which the data of this entry is posted at the other infoservice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_message

private CollectMessage m_message

m_compressedData

private byte[] m_compressedData
Constructor Detail

InfoServiceCollectMessage

public InfoServiceCollectMessage(CollectMessage a_msg)
Creates a decorating InfoServiceCollectMessage for the given message

Parameters:
a_msg -
Method Detail

getId

public java.lang.String getId()
Description copied from interface: IDistributable
Returns a ID for this information. It is used as an identifier for logging status information.

Specified by:
getId in interface IDistributable
Returns:
The ID of this information.

getPostFile

public java.lang.String getPostFile()
Description copied from interface: IDistributable
Returns the filename (InfoService command) to which the data of this entry is posted at the other infoservice.

Specified by:
getPostFile in interface IDistributable
Returns:
The filename, where the data is posted when this entry is forwarded.

getPostEncoding

public int getPostEncoding()
Description copied from interface: IDistributable
Returns the content encoding of the post data.

Specified by:
getPostEncoding in interface IDistributable
Returns:
the content encoding of the post data

getPostData

public byte[] getPostData()
Description copied from interface: IDistributable
Returns the data to post to the other infoservice. In general this should be an XML structure with the data of this entry.

Specified by:
getPostData in interface IDistributable
Returns:
The data to post to the other infoservice when this entry is forwarded.