org.apache.s4.core.ft
Class CheckpointId

java.lang.Object
  extended by org.apache.s4.core.ft.CheckpointId

public class CheckpointId
extends java.lang.Object

Identifier of PEs. It is used to identify checkpointed PEs in the storage backend.

The storage backend is responsible for converting this identifier to whatever internal representation is most suitable for it.

This class provides methods for getting a compact String representation of the identifier and for creating an identifier from a String representation.


Constructor Summary
CheckpointId()
           
CheckpointId(ProcessingElement pe)
           
CheckpointId(java.lang.String keyAsString)
           
CheckpointId(java.lang.String prototypeID, java.lang.String key)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getKey()
           
 java.lang.String getPrototypeId()
           
 java.lang.String getStringRepresentation()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckpointId

public CheckpointId()

CheckpointId

public CheckpointId(ProcessingElement pe)

CheckpointId

public CheckpointId(java.lang.String prototypeID,
                    java.lang.String key)
Parameters:
prototypeID - id of the PE as returned by getId() method
key - keyed attribute(s)

CheckpointId

public CheckpointId(java.lang.String keyAsString)
Method Detail

getKey

public java.lang.String getKey()

getPrototypeId

public java.lang.String getPrototypeId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getStringRepresentation

public java.lang.String getStringRepresentation()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object