All Packages Class Hierarchy This Package Previous Next Index
Class javaNOW.EntrySpace
java.lang.Object
|
+----javaNOW.EntrySpace
- public class EntrySpace
- extends Object
- implements EntrySpaceI, Cloneable, Serializable
EntrySpace: EntrySpace stores Entries in a vector
Even though EntrySpace implements Serializable, it will not
transfer Vector of EntryList
- See Also:
- class, method
-
name
- entrySpaceTable will not be transferred over the network
-
EntrySpace()
- Constructors
-
EntrySpace(String)
-
-
barrier(int)
- implements barrier
-
clear()
- remove all messages in the entrySpace
-
get(Entry)
- Removes message from message space in nonblocking fashion.
-
getEntryCount()
- It returns number of messages in the EntrySpace
-
getEntryCount(Entry)
- It returns number of messages in the EntrySpace that matches the
message value as that of theEntry
-
getHashSize()
- Accesss
-
getIfExists(Entry)
- Removes message from message space in nonblocking fashion.
-
getIfExistsType(Entry)
- It returns vector of messages that match the message value of the
theEntry
-
getIfExistsType(Entry, int)
- It returns nth message in the message space that matches the message value
as that of theEntry
-
present(Entry)
- Returns true if message exist in message spaces (nonblocking)
-
put(Entry)
- Inserts a message into message space
-
read(Entry)
- Returns a copy of message from message space in nonblocking fashion.
-
readIfExists(Entry)
- Returns a copy of message from message space in nonblocking fashion.
-
readIfExistsType(Entry)
- It is same as getIfExistsType() couterpart except it returns copy of messages
-
readIfExistsType(Entry)
- It is same as getIfExistsType() couterpart except it returns copy of messages
-
readIfExistsType(Entry, int)
- It is same as getIfExistsType() couterpart except it returns copy of messages
-
setHashSize(int)
- Modifiers
-
subscribe(String, JavaNOWEntryNotifier, JavaNOWEntryFilter)
- subscribe to receive events of given type
-
sync(int)
- It blocks until message space contains numEntrys number of messages
-
toString()
-
-
unsubscribe(String)
- unsubscribe to receive events of given type
-
waitUntilFound(Entry)
- Waits until message exist in message spaces (blocking)
name
public String name
- entrySpaceTable will not be transferred over the network
- See Also:
- class, method
EntrySpace
public EntrySpace()
- Constructors
- See Also:
- class, method
EntrySpace
public EntrySpace(String name)
getHashSize
public int getHashSize()
- Accesss
- See Also:
- class, method
getIfExists
public 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
get
public 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
getIfExistsType
public Entry[] getIfExistsType(Entry t) throws UninitializedEntrySpace
- It returns vector of messages that match the message value of the
theEntry
- See Also:
- class, method
getIfExistsType
public 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
present
public boolean present(Entry t) throws UninitializedEntrySpace
- Returns true if message exist in message spaces (nonblocking)
- See Also:
- class, method
waitUntilFound
public void waitUntilFound(Entry t) throws UninitializedEntrySpace, SingleThreadBlockException
- Waits until message exist in message spaces (blocking)
- See Also:
- class, method
readIfExists
public 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
read
public Entry read(Entry t) throws UninitializedEntrySpace, SingleThreadBlockException
- Returns a copy of message from message space in nonblocking fashion.
If message does not exist, it blocks until it is inserted
- See Also:
- class, method
readIfExistsType
public Vector readIfExistsType(Entry t) throws UninitializedEntrySpace
- It is same as getIfExistsType() couterpart except it returns copy of messages
- See Also:
- class, method
readIfExistsType
public Entry readIfExistsType(Entry t,
int n) throws UninitializedEntrySpace
- It is same as getIfExistsType() couterpart except it returns copy of messages
- See Also:
- class, method
getEntryCount
public int getEntryCount(Entry msg)
- It returns number of messages in the EntrySpace that matches the
message value as that of theEntry
- See Also:
- class, method
getEntryCount
public int getEntryCount()
- It returns number of messages in the EntrySpace
- See Also:
- class, method
sync
public void sync(int numEntrys) throws SingleThreadBlockException
- It blocks until message space contains numEntrys number of messages
- See Also:
- class, method
setHashSize
public void setHashSize(int hsize)
- Modifiers
- See Also:
- class, method
put
public void put(Entry t) throws UninitializedEntrySpace, SingleThreadBlockException
- Inserts a message into message space
- See Also:
- class, method
toString
public String toString()
- Overrides:
- toString in class Object
clear
public void clear() throws SingleThreadBlockException
- remove all messages in the entrySpace
- See Also:
- class, method
All Packages Class Hierarchy This Package Previous Next Index