- java.lang.Object
-
- aeonics.template.Item<Probe.Type>
-
- aeonics.entity.Probe
-
public class Probe extends Item<Probe.Type>
A probe represents any type of information that can be fetched at any point in time. Usually this is used for system metrics, counters or current state.There is no requrement in terms of data structure or allowed values.
Unless overriden, a probe is always internal (
Entity.internal()).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProbe.Type
-
Constructor Summary
Constructors Constructor Description Probe()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<? extends Probe>category()Returns the target entity category.protected java.util.function.Supplier<? extends Probe.Type>defaultCreator()Returns the default target entity creator.protected java.lang.Class<? extends Probe.Type>defaultTarget()Returns the default target entity type.Template<? extends Probe.Type>template()Returns the template to build the target entity.
-
-
-
Method Detail
-
defaultTarget
protected java.lang.Class<? extends Probe.Type> defaultTarget()
Description copied from class:ItemReturns the default target entity type. This method should be implemented by subclasses to specify the target entity type.- Specified by:
defaultTargetin classItem<Probe.Type>- Returns:
- the default target entity type
-
defaultCreator
protected java.util.function.Supplier<? extends Probe.Type> defaultCreator()
Description copied from class:ItemReturns the default target entity creator. This method should be implemented by subclasses to specify the entity creator.- Specified by:
defaultCreatorin classItem<Probe.Type>- Returns:
- the default target entity creator
-
category
protected java.lang.Class<? extends Probe> category()
Description copied from class:ItemReturns the target entity category. This method should be implemented by subclasses to specify the entity category.- Specified by:
categoryin classItem<Probe.Type>- Returns:
- the target entity category
-
template
public Template<? extends Probe.Type> template()
Description copied from class:ItemReturns the template to build the target entity.This method should ultimately be used to provide the final entity template. Although, it may also provide a partial template that subclassed may complement.
- Overrides:
templatein classItem<Probe.Type>- Returns:
- the matching entity template
-
-