|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Resource
The interface provides a mechanism to control a resource of one allocation.
Resources are physical and logical entities that are used by applications in order to run. A resource of a particular type is associated with attributes. For example, a host has attributes of memory, CPU utilization, operating system type, etc. Platform EGO deals with resource allocation at the granularity of physical hosts, logical sub-divisions of the physical host known as cpu slots, software license features, and includes an extensible resource model to cover storage space, network bandwidth, or data sets as resources whose use is controlled under policies.
Method Summary | |
---|---|
Activity[] |
getActivities()
Get all activities that run on the resource. |
Allocation |
getAllocation()
Get one allocation to which the resource belongs. |
java.lang.String |
getName()
Get name of resource. |
int |
getSlotsNumber()
Get number of slots of resource. |
ResourceState |
getState()
Get state of resource. |
java.lang.String |
getType()
Get type of resource. |
Activity |
startActivity(ActivityRequest activityReq,
ActivityCallbackHandler activityHandler)
The operation is used by an EGO client to request the execution of an activity on the resource. |
Method Detail |
---|
Activity startActivity(ActivityRequest activityReq, ActivityCallbackHandler activityHandler) throws EGOException
activityReq
- : provide the execution parameters of the activity, such as command line,
the OS user id used to execute the activity, shell limits, etc.activityHandler
- : specifies handler of callback.
EGOException
java.lang.String getName()
java.lang.String getType()
int getSlotsNumber()
ResourceState getState()
Activity[] getActivities()
Allocation getAllocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |