public class ProbeManagerImpl extends Object implements ProbeManager
Modifier and Type | Field and Description |
---|---|
protected Set<ProbeInfo> |
failed |
protected Map<String,ProbeInfo> |
infosByShortcuts |
protected Map<Class<? extends Probe>,ProbeInfo> |
infosByTypes |
protected static org.apache.commons.logging.Log |
log |
protected Map<String,Probe> |
probesByShortcuts |
protected Set<ProbeInfo> |
succeed |
Constructor and Description |
---|
ProbeManagerImpl() |
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
doExtractProbesName(Collection<ProbeInfo> runners) |
protected static Long |
doGetDuration(Date fromDate,
Date toDate) |
protected void |
doRun() |
protected void |
doRunProbe(ProbeInfo probe) |
Collection<ProbeInfo> |
getAllProbeInfos() |
Collection<ProbeInfo> |
getInFailureProbeInfos() |
Collection<ProbeInfo> |
getInSuccessProbeInfos() |
ProbeInfo |
getProbeInfo(Class<? extends Probe> probeClass) |
ProbeInfo |
getProbeInfo(String name) |
Collection<String> |
getProbeNames() |
int |
getProbesCount() |
Collection<String> |
getProbesInError() |
int |
getProbesInErrorCount() |
Collection<String> |
getProbesInSuccess() |
int |
getProbesInSuccessCount() |
void |
registerProbe(ProbeDescriptor descriptor) |
boolean |
runAllProbes() |
ProbeInfo |
runProbe(ProbeInfo probe) |
ProbeInfo |
runProbe(String name) |
void |
unregisterProbe(ProbeDescriptor descriptor) |
protected static final org.apache.commons.logging.Log log
protected final Map<Class<? extends Probe>,ProbeInfo> infosByTypes
protected final Map<String,ProbeInfo> infosByShortcuts
protected final Map<String,Probe> probesByShortcuts
public ProbeManagerImpl()
protected Set<String> doExtractProbesName(Collection<ProbeInfo> runners)
public Collection<ProbeInfo> getAllProbeInfos()
getAllProbeInfos
in interface ProbeManager
public Collection<ProbeInfo> getInSuccessProbeInfos()
getInSuccessProbeInfos
in interface ProbeManager
public Collection<ProbeInfo> getInFailureProbeInfos()
getInFailureProbeInfos
in interface ProbeManager
public Collection<String> getProbeNames()
getProbeNames
in interface ProbeRunnerMBean
public int getProbesCount()
getProbesCount
in interface ProbeRunnerMBean
public Collection<String> getProbesInError()
getProbesInError
in interface ProbeRunnerMBean
public int getProbesInErrorCount()
getProbesInErrorCount
in interface ProbeRunnerMBean
public Collection<String> getProbesInSuccess()
getProbesInSuccess
in interface ProbeRunnerMBean
public int getProbesInSuccessCount()
getProbesInSuccessCount
in interface ProbeRunnerMBean
public ProbeInfo getProbeInfo(Class<? extends Probe> probeClass)
getProbeInfo
in interface ProbeManager
public boolean runAllProbes()
runAllProbes
in interface ProbeRunnerMBean
public ProbeInfo runProbe(ProbeInfo probe)
runProbe
in interface ProbeManager
public ProbeInfo runProbe(String name)
runProbe
in interface ProbeManager
public ProbeInfo getProbeInfo(String name)
getProbeInfo
in interface ProbeManager
public void registerProbe(ProbeDescriptor descriptor)
public void unregisterProbe(ProbeDescriptor descriptor)
protected void doRun()
protected static Long doGetDuration(Date fromDate, Date toDate)
protected void doRunProbe(ProbeInfo probe)
Copyright © 2015 Nuxeo SA. All rights reserved.