Bees v0.5.0 API

bees.core.kernel
Class KernelObjectStore

java.lang.Object
  |
  +--bees.core.kernel.KernelObjectStore

public final class KernelObjectStore
extends java.lang.Object

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

INVALID_ID

public static final long INVALID_ID
The value of an invalid identifier.
Method Detail

getPrimary

public static KernelObjectStore getPrimary()
The primary KernelObjectStore, everything gets put in here.

isValidID

public static boolean isValidID(long id)

put

public long put(KernelObject ko)
Put a KernelObject in the store.
Parameters:
ko - A KernelObject to add to the store.
Returns:
The KernelObject's unique identifier.

put

public long put(byte[] object,
                CapabilityEnvelope[] sub,
                PermissionSet ps,
                Meter meter,
                java.lang.String comment)
Put a KernelObject in the store.
Parameters:
object - The capability material.
comment - The comment to attach to the KernelObject.
Returns:
The KernelObject's unique identifier.

put

public long put(byte[] object,
                PermissionSet ps,
                java.lang.String comment)

put

public long put(byte[] object,
                CapabilityEnvelope[] sub)
Put a KernelObject in the store with a null comment.
Parameters:
object - The capability material.
Returns:
The KernelObject's unique identifier.

put

public long put(byte[] object)
Put a KernelObject in the store with a null comment.
Parameters:
object - The capability material.
Returns:
The KernelObject's unique identifier.

get

public KernelObject get(long id)
Get a KernelObject from the store using its unique identifier.
Parameters:
id - The KernelObject's unique identifier.
Returns:
The matching KernelObject.
Throws:
Throws - a NoSuchElementException if the id couldn't be found.

putLate

public long putLate(TypeID hash)

remove

public KernelObject remove(long id)
Remove a KernelObject from the store.
Parameters:
id - The KernelObject's unique identifier.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Bees v0.5.0 API

This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/