slacker.server.cluster
->SlackerClusterServer
(->SlackerClusterServer server service-registry)
Positional factory function for class slacker.server.cluster.SlackerClusterServer.
map->SlackerClusterServer
(map->SlackerClusterServer m__7873__auto__)
Factory function for class slacker.server.cluster.SlackerClusterServer, taking a map of keywords to field values.
publish-ns!
(publish-ns! server the-ns-name)
Publish a namespace to zookeeper. Typicially this is for republish a namespace after unpublish-ns!
or unpublish-all!
.
set-server-data!
(set-server-data! slacker-server data)
Update server data for this server, clients will be notified
start-slacker-server
(start-slacker-server fn-coll port & options)
Start a slacker server to expose all public functions under a namespace. This function is enhanced for cluster support. You can supply a zookeeper instance and a cluster name to the :cluster option to register this server as a node of the cluster.
stop-slacker-server
(stop-slacker-server slacker-server)
Shutdown slacker server, gracefully.
unpublish-all!
(unpublish-all! server)
Unpublish all namespaces on this server. This is helpful when you need graceful shutdown. The client needs some time to receive the offline event so in this period the server still works.
unpublish-ns!
(unpublish-ns! server the-ns-name)
Unpublish a namespace from zookeeper, which means the service under the namespace on this server will be offline from client, while we still have time for remaining requests to finish.