Openwings API Documentation (v1.1)

net.openwings.connector
Interface ReceiverProxy

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ProviderProxy, SubscriberProxy

public interface ReceiverProxy
extends java.io.Serializable

This class contains the methods that are to be implemented by a service's receiver proxy. These methods provide a standard interface for initializing, connecting, disconnecting, event handling, and communicating through an arbitrary transport protocol with a SenderProxy. This interface also provides a standardization that can be used by generators for specific protocols to generate a receiver proxy for a given interface.


Method Summary
 void connect()
          This method connects the ReceiverProxy to the network.
 void disconnect()
          This method disconnects the ReceiverProxy from the network.
 void setServiceImpl(java.lang.Object serviceImpl)
          This method is used to set the service implementation of the ReceiverProxy
 

Method Detail

setServiceImpl

public void setServiceImpl(java.lang.Object serviceImpl)
                    throws java.rmi.RemoteException
This method is used to set the service implementation of the ReceiverProxy

Parameters:
serviceImpl - the service implementation for the ReceiverProxy
Throws:
java.rmi.RemoteException - if an exception occurs. This should never happen.

connect

public void connect()
             throws java.rmi.RemoteException
This method connects the ReceiverProxy to the network. This call will make the service available to eligible SenderProxies.

Throws:
java.rmi.RemoteException - if an exception occurs when attempting to connect.

disconnect

public void disconnect()
                throws java.rmi.RemoteException
This method disconnects the ReceiverProxy from the network. This call will make the service unavailable to SenderProxies.

Throws:
java.rmi.RemoteException - if an exception occurs when attempting to disconnect.

Openwings API Documentation (v1.1)