public class DefaultSupervisor extends com.bytex.snamp.supervision.AbstractSupervisor implements HealthStatusTrigger, ScalingPolicyEvaluationContext
| Modifier and Type | Field and Description |
|---|---|
protected com.bytex.snamp.core.ClusterMember |
clusterMember
Gets a reference to the current member in SNAMP cluster.
|
groupName, supervisorTypeNO_OP| Constructor and Description |
|---|
DefaultSupervisor(String groupName) |
| Modifier and Type | Method and Description |
|---|---|
protected DefaultSupervisorConfigurationDescriptionProvider |
getDescriptionProvider() |
protected void |
maxClusterSizeReached(Map<String,Double> policyEvaluation) |
protected void |
overrideCheckerFactory(AttributeCheckerFactory value) |
protected void |
overrideDiscoveryService(DefaultResourceDiscoveryService value) |
protected void |
overrideElasticityManager(DefaultElasticityManager value) |
protected void |
overrideHealthStatusProvider(DefaultHealthStatusProvider value) |
protected void |
overrideScalingPolicyFactory(ScalingPolicyFactory value) |
protected void |
overrideTriggerFactory(TriggerFactory value) |
protected void |
removeResource(String resourceName,
com.bytex.snamp.connector.ManagedResourceConnector connector) |
protected void |
scaleIn(Map<String,Double> policyEvaluation) |
protected void |
scaleOut(Map<String,Double> policyEvaluation) |
protected void |
start(com.bytex.snamp.configuration.SupervisorInfo configuration)
Starts the tracking resources.
|
void |
statusChanged(com.bytex.snamp.supervision.health.ResourceGroupHealthStatus previousStatus,
com.bytex.snamp.supervision.health.ResourceGroupHealthStatus newStatus) |
protected void |
stop()
Stops tracking resources.
|
protected void |
supervise()
Executes automatically using scheduling time.
|
addResource, addService, addSupervisionEventListener, addSupervisionEventListener, close, createClient, createServiceFilter, getResources, getServiceId, healthStatusChanged, removeService, removeSupervisionEventListener, scalingHappens, toStringgetServiceFilter, getState, started, stopped, updategetBundleContext, getLogger, serviceChangedbuilder, clearCache, compose, queryObject, queryObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfiguration, getResourcesprotected final com.bytex.snamp.core.ClusterMember clusterMember
protected final void overrideElasticityManager(@Nonnull DefaultElasticityManager value)
protected final void overrideScalingPolicyFactory(@Nonnull ScalingPolicyFactory value)
protected final void overrideCheckerFactory(@Nonnull AttributeCheckerFactory value)
protected final void overrideTriggerFactory(@Nonnull TriggerFactory value)
protected final void overrideHealthStatusProvider(@Nonnull DefaultHealthStatusProvider value)
protected final void overrideDiscoveryService(@Nonnull DefaultResourceDiscoveryService value)
public final void statusChanged(com.bytex.snamp.supervision.health.ResourceGroupHealthStatus previousStatus,
com.bytex.snamp.supervision.health.ResourceGroupHealthStatus newStatus)
statusChanged in interface HealthStatusTriggerprotected void supervise()
@OverridingMethodsMustInvokeSuper protected void removeResource(String resourceName, com.bytex.snamp.connector.ManagedResourceConnector connector)
removeResource in class com.bytex.snamp.supervision.AbstractSupervisor@OverridingMethodsMustInvokeSuper protected void stop() throws Exception
This method will be called by SNAMP infrastructure automatically.
stop in class com.bytex.snamp.core.AbstractStatefulFrameworkServiceTracker<com.bytex.snamp.connector.ManagedResourceConnector,com.bytex.snamp.connector.ManagedResourceConnectorClient,com.bytex.snamp.configuration.SupervisorInfo>Exception - Unable to stop tracking resources.protected final void maxClusterSizeReached(Map<String,Double> policyEvaluation)
protected DefaultSupervisorConfigurationDescriptionProvider getDescriptionProvider()
@OverridingMethodsMustInvokeSuper protected void start(com.bytex.snamp.configuration.SupervisorInfo configuration) throws Exception
This method will be called by SNAMP infrastructure automatically.
start in class com.bytex.snamp.core.AbstractStatefulFrameworkServiceTracker<com.bytex.snamp.connector.ManagedResourceConnector,com.bytex.snamp.connector.ManagedResourceConnectorClient,com.bytex.snamp.configuration.SupervisorInfo>configuration - Tracker startup parameters.Exception - Unable to start tracking.Copyright © 2015–2017 Bytex Solutions. All rights reserved.