REST Interface¶
An H2OConnection represents the latest active handle to a cloud. No more than a single H2OConnection object will be active at any one time.
- class h2o.connection.H2OConnection(ip='localhost', port=54321, size=1, start_h2o=False, enable_assertions=False, license=None, max_mem_size_GB=None, min_mem_size_GB=None, ice_root=None, strict_version_check=True, proxies=None)[source]¶
Bases: object
H2OConnection is a class that represents a connection to the H2O cluster. It is specified by an IP address and a port number.
Objects of type H2OConnection are not instantiated directly!
This class contains static methods for performing the common REST methods GET, POST, and DELETE.
Methods
check_conn() cluster_is_up(conn) Determine if an H2O cluster is up or not current_connection() delete(url_suffix, **kwargs) get(url_suffix, **kwargs) get_json(url_suffix, **kwargs) ip() jar_paths() make_url(url_suffix, **kwargs) port() post(url_suffix[, file_upload_info]) post_json(url_suffix[, file_upload_info]) proxies() rest_ctr() rest_version() session_id()