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();
}
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);
}
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));
}
Aggregations