com.platform.ego.impl
Class AllocRequest

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

public class AllocRequest
extends java.lang.Object

AllocRequest specifies an allocation request. This class is used to specify the allocation request while calling allocate() .

Version:
1.2.3

Field Summary
static int EGO_ALLOC_EXCLUSIVE
          If EGO_ALLOC_EXCLUSIVE is set, host allocated is not shared by other allocations.
 
Constructor Summary
AllocRequest()
           
 
Method Summary
 java.lang.String getAllocName()
          Get name of allocation.
 java.lang.String getConsumerName()
          Get name of consumer.
 int getFlags()
          Get flags: valid flags: - EGO_ALLOC_EXCLUSIVE: host allocated is not shared by other allocations.
 int getMaxslots()
          Get maximum slots that this request requires.
 int getMinslots()
          Get minimum slots that this request requires.
 java.lang.String getResourceGroup()
          Get resource group that client would like the host to be from.
 java.lang.String getResReq()
          Get resource requirement string that a host must satisfy to be considered a candidate.
 int getTile()
          Get slots distribution.
 void setAllocName(java.lang.String allocName)
          Set name of allocation.
 void setConsumerName(java.lang.String consumerName)
          Set name of consumer.
 void setFlags(int flags)
          Set flags
 void setMaxslots(int maxslots)
          Set maximum slots that this request requires.
 void setMinslots(int minslots)
          Set minimum slots that this request requires.
 void setResourceGroup(java.lang.String resourceGroup)
          Set resource group that client would like the host to be from.
 void setResReq(java.lang.String resReq)
          Set resource requirement string that a host must satisfy to be considered a candidate.
 void setTile(int tile)
          Set slots distribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EGO_ALLOC_EXCLUSIVE

public static final int EGO_ALLOC_EXCLUSIVE
If EGO_ALLOC_EXCLUSIVE is set, host allocated is not shared by other allocations.

See Also:
Constant Field Values
Constructor Detail

AllocRequest

public AllocRequest()
Method Detail

getAllocName

public java.lang.String getAllocName()
Get name of allocation.

Returns:
name of allocation.

setAllocName

public void setAllocName(java.lang.String allocName)
Set name of allocation.

Parameters:
allocName - : specifies name of allocation.

getConsumerName

public java.lang.String getConsumerName()
Get name of consumer.

Returns:
name of consumer.

setConsumerName

public void setConsumerName(java.lang.String consumerName)
Set name of consumer.

Parameters:
consumerName - : specifies name of consumer.

getFlags

public int getFlags()
Get flags: valid flags: - EGO_ALLOC_EXCLUSIVE: host allocated is not shared by other allocations.

Returns:
flag.

setFlags

public void setFlags(int flags)
Set flags

- EGO_ALLOC_EXCLUSIVE: host allocated is not shared by other allocations.

Parameters:
flags -
See Also:
getFlags()

getMaxslots

public int getMaxslots()
Get maximum slots that this request requires.

Returns:
maximum slots.

setMaxslots

public void setMaxslots(int maxslots)
Set maximum slots that this request requires.

Parameters:
maxslots - : specifies maximum slots.

getMinslots

public int getMinslots()
Get minimum slots that this request requires.

Returns:
minimum slots.

setMinslots

public void setMinslots(int minslots)
Set minimum slots that this request requires.

Parameters:
minslots - : specifies minimum slots.

getResourceGroup

public java.lang.String getResourceGroup()
Get resource group that client would like the host to be from.

Returns:
resource group.

setResourceGroup

public void setResourceGroup(java.lang.String resourceGroup)
Set resource group that client would like the host to be from.

Parameters:
resourceGroup - : specifies resource group.

getResReq

public java.lang.String getResReq()
Get resource requirement string that a host must satisfy to be considered a candidate.

Returns:
resource requirement string.

setResReq

public void setResReq(java.lang.String resReq)
Set resource requirement string that a host must satisfy to be considered a candidate.

Parameters:
resReq - : specifies resource requirement string.

getTile

public int getTile()
Get slots distribution.

Returns:
slots distribution.

setTile

public void setTile(int tile)
Set slots distribution.

Parameters:
tile - : specifies slots distribution.


Copyright (C) 1992-2007 Platform Computing Corporation