Search in sources :

Example 1 with ConfigPropertiesPlugin

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

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

Example 3 with ConfigPropertiesPlugin

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

the class HazelcastClientInstanceImpl method start.

public void start() {
    try {
        lifecycleService.start();
        startMetrics();
        invocationService.start();
        ClientContext clientContext = new ClientContext(this);
        userCodeDeploymentService.start();
        Collection<EventListener> configuredListeners = instantiateConfiguredListenerObjects();
        clusterService.start(configuredListeners);
        clientClusterViewListenerService.start();
        connectionManager.start();
        startHeartbeat();
        startIcmpPing();
        connectionManager.connectToCluster();
        diagnostics.start();
        // static loggers at beginning of file
        diagnostics.register(new BuildInfoPlugin(loggingService.getLogger(BuildInfoPlugin.class)));
        diagnostics.register(new ConfigPropertiesPlugin(loggingService.getLogger(ConfigPropertiesPlugin.class), properties));
        diagnostics.register(new SystemPropertiesPlugin(loggingService.getLogger(SystemPropertiesPlugin.class)));
        // periodic loggers
        diagnostics.register(new MetricsPlugin(loggingService.getLogger(MetricsPlugin.class), metricsRegistry, properties));
        diagnostics.register(new SystemLogPlugin(properties, connectionManager, this, loggingService.getLogger(SystemLogPlugin.class)));
        diagnostics.register(new NetworkingImbalancePlugin(properties, connectionManager.getNetworking(), loggingService.getLogger(NetworkingImbalancePlugin.class)));
        diagnostics.register(new EventQueuePlugin(loggingService.getLogger(EventQueuePlugin.class), listenerService.getEventExecutor(), properties));
        metricsRegistry.provideMetrics(listenerService);
        ClientConnectionStrategyConfig connectionStrategyConfig = config.getConnectionStrategyConfig();
        boolean asyncStart = connectionStrategyConfig.isAsyncStart();
        if (!asyncStart) {
            waitForInitialMembershipEvents();
        }
        connectionManager.tryConnectToAllClusterMembers(!asyncStart);
        listenerService.start();
        proxyManager.init(config, clientContext);
        invocationService.addBackupListener();
        loadBalancer.init(getCluster(), config);
        clientStatisticsService.start();
        clientExtension.afterStart(this);
        cpSubsystem.init(clientContext);
        addClientConfigAddedListeners(configuredListeners);
        sendStateToCluster();
    } catch (Throwable e) {
        try {
            lifecycleService.terminate();
        } catch (Throwable t) {
            ignore(t);
        }
        throw rethrow(e);
    }
}
Also used : ConfigPropertiesPlugin(com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin) MetricsPlugin(com.hazelcast.internal.diagnostics.MetricsPlugin) ClientContext(com.hazelcast.client.impl.spi.ClientContext) BuildInfoPlugin(com.hazelcast.internal.diagnostics.BuildInfoPlugin) NetworkingImbalancePlugin(com.hazelcast.internal.diagnostics.NetworkingImbalancePlugin) EventQueuePlugin(com.hazelcast.internal.diagnostics.EventQueuePlugin) ClientConnectionStrategyConfig(com.hazelcast.client.config.ClientConnectionStrategyConfig) SystemPropertiesPlugin(com.hazelcast.internal.diagnostics.SystemPropertiesPlugin) EventListener(java.util.EventListener) SystemLogPlugin(com.hazelcast.internal.diagnostics.SystemLogPlugin)

Example 4 with ConfigPropertiesPlugin

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

the class DefaultNodeExtension method registerPlugins.

@Override
public void registerPlugins(Diagnostics diagnostics) {
    final NodeEngineImpl nodeEngine = node.nodeEngine;
    // static loggers at beginning of file
    diagnostics.register(new BuildInfoPlugin(nodeEngine));
    diagnostics.register(new SystemPropertiesPlugin(nodeEngine));
    diagnostics.register(new ConfigPropertiesPlugin(nodeEngine));
    // periodic loggers
    diagnostics.register(new OverloadedConnectionsPlugin(nodeEngine));
    diagnostics.register(new EventQueuePlugin(nodeEngine, ((EventServiceImpl) nodeEngine.getEventService()).getEventExecutor()));
    diagnostics.register(new PendingInvocationsPlugin(nodeEngine));
    diagnostics.register(new MetricsPlugin(nodeEngine));
    diagnostics.register(new SlowOperationPlugin(nodeEngine));
    diagnostics.register(new InvocationSamplePlugin(nodeEngine));
    diagnostics.register(new InvocationProfilerPlugin(nodeEngine));
    diagnostics.register(new OperationProfilerPlugin(nodeEngine));
    diagnostics.register(new MemberHazelcastInstanceInfoPlugin(nodeEngine));
    diagnostics.register(new SystemLogPlugin(nodeEngine));
    diagnostics.register(new StoreLatencyPlugin(nodeEngine));
    diagnostics.register(new MemberHeartbeatPlugin(nodeEngine));
    diagnostics.register(new NetworkingImbalancePlugin(nodeEngine));
    diagnostics.register(new OperationHeartbeatPlugin(nodeEngine));
    diagnostics.register(new OperationThreadSamplerPlugin(nodeEngine));
}
Also used : NodeEngineImpl(com.hazelcast.spi.impl.NodeEngineImpl) OverloadedConnectionsPlugin(com.hazelcast.internal.diagnostics.OverloadedConnectionsPlugin) ConfigPropertiesPlugin(com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin) PendingInvocationsPlugin(com.hazelcast.internal.diagnostics.PendingInvocationsPlugin) MetricsPlugin(com.hazelcast.internal.diagnostics.MetricsPlugin) MemberHazelcastInstanceInfoPlugin(com.hazelcast.internal.diagnostics.MemberHazelcastInstanceInfoPlugin) EventServiceImpl(com.hazelcast.spi.impl.eventservice.impl.EventServiceImpl) MemberHeartbeatPlugin(com.hazelcast.internal.diagnostics.MemberHeartbeatPlugin) BuildInfoPlugin(com.hazelcast.internal.diagnostics.BuildInfoPlugin) InvocationSamplePlugin(com.hazelcast.internal.diagnostics.InvocationSamplePlugin) NetworkingImbalancePlugin(com.hazelcast.internal.diagnostics.NetworkingImbalancePlugin) OperationHeartbeatPlugin(com.hazelcast.internal.diagnostics.OperationHeartbeatPlugin) OperationProfilerPlugin(com.hazelcast.internal.diagnostics.OperationProfilerPlugin) EventQueuePlugin(com.hazelcast.internal.diagnostics.EventQueuePlugin) InvocationProfilerPlugin(com.hazelcast.internal.diagnostics.InvocationProfilerPlugin) StoreLatencyPlugin(com.hazelcast.internal.diagnostics.StoreLatencyPlugin) SystemPropertiesPlugin(com.hazelcast.internal.diagnostics.SystemPropertiesPlugin) SystemLogPlugin(com.hazelcast.internal.diagnostics.SystemLogPlugin) OperationThreadSamplerPlugin(com.hazelcast.internal.diagnostics.OperationThreadSamplerPlugin) SlowOperationPlugin(com.hazelcast.internal.diagnostics.SlowOperationPlugin)

Aggregations

ConfigPropertiesPlugin (com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin)4 MetricsPlugin (com.hazelcast.internal.diagnostics.MetricsPlugin)4 SystemLogPlugin (com.hazelcast.internal.diagnostics.SystemLogPlugin)4 SystemPropertiesPlugin (com.hazelcast.internal.diagnostics.SystemPropertiesPlugin)4 BuildInfoPlugin (com.hazelcast.internal.diagnostics.BuildInfoPlugin)3 EventQueuePlugin (com.hazelcast.internal.diagnostics.EventQueuePlugin)2 MemberHazelcastInstanceInfoPlugin (com.hazelcast.internal.diagnostics.MemberHazelcastInstanceInfoPlugin)2 NetworkingImbalancePlugin (com.hazelcast.internal.diagnostics.NetworkingImbalancePlugin)2 OverloadedConnectionsPlugin (com.hazelcast.internal.diagnostics.OverloadedConnectionsPlugin)2 PendingInvocationsPlugin (com.hazelcast.internal.diagnostics.PendingInvocationsPlugin)2 SlowOperationPlugin (com.hazelcast.internal.diagnostics.SlowOperationPlugin)2 StoreLatencyPlugin (com.hazelcast.internal.diagnostics.StoreLatencyPlugin)2 ClientConnectionStrategyConfig (com.hazelcast.client.config.ClientConnectionStrategyConfig)1 ClientContext (com.hazelcast.client.impl.spi.ClientContext)1 InvocationPlugin (com.hazelcast.internal.diagnostics.InvocationPlugin)1 InvocationProfilerPlugin (com.hazelcast.internal.diagnostics.InvocationProfilerPlugin)1 InvocationSamplePlugin (com.hazelcast.internal.diagnostics.InvocationSamplePlugin)1 MemberHeartbeatPlugin (com.hazelcast.internal.diagnostics.MemberHeartbeatPlugin)1 OperationHeartbeatPlugin (com.hazelcast.internal.diagnostics.OperationHeartbeatPlugin)1 OperationProfilerPlugin (com.hazelcast.internal.diagnostics.OperationProfilerPlugin)1