add a "node_connect" custom event when a node joins the cluster

Signed-off-by: mountkin <mountkin@gmail.com>
This commit is contained in:
mountkin 2015-01-19 19:27:41 +08:00
parent 34b845efab
commit fda3606be3
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ func (n *Node) connectClient(client dockerclient.Client) error {
// Start monitoring events from the Node.
n.client.StartMonitorEvents(n.handler)
n.emitCustomEvent("node_connect")
return nil
}