com.platform.ego.impl
Class ReleaseRequest

java.lang.Object
  extended by com.platform.ego.impl.ReleaseRequest

public class ReleaseRequest
extends java.lang.Object

ReleaseRequest specifies release request. This class is used while calling release() to specify the release request.

Version:
1.2.3

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

EGO_RELEASE_AUTOADJUST

public static final int EGO_RELEASE_AUTOADJUST
See Also:
Constant Field Values

EGO_RELEASE_BLOCKED

public static final int EGO_RELEASE_BLOCKED
See Also:
Constant Field Values

EGO_RELEASE_MODIFY

public static final int EGO_RELEASE_MODIFY
See Also:
Constant Field Values
Constructor Detail

ReleaseRequest

public ReleaseRequest()
Method Detail

getFlags

public int getFlags()
Get flags that indicate the behavior of resource release.

Returns:
flags.
See Also:
setFlags(int)

setFlags

public void setFlags(int flags)
Set flags that indicate the behavior of resource release. The flags can be :

Parameters:
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.


getHosts

public Host[] getHosts()
Get hosts of allocation.

Returns:
hosts of allocation.

setHosts

public void setHosts(Host[] hosts)
Set hosts of allocation.

Parameters:
hosts - : specifies hosts of allocation.


Copyright (C) 1992-2007 Platform Computing Corporation