public class DefaultResourceCleaner extends java.lang.Object implements ResourceCleaner
| Constructor and Description |
|---|
DefaultResourceCleaner(StateStore stateStore)
Creates a new
DefaultResourceCleaner which retrieves expected resource
information from the provided StateStore. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<? extends Resource> |
getPersistentVolumesToBeDestroyed(Offer offer)
Examines the
Offer to determine which volume Resources should be destroyed. |
java.util.Collection<? extends Resource> |
getReservedResourcesToBeUnreserved(Offer offer)
Examines the
Offer to determine which Resources should be unreserved. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluatepublic DefaultResourceCleaner(StateStore stateStore)
DefaultResourceCleaner which retrieves expected resource
information from the provided StateStore.StateStoreException - if there's a failure when retrieving resource informationpublic java.util.Collection<? extends Resource> getReservedResourcesToBeUnreserved(Offer offer)
Offer to determine which Resources should be unreserved.getReservedResourcesToBeUnreserved in interface ResourceCleaneroffer - The Offer containing the Resources.Collection of Resources that should be unreserved.public java.util.Collection<? extends Resource> getPersistentVolumesToBeDestroyed(Offer offer)
Offer to determine which volume Resources should be destroyed.getPersistentVolumesToBeDestroyed in interface ResourceCleaneroffer - The Offer containing the persistent volume Resources.Collection of Resources that should be destroyed.