All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javaNOW.RemoteEntrySpace

java.lang.Object
   |
   +----javaNOW.RemoteEntrySpace

public class RemoteEntrySpace
extends Object
implements EntrySpaceI
RemoteEntrySpace: The public interface for JavaNOW operations


Constructor Index

 o RemoteEntrySpace(String, JavaNOWAPI)
Constructors

Method Index

 o addWaitingEntrySpaceKeys(EntrySpaceKey)
keeps count of sync for EntrySpaces
 o barrier(int)
barrier: waits numEntrys number of processes have executed this operation.
 o clear()
Removes all message from a entrySpace
 o eval(ActiveEntry, Object)
It is used to evaluate a message method (execute()) and inserts the output of that method in message space.
 o finalize()
 o get(String, Entry)
Removes message from message space in blocking 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 entry
 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 entry
 o getIfExistsType(Entry, int)
It returns nth message in the message space that matches the message value as that of entry
 o notifyIfWaiting()
Wake any processes who are waiting in sync
 o present(String, 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, int)
It is same as getIfExistsType() counterpart except it returns copy of messages
 o removeWaitingEntrySpaceKeys(EntrySpaceKey)
remove EntrySpace from list of waiting EntrySpaces
 o sync(int)
waits until the message space contains numEntrys number of messages
 o validateArgument(Object)
 o waitAllHosts()
 o waitAllHosts(long)
 o waitUntilFound(Entry)
Waits until message exist in message spaces (blocking)

Constructors

 o RemoteEntrySpace
 public RemoteEntrySpace(String name,
                         JavaNOWAPI api)
Constructors

See Also:
class, method

Methods

 o finalize
 protected void finalize() throws Throwable
Overrides:
finalize in class Object
 o put
 public void put(Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
Inserts a message into message space

See Also:
class, method
 o getIfExists
 public Entry getIfExists(Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
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(String entrySpace,
                  Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
Removes message from message space in blocking fashion. If message does not exist, it blocks until it is inserted

See Also:
class, method
 o present
 public boolean present(String entrySpace,
                        Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
Returns true if message exist in message spaces (nonblocking)

See Also:
class, method
 o waitUntilFound
 public void waitUntilFound(Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
Waits until message exist in message spaces (blocking)

See Also:
class, method
 o readIfExists
 public Entry readIfExists(Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
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 entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
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 eval
 public void eval(ActiveEntry entry,
                  Object arg) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
It is used to evaluate a message method (execute()) and inserts the output of that method in message space.

See Also:
class, method
 o getIfExistsType
 public Entry[] getIfExistsType(Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
It returns vector of messages that match the message value of the entry

See Also:
class, method
 o getIfExistsType
 public Entry getIfExistsType(Entry entry,
                              int n) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
It returns nth message in the message space that matches the message value as that of entry

See Also:
class, method
 o readIfExistsType
 public Entry[] readIfExistsType(Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
It is same as getIfExistsType() couterpart except it returns copy of messages

See Also:
class, method
 o readIfExistsType
 public Entry readIfExistsType(Entry entry,
                               int n) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
It is same as getIfExistsType() counterpart except it returns copy of messages

See Also:
class, method
 o getEntryCount
 public int getEntryCount(Entry entry) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
It returns number of messages in the EntrySpace that matches the message value as that of entry

See Also:
class, method
 o getEntryCount
 public int getEntryCount() throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
It returns number of messages in the EntrySpace

See Also:
class, method
 o barrier
 public void barrier(int numEntrys) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
barrier: waits numEntrys number of processes have executed this operation.

See Also:
class, method
 o sync
 public void sync(int numEntrys) throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
waits until the message space contains numEntrys number of messages

See Also:
class, method
 o clear
 public void clear() throws InvalidArgumentException, NotSerializableException, JavaNOWShutException
Removes all message from a entrySpace

See Also:
class, method
 o addWaitingEntrySpaceKeys
 protected synchronized void addWaitingEntrySpaceKeys(EntrySpaceKey ts)
keeps count of sync for EntrySpaces

See Also:
class, method
 o removeWaitingEntrySpaceKeys
 protected synchronized void removeWaitingEntrySpaceKeys(EntrySpaceKey ts)
remove EntrySpace from list of waiting EntrySpaces

See Also:
class, method
 o waitAllHosts
 protected void waitAllHosts(long milliseconds)
 o waitAllHosts
 protected void waitAllHosts()
 o notifyIfWaiting
 protected void notifyIfWaiting() throws SingleThreadBlockException
Wake any processes who are waiting in sync

See Also:
class, method
 o validateArgument
 protected void validateArgument(Object arg) throws InvalidArgumentException, NotSerializableException

All Packages  Class Hierarchy  This Package  Previous  Next  Index