public class SolarisProbe
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Method and Description |
---|---|
long[] |
getData()
Gets the latest measures from the resource usage polling process.
|
static SolarisProbe |
getSingleton()
Gets the SolarisProbe singleton, creating a new one when the
client counter is zero.
|
void |
run()
Resource usage polling activity.
|
void |
stop()
Decreases the number of clients for this SolarisProbe,
and stops the resource usage polling process when the
client counter becomes zero.
|
public static SolarisProbe getSingleton() throws java.lang.Exception
java.lang.Exception
- the singleton could not be created.clientCount
,
SolarisProbe()
public long[] getData()
public void stop() throws java.lang.InterruptedException
java.lang.InterruptedException
public void run()
run
in interface java.lang.Runnable
getSingleton()
,
stop()