public class BlobStoreAwareMonitor extends Object implements ThresholdStateMonitor
| Constructor and Description |
|---|
BlobStoreAwareMonitor(BlobStore blobStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
reinitializeState(String stateKey)
Reinitialize a single state identified by the given key.
|
void |
reinitializeStates()
Reinitialize all states currently tracked by this monitor.
|
void |
trackState(String key,
ReinitializableState state)
Track the given state identified by the given key.
|
void |
withReadLock(Runnable r)
Run some arbitrary code while holding the lock to the state monitor.
|
public BlobStoreAwareMonitor(BlobStore blobStore)
public void trackState(String key, ReinitializableState state)
ThresholdStateMonitortrackState in interface ThresholdStateMonitorpublic void withReadLock(Runnable r)
ThresholdStateMonitorcode is running.withReadLock in interface ThresholdStateMonitorpublic void reinitializeState(String stateKey)
ThresholdStateMonitorreinitializeState in interface ThresholdStateMonitorpublic void reinitializeStates()
ThresholdStateMonitorreinitializeStates in interface ThresholdStateMonitorCopyright © 2022. All rights reserved.