public class SystemParametersCollector extends com.google.common.util.concurrent.AbstractService implements Runnable
| Modifier and Type | Field and Description |
|---|---|
static int |
JVM_COLLECTION_INTERVAL |
| Constructor and Description |
|---|
SystemParametersCollector(String instance) |
SystemParametersCollector(String instance,
Map<String,Object> args) |
| Modifier and Type | Method and Description |
|---|---|
void |
doStart() |
void |
doStop() |
static SystemParametersCollector |
getInstance(String instance) |
String |
getNamespace()
this is the namespace all system parameters should be in
|
static ParameterValue |
getNewPv(String fqn,
long time) |
static ParameterValue |
getPV(String fqn,
long time,
boolean v) |
static ParameterValue |
getPV(String fqn,
long time,
double v) |
static ParameterValue |
getPV(String fqn,
long time,
long v) |
static ParameterValue |
getPV(String fqn,
long time,
String v) |
static ParameterValue |
getUnsignedIntPV(String fqn,
long time,
int v) |
void |
registerProducer(SystemParametersProducer p)
Register a parameter producer to be called each time the parameters are collected
|
void |
registerProvider(SystemParametersProducer p)
Deprecated.
|
void |
registerProvider(SystemParametersProducer p,
Collection<Parameter> params)
Deprecated.
use
registerProvider(SystemParametersProducer p) instead.
There is no need to specify which paramameters will be provided
and in addition they don't even need to be part of the Xtcedb (i.e. the provider can make them up on the fly) |
void |
run()
Run from the timer, collect all parameters and send them on the stream
|
void |
unregisterProducer(SystemParametersProducer p)
Unregister producer - from now on it will not be invoked.
|
public static final int JVM_COLLECTION_INTERVAL
public SystemParametersCollector(String instance) throws ConfigurationException
ConfigurationExceptionpublic SystemParametersCollector(String instance, Map<String,Object> args) throws ConfigurationException
ConfigurationExceptionpublic static SystemParametersCollector getInstance(String instance)
public void doStart()
doStart in class com.google.common.util.concurrent.AbstractServicepublic void doStop()
doStop in class com.google.common.util.concurrent.AbstractServicepublic void run()
@Deprecated public void registerProvider(SystemParametersProducer p, Collection<Parameter> params)
registerProvider(SystemParametersProducer p) instead.
There is no need to specify which paramameters will be provided
and in addition they don't even need to be part of the Xtcedb (i.e. the provider can make them up on the fly)@Deprecated public void registerProvider(SystemParametersProducer p)
registerProducer(org.yamcs.parameter.SystemParametersProducer)public void registerProducer(SystemParametersProducer p)
public void unregisterProducer(SystemParametersProducer p)
public String getNamespace()
public static ParameterValue getNewPv(String fqn, long time)
public static ParameterValue getPV(String fqn, long time, String v)
public static ParameterValue getPV(String fqn, long time, double v)
public static ParameterValue getPV(String fqn, long time, boolean v)
public static ParameterValue getPV(String fqn, long time, long v)
public static ParameterValue getUnsignedIntPV(String fqn, long time, int v)
Copyright © 2018 Space Applications Services. All rights reserved.