Search in sources :

Example 1 with NetworkingImbalancePlugin

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

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

BuildInfoPlugin (com.hazelcast.internal.diagnostics.BuildInfoPlugin)2 ConfigPropertiesPlugin (com.hazelcast.internal.diagnostics.ConfigPropertiesPlugin)2 EventQueuePlugin (com.hazelcast.internal.diagnostics.EventQueuePlugin)2 MetricsPlugin (com.hazelcast.internal.diagnostics.MetricsPlugin)2 NetworkingImbalancePlugin (com.hazelcast.internal.diagnostics.NetworkingImbalancePlugin)2 SystemLogPlugin (com.hazelcast.internal.diagnostics.SystemLogPlugin)2 SystemPropertiesPlugin (com.hazelcast.internal.diagnostics.SystemPropertiesPlugin)2 ClientConnectionStrategyConfig (com.hazelcast.client.config.ClientConnectionStrategyConfig)1 ClientContext (com.hazelcast.client.impl.spi.ClientContext)1 InvocationProfilerPlugin (com.hazelcast.internal.diagnostics.InvocationProfilerPlugin)1 InvocationSamplePlugin (com.hazelcast.internal.diagnostics.InvocationSamplePlugin)1 MemberHazelcastInstanceInfoPlugin (com.hazelcast.internal.diagnostics.MemberHazelcastInstanceInfoPlugin)1 MemberHeartbeatPlugin (com.hazelcast.internal.diagnostics.MemberHeartbeatPlugin)1 OperationHeartbeatPlugin (com.hazelcast.internal.diagnostics.OperationHeartbeatPlugin)1 OperationProfilerPlugin (com.hazelcast.internal.diagnostics.OperationProfilerPlugin)1 OperationThreadSamplerPlugin (com.hazelcast.internal.diagnostics.OperationThreadSamplerPlugin)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