org.openspaces.grid.gsm.machines
Class MachinesSlaEnforcement
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MachinesSlaEnforcement
public MachinesSlaEnforcement(MachinesSlaEnforcementState state)
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
failedRecoveredStateOnEsmStart
public void failedRecoveredStateOnEsmStart(ProcessingUnit pu)
Copyright © GigaSpaces.