Search in sources :

Example 1 with SystemPropertiesPlugin

use of com.hazelcast.internal.diagnostics.SystemPropertiesPlugin in project hazelcast by hazelcast.

the class HazelcastClientInstanceImpl method start.

public void start() {
    lifecycleService.setStarted();
    invocationService.start();
    connectionManager.start();
    diagnostics.start();
    diagnostics.register(new ConfigPropertiesPlugin(loggingService.getLogger(ConfigPropertiesPlugin.class), properties));
    diagnostics.register(new SystemPropertiesPlugin(loggingService.getLogger(SystemPropertiesPlugin.class)));
    diagnostics.register(new MetricsPlugin(loggingService.getLogger(MetricsPlugin.class), metricsRegistry, properties));
    diagnostics.register(new SystemLogPlugin(properties, connectionManager, this, loggingService.getLogger(SystemLogPlugin.class)));
    metricsRegistry.collectMetrics(listenerService);
    try {
        clusterService.start();
    } catch (Exception e) {
        lifecycleService.shutdown();
        throw ExceptionUtil.rethrow(e);
    }
    listenerService.start();
    loadBalancer.init(getCluster(), config);
    partitionService.start();
    clientExtension.afterStart(this);
}
Also used : ConfigPropertiesPlugin(com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin) MetricsPlugin(com.hazelcast.internal.diagnostics.MetricsPlugin) SystemPropertiesPlugin(com.hazelcast.internal.diagnostics.SystemPropertiesPlugin) SystemLogPlugin(com.hazelcast.internal.diagnostics.SystemLogPlugin) TransactionException(com.hazelcast.transaction.TransactionException)

Example 2 with SystemPropertiesPlugin

use of com.hazelcast.internal.diagnostics.SystemPropertiesPlugin in project hazelcast by hazelcast.

the class NodeEngineImpl method start.

public void start() {
    RuntimeMetricSet.register(metricsRegistry);
    GarbageCollectionMetricSet.register(metricsRegistry);
    OperatingSystemMetricSet.register(metricsRegistry);
    ThreadMetricSet.register(metricsRegistry);
    ClassLoadingMetricSet.register(metricsRegistry);
    FileMetricSet.register(metricsRegistry);
    metricsRegistry.collectMetrics(operationService, proxyService, eventService, operationParker);
    serviceManager.start();
    proxyService.init();
    operationService.start();
    quorumService.start();
    diagnostics.start();
    // static loggers at beginning of file
    diagnostics.register(new BuildInfoPlugin(this));
    diagnostics.register(new SystemPropertiesPlugin(this));
    diagnostics.register(new ConfigPropertiesPlugin(this));
    // periodic loggers
    diagnostics.register(new OverloadedConnectionsPlugin(this));
    diagnostics.register(new PendingInvocationsPlugin(this));
    diagnostics.register(new MetricsPlugin(this));
    diagnostics.register(new SlowOperationPlugin(this));
    diagnostics.register(new InvocationPlugin(this));
    diagnostics.register(new MemberHazelcastInstanceInfoPlugin(this));
    diagnostics.register(new SystemLogPlugin(this));
    diagnostics.register(new StoreLatencyPlugin(this));
}
Also used : OverloadedConnectionsPlugin(com.hazelcast.internal.diagnostics.OverloadedConnectionsPlugin) ConfigPropertiesPlugin(com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin) StoreLatencyPlugin(com.hazelcast.internal.diagnostics.StoreLatencyPlugin) PendingInvocationsPlugin(com.hazelcast.internal.diagnostics.PendingInvocationsPlugin) MetricsPlugin(com.hazelcast.internal.diagnostics.MetricsPlugin) MemberHazelcastInstanceInfoPlugin(com.hazelcast.internal.diagnostics.MemberHazelcastInstanceInfoPlugin) InvocationPlugin(com.hazelcast.internal.diagnostics.InvocationPlugin) SystemPropertiesPlugin(com.hazelcast.internal.diagnostics.SystemPropertiesPlugin) BuildInfoPlugin(com.hazelcast.internal.diagnostics.BuildInfoPlugin) SystemLogPlugin(com.hazelcast.internal.diagnostics.SystemLogPlugin) SlowOperationPlugin(com.hazelcast.internal.diagnostics.SlowOperationPlugin)

Aggregations

ConfigPropertiesPlugin (com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin)2 MetricsPlugin (com.hazelcast.internal.diagnostics.MetricsPlugin)2 SystemLogPlugin (com.hazelcast.internal.diagnostics.SystemLogPlugin)2 SystemPropertiesPlugin (com.hazelcast.internal.diagnostics.SystemPropertiesPlugin)2 BuildInfoPlugin (com.hazelcast.internal.diagnostics.BuildInfoPlugin)1 InvocationPlugin (com.hazelcast.internal.diagnostics.InvocationPlugin)1 MemberHazelcastInstanceInfoPlugin (com.hazelcast.internal.diagnostics.MemberHazelcastInstanceInfoPlugin)1 OverloadedConnectionsPlugin (com.hazelcast.internal.diagnostics.OverloadedConnectionsPlugin)1 PendingInvocationsPlugin (com.hazelcast.internal.diagnostics.PendingInvocationsPlugin)1 SlowOperationPlugin (com.hazelcast.internal.diagnostics.SlowOperationPlugin)1 StoreLatencyPlugin (com.hazelcast.internal.diagnostics.StoreLatencyPlugin)1 TransactionException (com.hazelcast.transaction.TransactionException)1