org.apache.hadoop.tools.rumen.state
Interface State

All Known Implementing Classes:
FileName.FileNameState, NodeName.NodeNameState, WordList

public interface State

Represents a state. This state is managed by StatePool. Note that a State objects should be persistable. Currently, the State objects are persisted using the Jackson JSON library. Hence the implementors of the State interface should be careful while defining their public setter and getter APIs.


Method Summary
 String getName()
          Get the name of the state.
 boolean isUpdated()
          Returns true if the state is updated since creation (or reload).
 void setName(String name)
          Set the name of the state.
 

Method Detail

isUpdated

boolean isUpdated()
Returns true if the state is updated since creation (or reload).


getName

String getName()
Get the name of the state.


setName

void setName(String name)
Set the name of the state.



Copyright © 2013 Apache Software Foundation. All Rights Reserved.