private static ManagedRestService buildRestService ( Atomix atomix , Namespace namespace ) { final String httpHost = namespace . getString ( "http_host" ) ; final Integer httpPort = namespace . getInt ( "http_port" ) ; return RestService . builder ( ) . withAtomix ( atomix ) . withAddress ( Address . from ( httpHost , httpPort ) ) . build ( ) ; }
Builds a REST service for the given Atomix instance from the given namespace .