protected class AbstractFederation.StartDeferredTasksTask extends Object implements Runnable
AbstractStatisticsCollector
, an
(optional) httpd service, and the (required) AbstractFederation.ReportTask
.
Note: The AbstractFederation.ReportTask
will relay any collected performance
counters to the ILoadBalancerService
, but it also lets the
ILoadBalancerService
know which services exist, which is
important for some of its functions.
Modifier and Type | Method and Description |
---|---|
void |
run() |
protected void |
startDeferredTasks()
Starts performance counter collection.
|
protected void |
startGangliaService(AbstractStatisticsCollector statisticsCollector)
Start embedded Ganglia peer.
|
protected void |
startHttpdService()
Start the local httpd service (if enabled).
|
protected void |
startPlatformStatisticsCollection()
Start collecting performance counters from the OS (if enabled).
|
protected void |
startQueueStatisticsCollection()
Setup sampling on the client's thread pool.
|
protected void |
startReportTask()
Start task to report service and counters to the load balancer.
|
protected void startDeferredTasks() throws IOException
IOException
- if IService.getServiceUUID()
throws this
exception (it never should since it is a local method
call).protected void startQueueStatisticsCollection()
protected void startPlatformStatisticsCollection()
protected void startGangliaService(AbstractStatisticsCollector statisticsCollector)
statisticsCollector
- Performance counters will be harvested from here.(Ganglia
Integration).
protected void startReportTask()
protected void startHttpdService() throws UnsupportedEncodingException
AbstractFederation.getHttpdPort()
, on a randomly assigned port if the port
is 0
, or NOT started if the port is -1
. If
the service is started, then the URL for the service is reported to
the load balancer and also written into the file system. When
started, the httpd service will be shutdown with the federation.UnsupportedEncodingException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.