|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.platform.ego.impl.ReleaseRequest
public class ReleaseRequest
ReleaseRequest specifies release request. This class is used while calling release() to specify the release request.
Field Summary | |
---|---|
static int |
EGO_RELEASE_AUTOADJUST
|
static int |
EGO_RELEASE_BLOCKED
|
static int |
EGO_RELEASE_MODIFY
|
Constructor Summary | |
---|---|
ReleaseRequest()
|
Method Summary | |
---|---|
int |
getFlags()
Get flags that indicate the behavior of resource release. |
Host[] |
getHosts()
Get hosts of allocation. |
void |
setFlags(int flags)
Set flags that indicate the behavior of resource release. |
void |
setHosts(Host[] hosts)
Set hosts of allocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EGO_RELEASE_AUTOADJUST
public static final int EGO_RELEASE_BLOCKED
public static final int EGO_RELEASE_MODIFY
Constructor Detail |
---|
public ReleaseRequest()
Method Detail |
---|
public int getFlags()
setFlags(int)
public void setFlags(int flags)
flags
- :
EGO_RELEASE_AUTOADJUST - when this option is set, EGO will adjust the parameters of the allocation such that the new value of MaxResources will be set to the current number of resources allocated. This has the effect of stopping EGO from replacing the released resource. It takes precedence over EGO_RELEASE_MODIFY if both are used together.
EGO_RELEASE_BLOCKED - when this option is set, EGO will not replace the released resource with the same resource. This is useful to set if some application related problem caused the named resource to be unusable by the EGO client (for example, a library version mismatch).
EGO_RELEASE_MODIFY - when this option is set, EGO will adjust the parameters of the allocation such that the new value of MaxResources will be decremented by the number of resources being released. If the minimum becomes larger than the maximum then it will be set equal to the maximum. It is superceeded by EGO_RELEASE_AUTOADJUST if both are used together.
public Host[] getHosts()
public void setHosts(Host[] hosts)
hosts
- : specifies hosts of allocation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |