Search in sources :

Example 1 with TelemetryConfigurationImpl

use of org.terasology.engine.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.engine.config.facade.TelemetryConfiguration) Config(org.terasology.engine.config.Config) TelemetryConfig(org.terasology.engine.config.TelemetryConfig) TelemetryConfigurationImpl(org.terasology.engine.config.facade.TelemetryConfigurationImpl) TelemetryConfig(org.terasology.engine.config.TelemetryConfig)

Aggregations

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