|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.replica.ReplicaStage
A template java file, useful for maintaining personal coding conventions
for new EventHandlerIF classes.
FIXME!! Make algorithms thread-safe.
| Nested Class Summary | |
|---|---|
static class |
ReplicaStage.PendingCloseTimer
Dispatched to self when a close_all was received but we are still waiting on pending events. |
| Field Summary | |
|---|---|
protected static long |
ALARM_TIMEOUT
|
protected static long |
HB_TIMEOUT
The length of time (in ms) a Heartbeat is fresh enough
to prevent requests for new ones. |
static boolean |
ignore_local_replica
HACK - nullify latency benefits of caching heartbeats locally. |
protected String |
name
The name by which to refer to this stage. |
| Constructor Summary | |
|---|---|
ReplicaStage()
Constructs an empty ReplicaStage. |
|
| Method Summary | |
|---|---|
void |
destroy()
|
void |
handleEvent(QueueElementIF elem)
|
void |
handleEvents(QueueElementIF[] elemarr)
|
void |
init(ConfigDataIF config)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final long ALARM_TIMEOUT
protected static final long HB_TIMEOUT
Heartbeat is fresh enough
to prevent requests for new ones.
protected String name
StageIF.
public static boolean ignore_local_replica
| Constructor Detail |
public ReplicaStage()
ReplicaStage.
| Method Detail |
public void handleEvent(QueueElementIF elem)
throws UnknownEventException
handleEvent in interface EventHandlerIFUnknownEventException
public void handleEvents(QueueElementIF[] elemarr)
throws UnknownEventException
handleEvents in interface EventHandlerIFUnknownEventException
public void init(ConfigDataIF config)
throws InvalidConfigFileException
init in interface EventHandlerIFInvalidConfigFileExceptionpublic void destroy()
destroy in interface EventHandlerIF
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||