GigaSpaces XAP 9.1 API

org.openspaces.grid.gsm.containers
Class ContainersSlaEnforcement

java.lang.Object
  extended by org.openspaces.grid.gsm.containers.ContainersSlaEnforcement
All Implemented Interfaces:
ServiceLevelAgreementEnforcement<ContainersSlaEnforcementEndpoint>

public class ContainersSlaEnforcement
extends Object
implements ServiceLevelAgreementEnforcement<ContainersSlaEnforcementEndpoint>

Starts and shutdowns grid service container based on the requested ContainersSlaPolicy Use createEndpoint(ProcessingUnit) to enforce an SLA for a specific container zone.

Author:
itaif
See Also:
ContainersSlaEnforcementEndpoint, ContainersSlaPolicy

Constructor Summary
ContainersSlaEnforcement(Admin admin)
           
 
Method Summary
 ContainersSlaEnforcementEndpoint 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

ContainersSlaEnforcement

public ContainersSlaEnforcement(Admin admin)
Method Detail

createEndpoint

public ContainersSlaEnforcementEndpoint 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<ContainersSlaEnforcementEndpoint>
Parameters:
pu - target processing unit for the endpoint creation
Returns:
a service that continuously maintains the specified number of containers for the specified pu.
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<ContainersSlaEnforcementEndpoint>
Parameters:
pu - target processing unit for the endpoint destruction

destroy

public void destroy()

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.