Class RMIFilter

  • All Implemented Interfaces:
    org.atmosphere.cpr.BroadcastFilter, org.atmosphere.cpr.BroadcastFilterLifecycle, org.atmosphere.cpr.ClusterBroadcastFilter

    public class RMIFilter
    extends java.lang.Object
    implements org.atmosphere.cpr.ClusterBroadcastFilter

    This ClusterBroadcastFilter supports broadcasting through RMI in the set of instances composing the cluster.

    Since:
    1.1.1
    Version:
    1.0
    Author:
    Guillaume DROUET
    See Also:
    RMIPeerManager
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.atmosphere.cpr.BroadcastFilter

        org.atmosphere.cpr.BroadcastFilter.BroadcastAction
    • Field Summary

      • Fields inherited from interface org.atmosphere.cpr.BroadcastFilter

        VOID_ATMOSPHERE_RESOURCE_UUID
    • Constructor Summary

      Constructors 
      Constructor Description
      RMIFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      org.atmosphere.cpr.BroadcastFilter.BroadcastAction filter​(java.lang.String broadcasterId, java.lang.Object originalMessage, java.lang.Object message)
      org.atmosphere.cpr.Broadcaster getBroadcaster()
      void init​(org.atmosphere.cpr.AtmosphereConfig config)
      void setBroadcaster​(org.atmosphere.cpr.Broadcaster bc)
      void setUri​(java.lang.String clusterUri)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RMIFilter

        public RMIFilter()
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.atmosphere.cpr.BroadcastFilterLifecycle
      • init

        public void init​(org.atmosphere.cpr.AtmosphereConfig config)
        Specified by:
        init in interface org.atmosphere.cpr.BroadcastFilterLifecycle
      • filter

        public org.atmosphere.cpr.BroadcastFilter.BroadcastAction filter​(java.lang.String broadcasterId,
                                                                         java.lang.Object originalMessage,
                                                                         java.lang.Object message)
        Specified by:
        filter in interface org.atmosphere.cpr.BroadcastFilter
      • getBroadcaster

        public org.atmosphere.cpr.Broadcaster getBroadcaster()
        Specified by:
        getBroadcaster in interface org.atmosphere.cpr.ClusterBroadcastFilter
      • setBroadcaster

        public void setBroadcaster​(org.atmosphere.cpr.Broadcaster bc)
        Specified by:
        setBroadcaster in interface org.atmosphere.cpr.ClusterBroadcastFilter
      • setUri

        public void setUri​(java.lang.String clusterUri)
        Specified by:
        setUri in interface org.atmosphere.cpr.ClusterBroadcastFilter