|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Allocation
The interface provides a mechanism to control resource allocations.
Based on the availability of resources and the amount of resources a consumer is entitled to, Platform EGO applies policies to determine how many resources to allocate to a given request. The client is notified asynchronously as the resources become available. In this case, CPU slots are identified by the physical host that they reside on and this host information is passed back to the client.
Method Summary | |
---|---|
void |
free()
This operation is used to cancel an existing allocation. |
java.lang.String |
getAllocID()
Get ID of allocation. |
AllocationInfo |
getAllocInfo()
Get detailed information of allocation. |
AllocRequest |
getAllocRequest()
Get request of allocation. |
java.lang.String |
getConsumerID()
Get path of consumer that owns the allocation. |
Resource |
getResource(java.lang.String resName)
Get resource by name of resource. |
Resource[] |
getResources()
Get all resources that are included in the allocation. |
void |
realloc(ReallocRequest allocateSpec)
This operation is used to modify the parameters of an existing allocation. |
void |
release(ReleaseRequest releaseReq)
This operation is used to release or replace resources that have been assigned to an allocation. |
Activity[] |
startActivity(ActivityRequest actreq,
ActivityCallbackHandler handler)
The operation is used by an EGO client to request the execution of an activity on all resources assigned to allocation. |
void |
unblock(java.lang.String[] resourceNames)
This operation is used to remove resources from BLOCK list. |
Method Detail |
---|
void realloc(ReallocRequest allocateSpec) throws EGOException
allocateSpec
- : specifies a description of the parameters to change within the existing allocation.
EGOException
void free() throws EGOException
EGOException
void release(ReleaseRequest releaseReq) throws EGOException
releaseReq
- : specifies one or more elements describing which resources to remove from the allocation.
They must be part of the existing allocation to be released.
EGOException
void unblock(java.lang.String[] resourceNames) throws EGOException
resourceNames
- : specifies names of resource.
EGOException
java.lang.String getAllocID()
AllocRequest getAllocRequest()
java.lang.String getConsumerID()
Resource[] getResources()
Resource getResource(java.lang.String resName)
AllocationInfo getAllocInfo() throws EGOException
EGOException
Activity[] startActivity(ActivityRequest actreq, ActivityCallbackHandler handler) throws EGOException
actreq
- : specifies request of activity.handler
- : specifies handler of callback message of this allocation from EGO cluster.
EGOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |