|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.cod.plugins.PoolManager
public class PoolManager
Manages inventory pools.
| Nested Class Summary | |
|---|---|
class |
PoolManager.CreatePoolResult
|
| Field Summary | |
|---|---|
static int |
ErrorDatabaseError
|
static int |
ErrorInternalError
|
static int |
ErrorInvalidArguments
|
static int |
ErrorNone
|
static int |
ErrorPoolExists
|
static int |
ErrorTypeExists
|
static java.lang.String |
PoolPrefix
|
protected Site |
site
Site this pool belongs to |
static java.lang.String |
UnassingedPoolName
|
| Constructor Summary | |
|---|---|
PoolManager(Site site)
Create a new instance |
|
| Method Summary | |
|---|---|
PoolManager.CreatePoolResult |
createPool(SliceID sliceID,
java.lang.String name,
ResourceType type,
java.util.Properties p)
Create a new resource pool |
static java.lang.String |
getPoolName(ResourceType type)
Constructs a pool name for the specified resource type |
void |
initialize()
Perform initialization |
void |
remove(Slice slice,
IConcreteSet resources)
|
void |
removePool(SliceID poolID,
ResourceType type)
|
void |
reset(java.util.Properties p)
De-serializes the object from the given properties list. |
void |
revisit(IActorIdentity actor,
java.util.Properties p)
|
java.util.Properties |
save()
Serializes the object into a properties list. |
void |
save(java.util.Properties p)
Serializes the object into the given properties list. |
void |
transferFrom(SliceID sliceID,
NodeID nid)
|
void |
transferTo(SliceID poolID,
IConcreteSet resources)
Transfer resources to the specified pool |
void |
transferTo(SliceID poolID,
Node node)
Transfer a node in the specified pool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UnassingedPoolName
public static final java.lang.String PoolPrefix
public static final int ErrorNone
public static final int ErrorPoolExists
public static final int ErrorTypeExists
public static final int ErrorInvalidArguments
public static final int ErrorDatabaseError
public static final int ErrorInternalError
protected Site site
| Constructor Detail |
|---|
public PoolManager(Site site)
site - | Method Detail |
|---|
public void initialize()
throws java.lang.Exception
initialize in interface IInitializejava.lang.Exception
public static java.lang.String getPoolName(ResourceType type)
throws java.lang.Exception
type - resource type
java.lang.Exception
public PoolManager.CreatePoolResult createPool(SliceID sliceID,
java.lang.String name,
ResourceType type,
java.util.Properties p)
name - Pool nametype - Resource typep - Resource properties
public void removePool(SliceID poolID,
ResourceType type)
throws java.lang.Exception
java.lang.Exception
public void transferTo(SliceID poolID,
IConcreteSet resources)
throws java.lang.Exception
pool - Pool nameresources - Resources
java.lang.Exception
public void transferTo(SliceID poolID,
Node node)
throws java.lang.Exception
slice - node -
java.lang.Exception
public void transferFrom(SliceID sliceID,
NodeID nid)
throws java.lang.Exception
java.lang.Exception
public void remove(Slice slice,
IConcreteSet resources)
throws java.lang.Exception
java.lang.Exception
public java.util.Properties save()
throws java.lang.Exception
ISerialize
save in interface ISerializejava.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
ISerialize
save in interface ISerializep - properties list to serialize the object into
java.lang.Exception
public void reset(java.util.Properties p)
throws java.lang.Exception
ISerialize
reset in interface ISerializep - properties list containing the serialized version of
the object
java.lang.Exception
public void revisit(IActorIdentity actor,
java.util.Properties p)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||