public final class Threshd extends AbstractServiceDaemon
Threshd class.
PAUSE_PENDING, PAUSED, RESUME_PENDING
RUNNING, START_PENDING, STARTING, STATUS_NAMES, STOP_PENDING, STOPPED
Modifier and Type | Method and Description |
---|---|
static Threshd |
getInstance()
Returns singleton instance of the thresholding daemon.
|
Package |
getPackage(String name)
getPackage
|
LegacyScheduler |
getScheduler()
Returns reference to the scheduler
|
static ServiceThresholder |
getServiceThresholder(String svcName)
Returns the loaded ServiceThresholder for the specified service name.
|
boolean |
isSchedulingCompleted()
isSchedulingCompleted
|
protected void |
onInit()
onInit
|
protected void |
onPause()
onPause
|
protected void |
onResume()
onResume
|
protected void |
onStart()
onStart
|
protected void |
onStop()
onStop
|
void |
refreshServicePackages()
refreshServicePackages
|
void |
reinitializeThresholders()
reinitializeThresholders
|
void |
setSchedulingCompleted(boolean schedulingCompleted)
setSchedulingCompleted
|
void |
setThreshdConfig(ThreshdConfigManager threshdConfig)
setThreshdConfig
|
afterPropertiesSet, debugf, debugf, destroy, errorf, errorf, fatalf, fatalf, getName, getStatus, getStatusText, infof, infof, init, isPaused, isRunning, isStarting, log, pause, resume, setStatus, start, status, stop, waitForStatus, waitForStatus, warnf, warnf
protected void onInit()
onInit
onInit
in class AbstractServiceDaemon
public void reinitializeThresholders()
reinitializeThresholders
protected void onStart()
onStart
onStart
in class AbstractServiceDaemon
protected void onStop()
onStop
onStop
in class AbstractServiceDaemon
protected void onPause()
onPause
onPause
in class AbstractServiceDaemon
protected void onResume()
onResume
onResume
in class AbstractServiceDaemon
public static Threshd getInstance()
Threshd
object.public LegacyScheduler getScheduler()
LegacyScheduler
object.public static ServiceThresholder getServiceThresholder(String svcName)
svcName
- Service name to lookup.public boolean isSchedulingCompleted()
isSchedulingCompleted
public void setSchedulingCompleted(boolean schedulingCompleted)
setSchedulingCompleted
schedulingCompleted
- The schedulingCompleted to set.public void refreshServicePackages()
refreshServicePackages
public void setThreshdConfig(ThreshdConfigManager threshdConfig)
setThreshdConfig
threshdConfig
- a ThreshdConfigManager
object.Copyright © 2015. All Rights Reserved.