public ConfigPropertiesPlugin(NodeEngineImpl nodeEngine) { this(nodeEngine.getLogger(ConfigPropertiesPlugin.class), nodeEngine.getProperties()); }
public MemberHazelcastInstanceInfoPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(MemberHazelcastInstanceInfoPlugin.class)); this.periodMillis = nodeEngine.getProperties().getMillis(PERIOD_SECONDS); this.nodeEngine = nodeEngine; }
private long getPeriodMillis(NodeEngineImpl nodeEngine) { HazelcastProperties props = nodeEngine.getProperties(); if (!props.getBoolean(GroupProperty.SLOW_OPERATION_DETECTOR_ENABLED)) { return DISABLED; } return props.getMillis(PERIOD_SECONDS); }
private long getPeriodMillis(NodeEngineImpl nodeEngine) { HazelcastProperties props = nodeEngine.getProperties(); if (!props.getBoolean(GroupProperty.SLOW_OPERATION_DETECTOR_ENABLED)) { return DISABLED; } return props.getMillis(PERIOD_SECONDS); }
public MemberHazelcastInstanceInfoPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(MemberHazelcastInstanceInfoPlugin.class)); this.periodMillis = nodeEngine.getProperties().getMillis(PERIOD_SECONDS); this.nodeEngine = nodeEngine; }
public MemberHeartbeatPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(MemberHazelcastInstanceInfoPlugin.class)); this.nodeEngine = nodeEngine; HazelcastProperties properties = nodeEngine.getProperties(); this.periodMillis = properties.getMillis(PERIOD_SECONDS); this.maxDeviationPercentage = properties.getInteger(MAX_DEVIATION_PERCENTAGE); }
public MemberHeartbeatPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(MemberHazelcastInstanceInfoPlugin.class)); this.nodeEngine = nodeEngine; HazelcastProperties properties = nodeEngine.getProperties(); this.periodMillis = properties.getMillis(PERIOD_SECONDS); this.maxDeviationPercentage = properties.getInteger(MAX_DEVIATION_PERCENTAGE); }
public OverloadedConnectionsPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OverloadedConnectionsPlugin.class)); this.nodeEngine = nodeEngine; this.serializationService = nodeEngine.getSerializationService(); this.defaultFormat.setMinimumFractionDigits(3); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.threshold = props.getInteger(THRESHOLD); this.samples = props.getInteger(SAMPLES); }
public OverloadedConnectionsPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OverloadedConnectionsPlugin.class)); this.nodeEngine = nodeEngine; this.serializationService = nodeEngine.getSerializationService(); this.defaultFormat.setMinimumFractionDigits(3); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.threshold = props.getInteger(THRESHOLD); this.samples = props.getInteger(SAMPLES); }
public PendingInvocationsPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(PendingInvocationsPlugin.class)); InternalOperationService operationService = nodeEngine.getOperationService(); this.invocationRegistry = ((OperationServiceImpl) operationService).getInvocationRegistry(); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.threshold = props.getInteger(THRESHOLD); }
public SystemLogPlugin(NodeEngineImpl nodeEngine) { this(nodeEngine.getProperties(), nodeEngine.getNode().connectionManager, nodeEngine.getHazelcastInstance(), nodeEngine.getLogger(SystemLogPlugin.class), nodeEngine.getNode().getNodeExtension()); }
public PendingInvocationsPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(PendingInvocationsPlugin.class)); InternalOperationService operationService = nodeEngine.getOperationService(); this.invocationRegistry = ((OperationServiceImpl) operationService).getInvocationRegistry(); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.threshold = props.getInteger(THRESHOLD); }
public SystemLogPlugin(NodeEngineImpl nodeEngine) { this(nodeEngine.getProperties(), nodeEngine.getNode().connectionManager, nodeEngine.getHazelcastInstance(), nodeEngine.getLogger(SystemLogPlugin.class), nodeEngine.getNode().getNodeExtension()); }
private Data serializeCacheConfig(Object response) { Data responseData = null; if (BuildInfo.UNKNOWN_HAZELCAST_VERSION == endpoint.getClientVersion()) { boolean compatibilityEnabled = nodeEngine.getProperties().getBoolean(GroupProperty.COMPATIBILITY_3_6_CLIENT_ENABLED); if (compatibilityEnabled) { responseData = nodeEngine.toData(response == null ? null : new LegacyCacheConfig((CacheConfig) response)); } } if (null == responseData) { responseData = nodeEngine.toData(response); } return responseData; } }
public InvocationPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(PendingInvocationsPlugin.class)); InternalOperationService operationService = nodeEngine.getOperationService(); this.invocationRegistry = ((OperationServiceImpl) operationService).getInvocationRegistry(); HazelcastProperties props = nodeEngine.getProperties(); this.samplePeriodMillis = props.getMillis(SAMPLE_PERIOD_SECONDS); this.thresholdMillis = props.getMillis(SLOW_THRESHOLD_SECONDS); this.maxCount = props.getInteger(SLOW_MAX_COUNT); }
public OperationThreadSamplerPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OperationThreadSamplerPlugin.class)); this.nodeEngine = nodeEngine; InternalOperationService operationService = nodeEngine.getOperationService(); this.executor = ((OperationServiceImpl) operationService).getOperationExecutor(); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.samplerPeriodMillis = props.getMillis(SAMPLER_PERIOD_MILLIS); this.includeName = props.getBoolean(INCLUDE_NAME); }
public InvocationPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(PendingInvocationsPlugin.class)); InternalOperationService operationService = nodeEngine.getOperationService(); this.invocationRegistry = ((OperationServiceImpl) operationService).getInvocationRegistry(); HazelcastProperties props = nodeEngine.getProperties(); this.samplePeriodMillis = props.getMillis(SAMPLE_PERIOD_SECONDS); this.thresholdMillis = props.getMillis(SLOW_THRESHOLD_SECONDS); this.maxCount = props.getInteger(SLOW_MAX_COUNT); }
public OperationThreadSamplerPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OperationThreadSamplerPlugin.class)); this.nodeEngine = nodeEngine; InternalOperationService operationService = nodeEngine.getOperationService(); this.executor = ((OperationServiceImpl) operationService).getOperationExecutor(); HazelcastProperties props = nodeEngine.getProperties(); this.periodMillis = props.getMillis(PERIOD_SECONDS); this.samplerPeriodMillis = props.getMillis(SAMPLER_PERIOD_MILLIS); this.includeName = props.getBoolean(INCLUDE_NAME); }
public OperationHeartbeatPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OperationHeartbeatPlugin.class)); InvocationMonitor invocationMonitor = ((OperationServiceImpl) nodeEngine.getOperationService()).getInvocationMonitor(); HazelcastProperties properties = nodeEngine.getProperties(); this.periodMillis = properties.getMillis(PERIOD_SECONDS); this.maxDeviationPercentage = properties.getInteger(MAX_DEVIATION_PERCENTAGE); this.expectedIntervalMillis = invocationMonitor.getHeartbeatBroadcastPeriodMillis(); this.heartbeatPerMember = invocationMonitor.getHeartbeatPerMember(); }
public OperationHeartbeatPlugin(NodeEngineImpl nodeEngine) { super(nodeEngine.getLogger(OperationHeartbeatPlugin.class)); InvocationMonitor invocationMonitor = ((OperationServiceImpl) nodeEngine.getOperationService()).getInvocationMonitor(); HazelcastProperties properties = nodeEngine.getProperties(); this.periodMillis = properties.getMillis(PERIOD_SECONDS); this.maxDeviationPercentage = properties.getInteger(MAX_DEVIATION_PERCENTAGE); this.expectedIntervalMillis = invocationMonitor.getHeartbeatBroadcastPeriodMillis(); this.heartbeatPerMember = invocationMonitor.getHeartbeatPerMember(); }