public class InfoSource extends java.lang.Object implements Application
Constructor and Description |
---|
InfoSource()
InfoSource constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCollectionPath()
Get the path where raw data is collected into.
|
eu.reservoir.monitoring.core.ProbeFilter |
getFilter()
Get the current Filter
|
int |
getInitialDelay()
Get the initial delay
|
java.lang.String |
getName()
Get the name of the AggPoint.
|
SocketAddress |
getOutputAddress()
Get the address for output traffic.
|
int |
getSleepTime()
Get the sleep time between reads.
|
ApplicationResponse |
init(java.lang.String[] args)
init
Args are:
-o output address
-p probe, [cpu, memory, traffic, rt] (NO default)
-f filter, [always, 2%, 5%, 10%] (default: always)
-l log path, (default: /tmp/)
-t sleep timeout (default: 30)
-d initial delay (default: 0)
-n name (default: "info-source")
|
void |
run()
Run
|
java.lang.String |
setCollectionPath(java.lang.String path)
Set the path where raw data is collected into.
|
eu.reservoir.monitoring.core.ProbeFilter |
setFilter(plugins_usr.aggregator.appl.InfoSource.FilterSpecifer spec)
Set the Filter
|
int |
setInitialDelay(int delay)
Set the initialDelay
|
java.lang.String |
setName(java.lang.String str)
Set the name of the AggPoint.
|
SocketAddress |
setOutputAddress(SocketAddress out)
Set the multicast address for output traffic.
|
void |
setProbe(plugins_usr.aggregator.appl.InfoSource.ProbeSpecifier spec)
Set the probe.
|
int |
setSleepTime(int slTime)
Set the sleep time between reads.
|
ApplicationResponse |
start()
Start
|
ApplicationResponse |
stop()
Stop
|
public ApplicationResponse init(java.lang.String[] args)
init
in interface Application
public ApplicationResponse start()
start
in interface Application
public ApplicationResponse stop()
stop
in interface Application
public void run()
run
in interface java.lang.Runnable
public SocketAddress getOutputAddress()
public SocketAddress setOutputAddress(SocketAddress out)
public java.lang.String getCollectionPath()
public java.lang.String setCollectionPath(java.lang.String path)
public int getSleepTime()
public int setSleepTime(int slTime)
public int getInitialDelay()
public int setInitialDelay(int delay)
public java.lang.String getName()
public java.lang.String setName(java.lang.String str)
public void setProbe(plugins_usr.aggregator.appl.InfoSource.ProbeSpecifier spec)
public eu.reservoir.monitoring.core.ProbeFilter getFilter()
public eu.reservoir.monitoring.core.ProbeFilter setFilter(plugins_usr.aggregator.appl.InfoSource.FilterSpecifer spec)
User Space Routing 0.10.3