GigaSpaces XAP 9.7.2 API

org.openspaces.grid.gsm.autoscaling
Class AutoScalingSlaEnforcement

java.lang.Object
  extended by org.openspaces.grid.gsm.autoscaling.AutoScalingSlaEnforcement
All Implemented Interfaces:
ServiceLevelAgreementEnforcement<AutoScalingSlaEnforcementEndpoint>

public class AutoScalingSlaEnforcement
extends Object
implements ServiceLevelAgreementEnforcement<AutoScalingSlaEnforcementEndpoint>

Enforces the AutoScalingSlaPolicy of all processing units by starting an enforcement endpoint for each PU.

Author:
itaif

Constructor Summary
AutoScalingSlaEnforcement(Admin admin)
           
 
Method Summary
 AutoScalingSlaEnforcementEndpoint createEndpoint(ProcessingUnit pu)
          Creates a new endpoint for the specified pu, if one does not already exist.
 void destroy()
           
 void destroyEndpoint(ProcessingUnit pu)
          Destroys the endpoint for the specified pu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoScalingSlaEnforcement

public AutoScalingSlaEnforcement(Admin admin)
Method Detail

createEndpoint

public AutoScalingSlaEnforcementEndpoint createEndpoint(ProcessingUnit pu)
                                                 throws ServiceLevelAgreementEnforcementEndpointAlreadyExistsException
Description copied from interface: ServiceLevelAgreementEnforcement
Creates a new endpoint for the specified pu, if one does not already exist. If an endpoint already exists an exception is raised.

Specified by:
createEndpoint in interface ServiceLevelAgreementEnforcement<AutoScalingSlaEnforcementEndpoint>
Parameters:
pu - target processing unit for the endpoint creation
Returns:
the new endpoint
Throws:
ServiceLevelAgreementEnforcementEndpointAlreadyExistsException

destroyEndpoint

public void destroyEndpoint(ProcessingUnit pu)
Description copied from interface: ServiceLevelAgreementEnforcement
Destroys the endpoint for the specified pu.

Specified by:
destroyEndpoint in interface ServiceLevelAgreementEnforcement<AutoScalingSlaEnforcementEndpoint>
Parameters:
pu - target processing unit for the endpoint destruction

destroy

public void destroy()
             throws Exception
Throws:
Exception

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.