io.sarl.sre.janus.services.probing.probes
Class AbstractProbe<T>
Type Parameters:
T - the type of the probed value.
All Superinterfaces:
Probe<T>
All Known Subclasses:
AbstractFieldProbe<T>
abstract class AbstractProbe<T>
extends java.lang.Object
implements Probe<T>
Abstract probe implementation. A probe is thread-safe.
Parameters:
<T> - the type of the probed value.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.10
Property Summary
Modifier and type Property and description
java.lang.String name
java.lang.Class<T> type
java.net.URI uri
Inherited: value
Constructor Summary
Constructor and description
new(IProbeReleaseListener,String,URI,Class<T>,Provider<T>)
Constructor.
Action Summary
Modifier and type Action and description
void addProbeListener(IProbeListener)
void addProbeReleaseListener(IProbeReleaseListener)
protected void fireRelease
Notify the listener that the probe has been released.
protected void fireValueChanged(boolean)
Notify the listener that the probe's value has changed.
java.lang.String getName
java.lang.Class<T> getType
java.net.URI getUri
boolean isActive
void release
void removeProbeListener(IProbeListener)
void removeProbeReleaseListener(IProbeReleaseListener)
Property Details
name
val name : java.lang.String

This property is an alias for the action: getName

type
val type : java.lang.Class<T>

This property is an alias for the action: getType

uri
val uri : java.net.URI

This property is an alias for the action: getUri

Constructor Details
new(IProbeReleaseListener,String,URI,Class<T>,Provider<T>)
protected new(IProbeReleaseListener,String,URI,Class<T>,Provider<T>)
Constructor.
Parameters:
manager - the creator of this probe, and its manager.
name - the name of the probe
uri - the UI of the field.
type - the expected type of the probed value.
factories - the provider of factories tool.
Action Details
addProbeListener(IProbeListener)
def addProbeListener(IProbeListener)
addProbeReleaseListener(IProbeReleaseListener)
def addProbeReleaseListener(IProbeReleaseListener)
fireRelease
protected def fireRelease
Notify the listener that the probe has been released.
fireValueChanged(boolean)
protected def fireValueChanged(boolean)
Notify the listener that the probe's value has changed.
Parameters:
isInit - indicates if the change is due to initialization.
getName
def getName : java.lang.String
getType
def getType : java.lang.Class<T>
getUri
def getUri : java.net.URI
isActive
def isActive : boolean
release
def release
removeProbeListener(IProbeListener)
def removeProbeListener(IProbeListener)
removeProbeReleaseListener(IProbeReleaseListener)
def removeProbeReleaseListener(IProbeReleaseListener)