forward add_routing_for_appserver
@@ -84,6 +84,8 @@ class AppControllerClient
@conn.add_method("get_node_stats_json", "secret")
@conn.add_method("get_instance_info", "secret")
@conn.add_method("get_request_info", "version_key", "secret")
+ @conn.add_method("add_routing_for_appserver", "version_key", "ip", "port",
+ "secret")
end
@@ -230,4 +232,11 @@ class AppControllerClient
}
end
+ # Adds routing for appserver.
+ def add_routing_for_appserver(version_key, ip, port)
+ make_call(10, RETRY_ON_FAIL, "add_routing_for_appserver") {
+ @conn.add_routing_for_appserver(version_key, ip, port, @secret)
+ }
+ end
+
end
