|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--bees.core.kernel.KernelObjectStore
A class used to store and track KernelObject's.
Field Summary | |
static long |
INVALID_ID
The value of an invalid identifier. |
Method Summary | |
KernelObject |
get(long id)
Get a KernelObject from the store using its unique identifier. |
static KernelObjectStore |
getPrimary()
The primary KernelObjectStore, everything gets put in here. |
static boolean |
isValidID(long id)
|
long |
put(byte[] object)
Put a KernelObject in the store with a null comment. |
long |
put(byte[] object,
CapabilityEnvelope[] sub)
Put a KernelObject in the store with a null comment. |
long |
put(byte[] object,
CapabilityEnvelope[] sub,
PermissionSet ps,
Meter meter,
java.lang.String comment)
Put a KernelObject in the store. |
long |
put(byte[] object,
PermissionSet ps,
java.lang.String comment)
|
long |
put(KernelObject ko)
Put a KernelObject in the store. |
long |
putLate(TypeID hash)
|
KernelObject |
remove(long id)
Remove a KernelObject from the store. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long INVALID_ID
Method Detail |
public static KernelObjectStore getPrimary()
public static boolean isValidID(long id)
public long put(KernelObject ko)
ko
- A KernelObject to add to the store.public long put(byte[] object, CapabilityEnvelope[] sub, PermissionSet ps, Meter meter, java.lang.String comment)
object
- The capability material.comment
- The comment to attach to the KernelObject.public long put(byte[] object, PermissionSet ps, java.lang.String comment)
public long put(byte[] object, CapabilityEnvelope[] sub)
object
- The capability material.public long put(byte[] object)
object
- The capability material.public KernelObject get(long id)
id
- The KernelObject's unique identifier.Throws
- a NoSuchElementException if the id couldn't be found.public long putLate(TypeID hash)
public KernelObject remove(long id)
id
- The KernelObject's unique identifier.public java.lang.String toString()
toString
in class java.lang.Object
|
Bees v0.5.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |