All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface javaNOW.EntrySpaceI

public interface EntrySpaceI
Interface to store and retrieve Entrys


Variable Index

 o DEFAULT_HASH_SIZE
 o MAX_WAIT
Constants

Method Index

 o barrier(int)
implements barrier
 o clear()
remove all messages in the entry space
 o get(Entry)
Removes message from message space in nonblocking fashion.
 o getEntryCount()
It returns number of messages in the messagespace
 o getEntryCount(Entry)
It returns number of messages in the messagespace that matches the message value as that of theEntry
 o getHashSize()
Accesss
 o getIfExists(Entry)
Removes message from message space in nonblocking fashion.
 o getIfExistsType(Entry)
It returns vector of messages that match the message value of the theEntry
 o getIfExistsType(Entry, int)
It returns nth message in the message space that matches the message value as that of theEntry
 o present(Entry)
Returns true if message exist in message spaces (nonblocking)
 o put(Entry)
Inserts a message into message space
 o read(Entry)
Returns a copy of message from message space in blocking fashion.
 o readIfExists(Entry)
Returns a copy of message from message space in nonblocking fashion.
 o readIfExistsType(Entry)
It is same as getIfExistsType() couterpart except it returns copy of messages
 o readIfExistsType(Entry, int)
It is same as getIfExistsType() couterpart except it returns copy of messages
 o setHashSize(int)
Modifiers
 o subscribe(String, JavaNOWEntryNotifier, JavaNOWEntryFilter)
subscribe to receive events of given type
 o sync(int)
implements sync -- for barrier
 o sync(int)
It blocks until message space contains numEntrys number of messages
 o unsubscribe(String)
unsubscribe to receive events of given type
 o waitUntilFound(Entry)
Waits until message exist in message spaces (blocking)

Variables

 o MAX_WAIT
 public static final int MAX_WAIT
Constants

 o DEFAULT_HASH_SIZE
 public static final int DEFAULT_HASH_SIZE

Methods

 o getHashSize
 public abstract int getHashSize()
Accesss

See Also:
class, method
 o getIfExists
 public abstract Entry getIfExists(Entry t) throws UninitializedEntrySpace
Removes message from message space in nonblocking fashion. If message does not exist, it returns null

See Also:
class, method
 o get
 public abstract Entry get(Entry t) throws UninitializedEntrySpace, SingleThreadBlockException
Removes message from message space in nonblocking fashion. If message does not exist, it blocks until it is inserted

See Also:
class, method
 o getIfExistsType
 public abstract Entry[] getIfExistsType(Entry t) throws UninitializedEntrySpace
It returns vector of messages that match the message value of the theEntry

See Also:
class, method
 o getIfExistsType
 public abstract Entry getIfExistsType(Entry t,
                                       int n) throws UninitializedEntrySpace
It returns nth message in the message space that matches the message value as that of theEntry

See Also:
class, method
 o present
 public abstract boolean present(Entry t) throws UninitializedEntrySpace
Returns true if message exist in message spaces (nonblocking)

See Also:
class, method
 o waitUntilFound
 public abstract void waitUntilFound(Entry t) throws UninitializedEntrySpace, SingleThreadBlockException
Waits until message exist in message spaces (blocking)

See Also:
class, method
 o readIfExists
 public abstract Entry readIfExists(Entry t) throws UninitializedEntrySpace
Returns a copy of message from message space in nonblocking fashion. If message does not exist, it returns null

See Also:
class, method
 o read
 public abstract Entry read(Entry t) throws UninitializedEntrySpace, SingleThreadBlockException
Returns a copy of message from message space in blocking fashion. If message does not exist, it blocks until it is inserted

See Also:
class, method
 o readIfExistsType
 public abstract Entry[] readIfExistsType(Entry t) throws UninitializedEntrySpace
It is same as getIfExistsType() couterpart except it returns copy of messages

See Also:
class, method
 o readIfExistsType
 public abstract Entry readIfExistsType(Entry t,
                                        int n) throws UninitializedEntrySpace
It is same as getIfExistsType() couterpart except it returns copy of messages

See Also:
class, method
 o getEntryCount
 public abstract int getEntryCount(Entry msg)
It returns number of messages in the messagespace that matches the message value as that of theEntry

See Also:
class, method
 o getEntryCount
 public abstract int getEntryCount()
It returns number of messages in the messagespace

See Also:
class, method
 o sync
 public abstract void sync(int numEntrys) throws SingleThreadBlockException
It blocks until message space contains numEntrys number of messages

See Also:
class, method
 o setHashSize
 public abstract void setHashSize(int hsize)
Modifiers

See Also:
class, method
 o put
 public abstract void put(Entry t) throws UninitializedEntrySpace, SingleThreadBlockException
Inserts a message into message space

See Also:
class, method
 o clear
 public abstract void clear() throws SingleThreadBlockException
remove all messages in the entry space

See Also:
class, method
 o barrier
 public abstract void barrier(int num) throws InvalidArgumentException
implements barrier

See Also:
class, method
 o sync
 public abstract void sync(int num) throws InvalidArgumentException
implements sync -- for barrier

See Also:
class, method
 o subscribe
 public abstract void subscribe(String subscriberId,
                                JavaNOWEntryNotifier notifier,
                                JavaNOWEntryFilter filter) throws DuplicateSubscriberException
subscribe to receive events of given type

See Also:
class, method
 o unsubscribe
 public abstract void unsubscribe(String subscriberId) throws NoSuchSubscriberException
unsubscribe to receive events of given type

See Also:
class, method

All Packages  Class Hierarchy  This Package  Previous  Next  Index