Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (44 sloc) 1.64 KB
%%% Copyright 2010 CouchOne, Inc.
%%% Licensed under the Apache License, Version 2.0 (the "License");
%%% you may not use this file except in compliance with the License.
%%% You may obtain a copy of the License at
%%% Unless required by applicable law or agreed to in writing, software
%%% distributed under the License is distributed on an "AS IS" BASIS,
%%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%%% See the License for the specific language governing permissions and
%%% limitations under the License.
-author('Jason Smith <>').
% XXX Development stuff
-export([start/0, version/0]).
-export([t/0, route_request/1]).
% The user-level API
-export([register_balancer/2, register_balancer/3]).
register_balancer(Port, Module) ->
register_balancer(Port, Module, []).
register_balancer(Port, Module, Options) ->
gen_server:call(?MANAGER, {register, Port, Module, Options}).
%% --------------------------------------------------------------------
%% Generic utilities.
%% --------------------------------------------------------------------
%% @spec () -> ok
%% @doc Start applications which exmpp depends on then start exmpp.
start() ->
version() ->
{ok, Version} = application:get_key(somdune, vsn),
% XXX: Development hooks.
t() ->
somdune:register_balancer(15985, somdune).
route_request(Request) ->
error_logger:info_msg("Got request: ~p~n", [Request]),
{route, {"localhost", 5985}}.
% vim: sts=4 sw=4 et
Jump to Line
Something went wrong with that request. Please try again.