public enum ProbesManager extends java.lang.Enum<ProbesManager>
Enum Constant and Description |
---|
INSTANCE
the singleton instance of this probes manager
|
Modifier and Type | Method and Description |
---|---|
boolean |
createProbe(java.lang.String className,
AbstractProbeId id)
Creates a resource
|
ISimpleProbe |
getProbe(AbstractProbeId id)
Gets the resource by its identifier
|
ISimpleProbe |
getProbeByName(java.lang.String name)
Gets the resource by its local name
|
boolean |
removeProbe(AbstractProbeId id)
Removes a resource from the list
|
void |
setTransducer(AbstractProbeId pId,
TransducerId tId)
Sets the transducer which the probe will communicate with.
|
static ProbesManager |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProbesManager[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProbesManager INSTANCE
public static ProbesManager[] values()
for (ProbesManager c : ProbesManager.values()) System.out.println(c);
public static ProbesManager valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean createProbe(java.lang.String className, AbstractProbeId id) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
className
- the concrete implementative class of the resourceid
- the identifier of the resourcejava.lang.ClassNotFoundException
- if the given Java full class name cannot be found within
known pathsjava.lang.NoSuchMethodException
- if the Java method name cannot be foundjava.lang.InstantiationException
- if the given Java class cannot be instantiatedjava.lang.IllegalAccessException
- if the caller has no rights to access class, methods, or
fieldsjava.lang.reflect.InvocationTargetException
- if the callee cannot be foundpublic ISimpleProbe getProbe(AbstractProbeId id)
id
- the resource's identifierpublic ISimpleProbe getProbeByName(java.lang.String name)
name
- resource's local namepublic boolean removeProbe(AbstractProbeId id)
id
- the identifier of the resource to removepublic void setTransducer(AbstractProbeId pId, TransducerId tId)
pId
- the probe's identifiertId
- the transducer's identifier