public final class H2O extends Object
H2O Cloud.| Modifier and Type | Class and Description |
|---|---|
static class |
H2O.ApiIpPortWatchdogThread |
static class |
H2O.Cleaner |
static class |
H2O.FJWThr |
static class |
H2O.FlatFileEntry |
static class |
H2O.H2OCallback<T extends H2O.H2OCountedCompleter> |
static class |
H2O.H2OCountedCompleter<T extends H2O.H2OCountedCompleter> |
static class |
H2O.H2OEmptyCompleter |
static class |
H2O.KeyInfo |
static class |
H2O.KeySnapshot |
static class |
H2O.KVFilter |
static class |
H2O.OptArgs |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<InetAddress> |
calcPrioritizedInetAddressList()
Return a list of internet addresses sorted by importance (most important first).
|
boolean |
contains(H2ONode h2o) |
static String |
DEFAULT_ICE_ROOT() |
static void |
exit(int status)
Notify embedding software instance H2O wants to exit.
|
static RuntimeException |
fail() |
static RuntimeException |
fail(String msg) |
static InetAddress |
findInetAddressForSelf() |
static Value |
get(Key key) |
static AbstractBuildVersion |
getBuildVersion()
Load a h2o build version or return default unknown version
|
static AbstractEmbeddedH2OConfig |
getEmbeddedH2OConfig() |
static Key |
getk(Key key) |
static String |
getVersion() |
static void |
ignore(Throwable e) |
static void |
ignore(Throwable e,
String msg) |
static void |
ignore(Throwable e,
String msg,
boolean printException) |
static boolean |
isHealthy() |
static boolean |
larger(int nnn,
int old) |
H2ONode |
leader() |
static Set<Key> |
localKeySet() |
static void |
main(String[] args) |
int |
nidx(H2ONode h2o) |
static void |
notifyAboutCloudSize(InetAddress ip,
int port,
int size)
Tell the embedding software that this H2O instance belongs to
a cloud of a certain size.
|
static List<H2O.FlatFileEntry> |
parseFlatFile(File f) |
static List<H2O.FlatFileEntry> |
parseFlatFile(InputStream is) |
static HashSet<H2ONode> |
parseFlatFileFromString(String s) |
static void |
printAndLogVersion()
If logging has not been setup yet, then Log.info will only print to stdout.
|
static void |
printHelp() |
static void |
printWarningIfRootOnMac()
We had a report from a user that H2O didn't start properly on MacOS X in a
case where the user was part of the root group.
|
static Value |
putIfAbsent_raw(Key key,
Value val) |
static Value |
putIfMatch(Key key,
Value val,
Value old) |
static Value |
raw_get(Key key) |
static <T extends Throwable> |
setDetailMessage(T t,
String s) |
static void |
setEmbeddedH2OConfig(AbstractEmbeddedH2OConfig c)
Register embedded H2O configuration object with H2O instance.
|
void |
shutdown()
Shutdown itself by sending a shutdown UDP packet.
|
int |
size() |
static int |
store_size() |
static H2O.H2OCountedCompleter |
submitTask(H2O.H2OCountedCompleter task) |
String |
toPrettyString() |
String |
toString() |
static RuntimeException |
unimpl() |
static RuntimeException |
unimpl(String msg) |
static Collection<Value> |
values() |
static void |
waitForCloudSize(int x) |
static void |
waitForCloudSize(int x,
long ms) |
public static volatile AbstractEmbeddedH2OConfig embeddedH2OConfig
public static volatile H2O.ApiIpPortWatchdogThread apiIpPortWatchdog
public static volatile LicenseManager licenseManager
public static String VERSION
public static long START_TIME_MILLIS
public static String NAME
public static int DEFAULT_PORT
public static int UDP_PORT
public static int API_PORT
public static boolean SINGLE_PRECISION
public static int DATA_MAX_FACTOR_LEVELS
public static H2ONode SELF
public static InetAddress SELF_ADDRESS
public static URI ICE_ROOT
public static String[] ARGS
public static final PrintStream OUT
public static final PrintStream ERR
public static final int NUMCPUS
public static volatile H2O CLOUD
public final H2ONode[] _memary
public final int _hash
public final char _idx
public static final String DEBUG_ARG
public static final boolean DEBUG
public static volatile int VOLATILE
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 H2O.OptArgs OPT_ARGS
public static boolean IS_SYSTEM_RUNNING
public static DatagramChannel _udpSocket
public static ServerSocket _apiSocket
public H2O(H2ONode[] h2os, int hash, int idx)
public static String DEFAULT_ICE_ROOT()
public static RuntimeException unimpl(String msg)
public static RuntimeException unimpl()
public static RuntimeException fail()
public static RuntimeException fail(String msg)
public static void ignore(Throwable e)
public static void setEmbeddedH2OConfig(AbstractEmbeddedH2OConfig c)
public static AbstractEmbeddedH2OConfig getEmbeddedH2OConfig()
public static void notifyAboutCloudSize(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 void shutdown()
public static boolean larger(int nnn,
int old)
public static boolean isHealthy()
public final int size()
public final H2ONode leader()
public static void waitForCloudSize(int x)
public static void waitForCloudSize(int x,
long ms)
public int nidx(H2ONode h2o)
public boolean contains(H2ONode h2o)
public String toPrettyString()
public static ArrayList<InetAddress> calcPrioritizedInetAddressList()
public static InetAddress findInetAddressForSelf() throws Error
Errorpublic static Collection<Value> values()
public static int store_size()
public static H2O.H2OCountedCompleter submitTask(H2O.H2OCountedCompleter task)
public static void printHelp()
public static AbstractBuildVersion getBuildVersion()
public static void printAndLogVersion()
public static void printWarningIfRootOnMac()
public static String getVersion()
public static void main(String[] args)
public static List<H2O.FlatFileEntry> parseFlatFile(File f)
public static List<H2O.FlatFileEntry> parseFlatFile(InputStream is)
Copyright © 2013–2014 0xdata. All rights reserved.