jrun.jms.core.kernel.ipc
Interface IpcIfc

All Known Implementing Classes:
TcpService, ObjectChannel

public interface IpcIfc

All ipc services must implement at least these methods.

Version:
$Revision: 1.2 $ $Date: 2000/06/27 01:23:32 $
Author:
Jim Mourikis
See Also:
org.exolab.core.ipc.TcpService, org.exolab.core.ipc.Client, org.exolab.core.ipc.TcpServerService

Method Summary
 void close()
          Close the ipc connection.
 java.lang.Object receive()
          An object is received.
 void send(java.io.Serializable ob)
          Send the specified object.
 java.lang.String toString()
          Retrieve a unique id for this connection.
 

Method Detail

close

public void close()
           throws java.io.IOException
Close the ipc connection.

send

public void send(java.io.Serializable ob)
          throws java.io.IOException
Send the specified object.
Parameters:
ob - The object to send. Must be serializable.
Throws:
java.io.IOException - If the data fails to write to the output stream.

receive

public java.lang.Object receive()
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
An object is received.
Returns:
Object The object received.
Throws:
java.io.IOException - If the data cannot be received.
java.lang.ClassNotFoundException - If the class cannot be re-constituted.

toString

public java.lang.String toString()
Retrieve a unique id for this connection.
Overrides:
toString in class java.lang.Object
Parameters:
String - The unique string id


Copyright � 2002 Macromedia Corporation. All Rights Reserved.