Class ClusterManager

java.lang.Object
io.ebeaninternal.server.cluster.ClusterManager
All Implemented Interfaces:
ServerLookup

public class ClusterManager extends Object implements ServerLookup
Manages the cluster service.
  • Constructor Details

  • Method Details

    • registerServer

      public void registerServer(Database server)
    • getServer

      public Database getServer(String name)
      Description copied from interface: ServerLookup
      Return the EbeanServer instance by name.
      Specified by:
      getServer in interface ServerLookup
    • cacheClearAll

      public void cacheClearAll(String serverName)
      Broadcast a cache clear all event to the cluster.
    • cacheClear

      public void cacheClear(String serverName, Class<?> beanType)
      Broadcast a cache clear event to the cluster.
    • isClustering

      public boolean isClustering()
      Return true if clustering is on.
    • broadcast

      public void broadcast(RemoteTransactionEvent event)
      Send the message headers and payload to every server in the cluster.
    • shutdown

      public void shutdown()
      Shutdown the service and Deregister from the cluster.