|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.pj.cluster.Proxy
public abstract class Proxy
Class Proxy is the abstract base class for a proxy object for sending messages to a PJ process.
| Constructor Summary | |
|---|---|
Proxy(ChannelGroup theChannelGroup,
Channel theChannel)
Construct a new proxy. |
|
| Method Summary | |
|---|---|
void |
close()
Close communication with this proxy's far end process. |
Status |
receive(Buf theDst)
Receive a message from this proxy's far end process. |
Status |
receive(Integer theTag,
Buf theDst)
Receive a message with the given tag from this proxy's far end process. |
void |
send(int theTag,
Buf theSrc)
Send a message with the given tag and items to this proxy's far end process. |
void |
send(Message theMessage)
Send the given message to this proxy's far end process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Proxy(ChannelGroup theChannelGroup,
Channel theChannel)
theChannelGroup - Channel group.theChannel - Channel.| Method Detail |
|---|
public void send(Message theMessage)
throws IOException
theMessage - Message.
IOException - Thrown if an I/O error occurred.
public void send(int theTag,
Buf theSrc)
throws IOException
theTag - Message tag.theSrc - Item source buffer.
IOException - Thrown if an I/O error occurred.
public Status receive(Buf theDst)
throws IOException
The receive() method does not return until the message has been fully received.
theDst - Item destination buffer.
IOException - Thrown if an I/O error occurred.
public Status receive(Integer theTag,
Buf theDst)
throws IOException
The receive() method does not return until the message has been fully received.
theTag - Message tag, or null to receive any tag.theDst - Item destination buffer.
IOException - Thrown if an I/O error occurred.public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||