public class ThresholdRepository<S extends IStats> extends TieableRepository<Threshold,S>
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
removes all
Threshold MBeans from platform MBeanServer. |
protected Threshold |
create(TieableDefinition def)
Creates a new threshold.
|
Threshold |
createThreshold(ThresholdDefinition definition)
Creates a
Threshold related to given ThresholdDefinition and registers it as
MBean. |
ExtendedThresholdStatus |
getExtendedWorstStatus(List<String> includedNames) |
ExtendedThresholdStatus |
getExtendedWorstStatusWithout(List<String> excludedNames) |
static ThresholdRepository<? extends IStats> |
getInstance()
Returns the singleton instance of the registry.
|
List<Threshold> |
getThresholds()
Returns active thresholds.
|
ThresholdStatus |
getWorstStatus()
Returns the worst threshold status in the system.
|
ThresholdStatus |
getWorstStatus(List<String> names)
Returns the worst threshold status in the system for given threshold names.
|
ThresholdStatus |
getWorstStatus(String[] names)
Returns the worst threshold status in the system for given threshold names.
|
ThresholdStatus |
getWorstStatusWithout(List<String> names)
Returns the worst threshold status in the system for all thresholds except given threshold names.
|
protected boolean |
tie(Threshold threshold,
IStatsProducer<? extends IStats> producer) |
addToAutoTie, addUntied, attachToListener, createTieable, detachFromListener, getById, getByName, getIdsByProducerId, getRegistry, getTieables, notifyProducerRegistered, notifyProducerUnregistered, removeById, removeTieable, removeTieable, updatepublic static ThresholdRepository<? extends IStats> getInstance()
protected boolean tie(Threshold threshold, IStatsProducer<? extends IStats> producer)
tie in class TieableRepository<Threshold,S extends IStats>public void cleanup()
Threshold MBeans from platform MBeanServer.cleanup in class TieableRepository<Threshold,S extends IStats>public Threshold createThreshold(ThresholdDefinition definition)
Threshold related to given ThresholdDefinition and registers it as
MBean. If there is already such a Bean defined, this method will remove the old MBean and
registers the new Threshold instead.definition - the ThresholdDefinitionThresholdpublic ExtendedThresholdStatus getExtendedWorstStatus(List<String> includedNames)
public ExtendedThresholdStatus getExtendedWorstStatusWithout(List<String> excludedNames)
public ThresholdStatus getWorstStatus()
public ThresholdStatus getWorstStatus(String[] names)
public ThresholdStatus getWorstStatus(List<String> names)
public ThresholdStatus getWorstStatusWithout(List<String> names)
protected Threshold create(TieableDefinition def)
create in class TieableRepository<Threshold,S extends IStats>Copyright © 2010-2017 anotheria.net. All Rights Reserved.