Class Oort.CloudListener

  • All Implemented Interfaces:
    java.util.EventListener, org.cometd.bayeux.Bayeux.BayeuxListener, org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener, org.cometd.bayeux.server.ServerChannel.MessageListener
    Enclosing class:
    Oort

    protected class Oort.CloudListener
    extends java.lang.Object
    implements org.cometd.bayeux.server.ServerChannel.MessageListener

    This listener handles messages sent to /oort/cloud that contains the list of comets connected to the Oort that just joined the cloud.

    For example, if comets A and B are connected, and if comets C and D are connected, when connecting A and C, a message is sent from A to C on /oort/cloud containing the comets connected to A (in this case B). When C receives this message, it knows it has to connect to B also.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener

        org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener.Weak
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CloudListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean onMessage​(org.cometd.bayeux.server.ServerSession from, org.cometd.bayeux.server.ServerChannel channel, org.cometd.bayeux.server.ServerMessage.Mutable message)  
      • Methods inherited from class java.lang.Object

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

      • CloudListener

        protected CloudListener()
    • Method Detail

      • onMessage

        public boolean onMessage​(org.cometd.bayeux.server.ServerSession from,
                                 org.cometd.bayeux.server.ServerChannel channel,
                                 org.cometd.bayeux.server.ServerMessage.Mutable message)
        Specified by:
        onMessage in interface org.cometd.bayeux.server.ServerChannel.MessageListener