Class RMIBroadcastServiceImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.rmi.Remote, RMIBroadcastService

    public class RMIBroadcastServiceImpl
    extends java.rmi.server.UnicastRemoteObject
    implements RMIBroadcastService

    Default implementation of the RMIBroadcastService which can be bound to the RMI registry. It wraps a broadcaster to use when message is received.

    Since:
    1.1.1
    Version:
    1.0
    Author:
    Guillaume DROUET
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.rmi.server.RemoteObject

        ref
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void send​(java.lang.Object message)
      Sends a message to be broadcasted.
      • Methods inherited from class java.rmi.server.UnicastRemoteObject

        clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObject
      • Methods inherited from class java.rmi.server.RemoteServer

        getClientHost, getLog, setLog
      • Methods inherited from class java.rmi.server.RemoteObject

        equals, getRef, hashCode, toString, toStub
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RMIBroadcastServiceImpl

        public RMIBroadcastServiceImpl​(RMIBroadcaster b)
                                throws java.rmi.RemoteException

        Builds a new instance.

        Parameters:
        b - the broadcaster
        Throws:
        java.rmi.RemoteException - if an error occurs remotely
    • Method Detail

      • send

        public void send​(java.lang.Object message)

        Sends a message to be broadcasted.

        Specified by:
        send in interface RMIBroadcastService
        Parameters:
        message - the message