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

Variable Index

 o name
entrySpaceTable will not be transferred over the network

Constructor Index

 o EntrySpace()
Constructors
 o EntrySpace(String)

Method Index

 o barrier(int)
implements barrier
 o clear()
remove all messages in the entrySpace
 o get(Entry)
Removes message from message space in nonblocking fashion.
 o getEntryCount()
It returns number of messages in the EntrySpace
 o getEntryCount(Entry)
It returns number of messages in the EntrySpace 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 nonblocking 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)
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)
It blocks until message space contains numEntrys number of messages
 o toString()
 o unsubscribe(String)
unsubscribe to receive events of given type
 o waitUntilFound(Entry)
Waits until message exist in message spaces (blocking)

Variables

 o name
 public String name
entrySpaceTable will not be transferred over the network

See Also:
class, method

Constructors

 o EntrySpace
 public EntrySpace()
Constructors

See Also:
class, method
 o EntrySpace
 public EntrySpace(String name)

Methods

 o getHashSize
 public int getHashSize()
Accesss

See Also:
class, method
 o 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
 o 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
 o 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
 o 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
 o present
 public boolean present(Entry t) throws UninitializedEntrySpace
Returns true if message exist in message spaces (nonblocking)

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

See Also:
class, method
 o 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
 o 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
 o readIfExistsType
 public Vector readIfExistsType(Entry t) throws UninitializedEntrySpace
It is same as getIfExistsType() couterpart except it returns copy of messages

See Also:
class, method
 o 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
 o 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
 o getEntryCount
 public int getEntryCount()
It returns number of messages in the EntrySpace

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

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

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

See Also:
class, method
 o toString
 public String toString()
Overrides:
toString in class Object
 o 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