public class AddMachineMetrics extends java.lang.Object implements EntityInitializer
feed with sensors returning details about the machine the entity is running on.
The machine must be SSHable and running Linux.
| Constructor and Description |
|---|
AddMachineMetrics() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addMachineMetricsEnrichers(Entity entity) |
void |
apply(EntityLocal entity)
Applies initialization logic to a just-built entity.
|
static SshFeed |
createMachineMetricsFeed(Entity entity) |
public void apply(EntityLocal entity)
EntityInitializerapply in interface EntityInitializerentity - guaranteed to be the actual implementation instance,
thus guaranteed to be castable to EntityInternal which is often desired,
or to the type at hand (it is not even a proxy)public static void addMachineMetricsEnrichers(Entity entity)