Class NullNetwork

java.lang.Object
com.yahoo.messagebus.shared.NullNetwork
All Implemented Interfaces:
com.yahoo.messagebus.network.Network

public class NullNetwork extends Object implements com.yahoo.messagebus.network.Network

Used by SharedMessageBus as a network when the container runs in LocalApplication with no network services.

Author:
Vegard Havdal
  • Constructor Details

    • NullNetwork

      public NullNetwork()
  • Method Details

    • waitUntilReady

      public boolean waitUntilReady(double seconds)
      Specified by:
      waitUntilReady in interface com.yahoo.messagebus.network.Network
    • attach

      public void attach(com.yahoo.messagebus.network.NetworkOwner owner)
      Specified by:
      attach in interface com.yahoo.messagebus.network.Network
    • registerSession

      public void registerSession(String session)
      Specified by:
      registerSession in interface com.yahoo.messagebus.network.Network
    • unregisterSession

      public void unregisterSession(String session)
      Specified by:
      unregisterSession in interface com.yahoo.messagebus.network.Network
    • allocServiceAddress

      public boolean allocServiceAddress(com.yahoo.messagebus.routing.RoutingNode recipient)
      Specified by:
      allocServiceAddress in interface com.yahoo.messagebus.network.Network
    • freeServiceAddress

      public void freeServiceAddress(com.yahoo.messagebus.routing.RoutingNode recipient)
      Specified by:
      freeServiceAddress in interface com.yahoo.messagebus.network.Network
    • send

      public void send(com.yahoo.messagebus.Message msg, List<com.yahoo.messagebus.routing.RoutingNode> recipients)
      Specified by:
      send in interface com.yahoo.messagebus.network.Network
    • sync

      public void sync()
      Specified by:
      sync in interface com.yahoo.messagebus.network.Network
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface com.yahoo.messagebus.network.Network
    • getConnectionSpec

      public String getConnectionSpec()
      Specified by:
      getConnectionSpec in interface com.yahoo.messagebus.network.Network
    • getMirror

      public com.yahoo.jrt.slobrok.api.IMirror getMirror()
      Specified by:
      getMirror in interface com.yahoo.messagebus.network.Network