|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.QueuedReplicator
public abstract class QueuedReplicator
Provides a queued approach to replicate a Watch record.
| Constructor Summary | |
|---|---|
QueuedReplicator()
|
|
| Method Summary | |
|---|---|
void |
addCalculable(Calculable calculable)
Archive a record from the WatchDataSource history by placing it on a queue |
protected abstract void |
bulkReplicate(Collection<Calculable> calculables)
Performs the actual write to the underlying resource |
void |
close()
Closes the WatchDataReplicator |
protected void |
closeResource()
Closes the underlying Resource. |
protected abstract void |
replicate(Calculable calculable)
Performs the actual write to the underlying resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueuedReplicator()
| Method Detail |
|---|
protected abstract void replicate(Calculable calculable)
throws IOException
calculable - the Calculable record to replicate
IOException - if the write encounters errors
protected abstract void bulkReplicate(Collection<Calculable> calculables)
throws IOException
calculables - Collection of Calculable records to replicate
IOException - if the write encounters errorsprotected void closeResource()
public void close()
WatchDataReplicator
close in interface WatchDataReplicatorpublic void addCalculable(Calculable calculable)
addCalculable in interface WatchDataReplicatorcalculable - the Calculable record to archive
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||