public final class H2O
extends java.lang.Object
H2O
Cloud.Modifier and Type | Class and Description |
---|---|
static class |
H2O.FJWThr |
static class |
H2O.GAStartupReportThread |
static class |
H2O.H2OCallback<T extends H2O.H2OCountedCompleter> |
static class |
H2O.H2OCountedCompleter<T extends H2O.H2OCountedCompleter>
Simple wrapper over F/J
CountedCompleter to support priority
queues. |
static class |
H2O.H2OFuture<T> |
static class |
H2O.OptArgs
A class containing all of the arguments for H2O.
|
Modifier and Type | Field and Description |
---|---|
H2ONode[] |
_memary |
static AbstractBuildVersion |
ABV |
static byte |
ACK_ACK_PRIORITY |
static byte |
ACK_PRIORITY |
static int |
API_PORT |
static H2O.OptArgs |
ARGS
Singleton ARGS instance that contains the processed arguments.
|
static byte |
ATOMIC_PRIORITY |
static int |
CLIENT_TYPE_GA_CUST_DIM |
static H2O |
CLOUD |
static java.net.InetAddress |
CLOUD_MULTICAST_GROUP |
static java.net.NetworkInterface |
CLOUD_MULTICAST_IF |
static int |
CLOUD_MULTICAST_PORT |
static java.net.MulticastSocket |
CLOUD_MULTICAST_SOCKET |
static long |
CLUSTER_ID |
static byte |
DESERIAL_PRIORITY |
static AbstractEmbeddedH2OConfig |
embeddedH2OConfig |
static byte |
FETCH_ACK_PRIORITY |
static com.brsanthu.googleanalytics.GoogleAnalytics |
GA |
static byte |
GET_KEY_PRIORITY |
static byte |
GUI_PRIORITY |
static int |
H2O_PORT |
static java.net.URI |
ICE_ROOT |
static byte |
INVALIDATE_PRIORITY |
static byte |
MAX_PRIORITY |
static byte |
MIN_HI_PRIORITY |
static byte |
MIN_PRIORITY |
static int |
NUMCPUS |
static long |
PID |
static byte |
PUT_KEY_PRIORITY |
static H2ONode |
SELF |
static java.net.InetAddress |
SELF_ADDRESS |
static java.util.concurrent.atomic.AtomicLong |
START_TIME_MILLIS |
static java.util.HashSet<H2ONode> |
STATIC_H2OS |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsKey(Key key) |
static java.lang.String |
DEFAULT_FLOW_DIR() |
static java.lang.String |
DEFAULT_ICE_ROOT() |
static void |
die(java.lang.String s) |
static void |
exit(int status)
Notify embedding software instance H2O wants to exit.
|
static H2OFailException |
fail() |
static H2OFailException |
fail(java.lang.String msg) |
static H2OFailException |
fail(java.lang.String msg,
java.lang.Throwable cause)
H2O.fail is intended to be used in code where something should never happen, and if
it does it's a coding error that needs to be addressed immediately.
|
static java.lang.Runnable |
finalizeRegistration()
Start the web service; disallow future URL registration.
|
static void |
gc()
Run System.gc() on every node in the H2O cluster.
|
static Value |
get(Key key) |
static int |
getCloudSize() |
static AbstractEmbeddedH2OConfig |
getEmbeddedH2OConfig() |
static java.lang.String |
getIpPortString() |
static NodePersistentStorage |
getNPS() |
static PersistManager |
getPM() |
static boolean |
getShutdownRequested() |
static void |
joinOthers() |
static java.util.Set<Key> |
localKeySet() |
static void |
main(java.lang.String[] args) |
H2ONode[] |
members() |
long |
memsz() |
static void |
notifyAboutCloudSize(java.net.InetAddress ip,
int port,
int size)
Tell the embedding software that this H2O instance belongs to
a cloud of a certain size.
|
static Value |
putIfMatch(Key key,
Value val,
Value old) |
static void |
raw_clear() |
static Value |
raw_get(Key key) |
static void |
raw_remove(Key key) |
static void |
registerGET(java.lang.String url_pattern,
java.lang.Class hclass,
java.lang.String hmeth,
java.lang.String base_url,
java.lang.String label,
java.lang.String menu,
java.lang.String summary) |
static void |
registerPOST(java.lang.String url_pattern,
java.lang.Class hclass,
java.lang.String hmeth,
java.lang.String summary) |
static void |
registerResourceRoot(java.io.File f) |
static void |
requestShutdown() |
static void |
setEmbeddedH2OConfig(AbstractEmbeddedH2OConfig c)
Register embedded H2O configuration object with H2O instance.
|
static void |
shutdown(int status)
Cluster shutdown itself by sending a shutdown UDP packet.
|
int |
size() |
static int |
store_size() |
static java.lang.String |
STOREtoString() |
static H2O.H2OCountedCompleter |
submitTask(H2O.H2OCountedCompleter task) |
java.lang.String |
toString() |
static H2OIllegalArgumentException |
unimpl()
Throw an exception that will cause the request to fail, but the cluster to continue.
|
static H2OIllegalArgumentException |
unimpl(java.lang.String msg)
Throw an exception that will cause the request to fail, but the cluster to continue.
|
static void |
waitForCloudSize(int x,
long ms) |
public static final H2O.OptArgs ARGS
public static com.brsanthu.googleanalytics.GoogleAnalytics GA
public static int CLIENT_TYPE_GA_CUST_DIM
public static volatile AbstractEmbeddedH2OConfig embeddedH2OConfig
public static final AbstractBuildVersion ABV
public static final java.util.concurrent.atomic.AtomicLong START_TIME_MILLIS
public static final int NUMCPUS
public static long PID
public static final byte MAX_PRIORITY
public static final byte ACK_ACK_PRIORITY
public static final byte FETCH_ACK_PRIORITY
public static final byte ACK_PRIORITY
public static final byte DESERIAL_PRIORITY
public static final byte INVALIDATE_PRIORITY
public static final byte GET_KEY_PRIORITY
public static final byte PUT_KEY_PRIORITY
public static final byte ATOMIC_PRIORITY
public static final byte GUI_PRIORITY
public static final byte MIN_HI_PRIORITY
public static final byte MIN_PRIORITY
public static int H2O_PORT
public static int API_PORT
public static java.net.MulticastSocket CLOUD_MULTICAST_SOCKET
public static java.net.NetworkInterface CLOUD_MULTICAST_IF
public static java.net.InetAddress CLOUD_MULTICAST_GROUP
public static int CLOUD_MULTICAST_PORT
public static H2ONode SELF
public static java.net.InetAddress SELF_ADDRESS
public static java.net.URI ICE_ROOT
public static java.util.HashSet<H2ONode> STATIC_H2OS
public static final long CLUSTER_ID
public static volatile H2O CLOUD
public final H2ONode[] _memary
public static void setEmbeddedH2OConfig(AbstractEmbeddedH2OConfig c)
public static AbstractEmbeddedH2OConfig getEmbeddedH2OConfig()
public static void notifyAboutCloudSize(java.net.InetAddress ip, int port, int size)
ip
- IP address this H2O can be reached at.port
- Port this H2O can be reached at (for REST API and browser).size
- Number of H2O instances in the cloud.public static void exit(int status)
status
- H2O's requested process exit value.public static void shutdown(int status)
public static void requestShutdown()
public static boolean getShutdownRequested()
public static H2OIllegalArgumentException unimpl()
fail(String, Throwable)
public static H2OIllegalArgumentException unimpl(java.lang.String msg)
unimpl(String)
,
fail(String, Throwable)
public static H2OFailException fail(java.lang.String msg, java.lang.Throwable cause)
It should *not* be used when only the single request should fail, it should *only* be used if the error means that someone needs to go add some code right away.
msg
- Message to Log.fatal()cause
- Optional cause exception to Log.fatal()public static H2OFailException fail()
fail(String, Throwable)
public static H2OFailException fail(java.lang.String msg)
fail(String, Throwable)
public static H2O.H2OCountedCompleter submitTask(H2O.H2OCountedCompleter task)
public static java.lang.String getIpPortString()
public static java.lang.String DEFAULT_ICE_ROOT()
public static java.lang.String DEFAULT_FLOW_DIR()
public static void registerGET(java.lang.String url_pattern, java.lang.Class hclass, java.lang.String hmeth, java.lang.String base_url, java.lang.String label, java.lang.String menu, java.lang.String summary)
public static void registerPOST(java.lang.String url_pattern, java.lang.Class hclass, java.lang.String hmeth, java.lang.String summary)
public static void registerResourceRoot(java.io.File f)
public static java.lang.Runnable finalizeRegistration()
public final int size()
public java.lang.String toString()
toString
in class java.lang.Object
public H2ONode[] members()
public long memsz()
public static void waitForCloudSize(int x, long ms)
public static int getCloudSize()
public static void joinOthers()
public static boolean containsKey(Key key)
public static void raw_remove(Key key)
public static void raw_clear()
public static java.util.Set<Key> localKeySet()
public static int store_size()
public static java.lang.String STOREtoString()
public static PersistManager getPM()
public static NodePersistentStorage getNPS()
public static void gc()
public static void main(java.lang.String[] args)
public static void die(java.lang.String s)