org.sapia.ubik.rmi.server.transport.udp
Class UdpRmiConnection

java.lang.Object
  extended by org.sapia.ubik.net.udp.UDPConnection
      extended by org.sapia.ubik.rmi.server.transport.udp.UdpRmiConnection
All Implemented Interfaces:
Connection, RmiConnection

public class UdpRmiConnection
extends UDPConnection
implements RmiConnection

Author:
Yanick Duchesne 17-Jun-2003

Nested Class Summary
static class UdpRmiConnection.UdpObjectStreamFactory
           
 
Field Summary
 
Fields inherited from class org.sapia.ubik.net.udp.UDPConnection
_bufsz
 
Constructor Summary
UdpRmiConnection(java.net.DatagramSocket localServer, java.net.DatagramPacket pack, int bufsz, int timeout)
          Constructor for UdpRmiConnection.
UdpRmiConnection(UDPServerAddress addr, int bufsz, int timeout)
          Constructor for UdpRmiConnection.
 
Method Summary
protected  ObjectStreamFactory getFactory()
           
 void send(java.lang.Object o, VmId associated, java.lang.String transportType)
           
 
Methods inherited from class org.sapia.ubik.net.udp.UDPConnection
close, getServerAddress, receive, send, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sapia.ubik.net.Connection
close, getServerAddress, receive, send
 

Constructor Detail

UdpRmiConnection

public UdpRmiConnection(UDPServerAddress addr,
                        int bufsz,
                        int timeout)
Constructor for UdpRmiConnection.

Parameters:
addr -
bufsz -
timeout -

UdpRmiConnection

public UdpRmiConnection(java.net.DatagramSocket localServer,
                        java.net.DatagramPacket pack,
                        int bufsz,
                        int timeout)
Constructor for UdpRmiConnection.

Parameters:
localServer -
pack -
bufsz -
timeout -
Method Detail

send

public void send(java.lang.Object o,
                 VmId associated,
                 java.lang.String transportType)
          throws java.io.IOException,
                 java.rmi.RemoteException
Specified by:
send in interface RmiConnection
Throws:
java.io.IOException
java.rmi.RemoteException
See Also:
RmiConnection.send(Object, VmId, String)

getFactory

protected ObjectStreamFactory getFactory()
Overrides:
getFactory in class UDPConnection
See Also:
UDPConnection.getFactory()


Copyright © 2010 Sapia OSS. All Rights Reserved.