use of com.hazelcast.internal.diagnostics.MetricsPlugin 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);
}
use of com.hazelcast.internal.diagnostics.MetricsPlugin 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));
}
use of com.hazelcast.internal.diagnostics.MetricsPlugin 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);
}
}
use of com.hazelcast.internal.diagnostics.MetricsPlugin 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));
}
Aggregations