org.openspaces.grid.gsm.containers
Class ContainersSlaEnforcement
java.lang.Object
  
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
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ContainersSlaEnforcement
public ContainersSlaEnforcement(Admin admin)
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()
 
 
Copyright © GigaSpaces.