org.exolab.core.ipc
Interface IpcIfc

All Known Implementing Classes:
HttpClient, ObjectChannel, TcpService

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:
TcpService, Client, 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

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

Throws:
java.io.IOException

send

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

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

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 © 1999-2012 The Exolab Group. All Rights Reserved.