Search in sources :

Example 1 with TelemetryConfigurationImpl

use of org.terasology.config.facade.TelemetryConfigurationImpl in project Terasology by MovingBlocks.

the class TelemetrySubSystem method postInitialise.

@Override
public void postInitialise(Context rootContext) {
    metrics.initialise(rootContext);
    // Add the telemetryConfig adapter to context. It could be used in modules.
    Config config = rootContext.get(Config.class);
    TelemetryConfig telemetryConfig = config.getTelemetryConfig();
    TelemetryConfiguration telemetryConfiguration = new TelemetryConfigurationImpl(telemetryConfig);
    rootContext.put(TelemetryConfiguration.class, telemetryConfiguration);
    addTelemetryLogstashAppender(rootContext);
    setTelemetryDestination(rootContext);
}
Also used : TelemetryConfiguration(org.terasology.config.facade.TelemetryConfiguration) Config(org.terasology.config.Config) TelemetryConfig(org.terasology.config.TelemetryConfig) TelemetryConfigurationImpl(org.terasology.config.facade.TelemetryConfigurationImpl) TelemetryConfig(org.terasology.config.TelemetryConfig)

Aggregations

Config (org.terasology.config.Config)1 TelemetryConfig (org.terasology.config.TelemetryConfig)1 TelemetryConfiguration (org.terasology.config.facade.TelemetryConfiguration)1 TelemetryConfigurationImpl (org.terasology.config.facade.TelemetryConfigurationImpl)1