GigaSpaces XAP 8.0 API

org.openspaces.grid.gsm.machines
Class MachinesSlaEnforcement

java.lang.Object
  extended by org.openspaces.grid.gsm.machines.MachinesSlaEnforcement
All Implemented Interfaces:
ServiceLevelAgreementEnforcement<MachinesSlaEnforcementEndpoint>

public class MachinesSlaEnforcement
extends Object
implements ServiceLevelAgreementEnforcement<MachinesSlaEnforcementEndpoint>

Enforces the MachinesSlaPolicy of all processing units by starting an enforcement endpoint for each PU. The state is shared by all endpoints to detect conflicting operations.

Author:
itaif

Constructor Summary
MachinesSlaEnforcement(Admin admin)
           
 
Method Summary
 MachinesSlaEnforcementEndpoint 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

MachinesSlaEnforcement

public MachinesSlaEnforcement(Admin admin)
Method Detail

createEndpoint

public MachinesSlaEnforcementEndpoint 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<MachinesSlaEnforcementEndpoint>
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<MachinesSlaEnforcementEndpoint>
Parameters:
pu - target processing unit for the endpoint destruction

destroy

public void destroy()
             throws Exception
Throws:
Exception

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.