public class ThreadHarvester extends Object implements RequestReceiver
Constructor and Description |
---|
ThreadHarvester(ScheduledExecutorService executor,
Clock clock,
MXBeanConnectionPool connectionPool) |
ThreadHarvester(ScheduledExecutorService executor,
MXBeanConnectionPool pool) |
Modifier and Type | Method and Description |
---|---|
void |
addThreadHarvestingStatus(String pid)
Save current status to storage
|
Response |
receive(Request request) |
void |
setThreadDao(ThreadDao dao)
Set the new implementation of thread DAO to be used as stroage
|
boolean |
startHarvester(String vmId)
Attaches and starts a harvester to the given PID.
|
List<Integer> |
stopAndRemoveAllHarvesters()
Returns a list of PIDs which the harvester stopped harvesting
|
boolean |
stopHarvester(String vmId)
Stops and detaches a harvester from the given PID.
|
public ThreadHarvester(ScheduledExecutorService executor, MXBeanConnectionPool pool)
public ThreadHarvester(ScheduledExecutorService executor, Clock clock, MXBeanConnectionPool connectionPool)
public void setThreadDao(ThreadDao dao)
dao
- public Response receive(Request request)
receive
in interface RequestReceiver
public boolean startHarvester(String vmId)
Saves current harvesting status to storage.
public boolean stopHarvester(String vmId)
Saves current harvesting status to storage.
public void addThreadHarvestingStatus(String pid)
Copyright © 2014. All rights reserved.