Connection
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)[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.
-
static check_conn()[source]
-
static cluster_is_up(conn)[source]
Determine if an H2O cluster is up or not
:param conn: An H2OConnection object containing the IP address and port of the server running H2O.
:return: TRUE if the cluster is up; FALSE otherwise
-
static current_connection()[source]
-
static delete(url_suffix, **kwargs)[source]
-
static get(url_suffix, **kwargs)[source]
-
static get_json(url_suffix, **kwargs)[source]
-
static get_session_id()[source]
-
static ip()[source]
-
static port()[source]
-
static post(url_suffix, file_upload_info=None, **kwargs)[source]
-
static post_json(url_suffix, file_upload_info=None, **kwargs)[source]
-
static rest_version()[source]
-
static session_id()[source]
-
h2o.connection.as_int(the_int)[source]
-
h2o.connection.get_human_readable_size(num)[source]
-
h2o.connection.get_human_readable_time(epochTimeMillis)[source]
-
h2o.connection.is_int(possible_int)[source]