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)
ThresholdStateMonitor
trackState
in interface ThresholdStateMonitor
public void withReadLock(Runnable r)
ThresholdStateMonitor
code
is running.withReadLock
in interface ThresholdStateMonitor
public void reinitializeState(String stateKey)
ThresholdStateMonitor
reinitializeState
in interface ThresholdStateMonitor
public void reinitializeStates()
ThresholdStateMonitor
reinitializeStates
in interface ThresholdStateMonitor
Copyright © 2021. All rights reserved.