java.lang.Object
io.ebeaninternal.server.cluster.ClusterManager
- All Implemented Interfaces:
ServerLookup
Manages the cluster service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcast(RemoteTransactionEvent event) Send the message headers and payload to every server in the cluster.voidcacheClear(String serverName, Class<?> beanType) Broadcast a cache clear event to the cluster.voidcacheClearAll(String serverName) Broadcast a cache clear all event to the cluster.Return the EbeanServer instance by name.booleanReturn true if clustering is on.voidregisterServer(Database server) voidshutdown()Shutdown the service and Deregister from the cluster.
-
Constructor Details
-
ClusterManager
-
-
Method Details
-
registerServer
-
getServer
Description copied from interface:ServerLookupReturn the EbeanServer instance by name.- Specified by:
getServerin interfaceServerLookup
-
cacheClearAll
Broadcast a cache clear all event to the cluster. -
cacheClear
Broadcast a cache clear event to the cluster. -
isClustering
public boolean isClustering()Return true if clustering is on. -
broadcast
Send the message headers and payload to every server in the cluster. -
shutdown
public void shutdown()Shutdown the service and Deregister from the cluster.
-