Search in sources :

Example 1 with SystemLogPlugin

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

the class SystemLogPluginConnectionTest method setUp.

@Before
public void setUp() {
    Config config = new Config();
    config.setProperty(LOG_PARTITIONS.getName(), "true");
    hzFactory = new TestHazelcastFactory();
    HazelcastInstance hz = hzFactory.newHazelcastInstance(config);
    plugin = new SystemLogPlugin(getNodeEngineImpl(hz));
    plugin.onStart();
}
Also used : HazelcastInstance(com.hazelcast.core.HazelcastInstance) Config(com.hazelcast.config.Config) TestHazelcastFactory(com.hazelcast.client.test.TestHazelcastFactory) SystemLogPlugin(com.hazelcast.internal.diagnostics.SystemLogPlugin) Before(org.junit.Before)

Example 2 with SystemLogPlugin

use of com.hazelcast.internal.diagnostics.SystemLogPlugin 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 3 with SystemLogPlugin

use of com.hazelcast.internal.diagnostics.SystemLogPlugin 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

SystemLogPlugin (com.hazelcast.internal.diagnostics.SystemLogPlugin)3 ConfigPropertiesPlugin (com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin)2 MetricsPlugin (com.hazelcast.internal.diagnostics.MetricsPlugin)2 SystemPropertiesPlugin (com.hazelcast.internal.diagnostics.SystemPropertiesPlugin)2 TestHazelcastFactory (com.hazelcast.client.test.TestHazelcastFactory)1 Config (com.hazelcast.config.Config)1 HazelcastInstance (com.hazelcast.core.HazelcastInstance)1 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 Before (org.junit.Before)1