public class GridHubConfiguration extends GridConfiguration
Modifier and Type | Class and Description |
---|---|
protected static class |
GridHubConfiguration.CapabilityMatcherAdapter |
protected static class |
GridHubConfiguration.PrioritizerAdapter |
protected static class |
GridHubConfiguration.SimpleClassNameAdapter<T> |
Modifier and Type | Field and Description |
---|---|
CapabilityMatcher |
capabilityMatcher
Capability matcher to use.
|
static java.lang.String |
DEFAULT_HUB_CONFIG_FILE |
java.lang.String |
hubConfig
Hub specific json config file to use.
|
java.lang.Integer |
newSessionWaitTimeout
Timeout for new session requests.
|
Prioritizer |
prioritizer
Prioritizer for new honoring session requests based on some priority.
|
java.lang.String |
registry |
java.lang.Boolean |
throwOnCapabilityNotPresent
Whether to throw an Exception when there are no capabilities available that match the request.
|
cleanUpCycle, custom, host, maxSession, servlets, withoutServlets
browserTimeout, debug, DEFAULT_STANDALONE_CONFIG_FILE, jettyMaxThreads, log, port, role, timeout
Constructor and Description |
---|
GridHubConfiguration()
Creates a new configuration using the default values.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addJsonTypeAdapter(com.google.gson.GsonBuilder builder) |
static GridHubConfiguration |
loadFromJSON(com.google.gson.JsonObject json) |
static GridHubConfiguration |
loadFromJSON(java.lang.String filePath) |
void |
merge(GridHubConfiguration other)
Merge this configuration with the specified
GridHubConfiguration |
void |
merge(GridNodeConfiguration other)
Merge this configuration with the specified
GridNodeConfiguration |
protected static void |
staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder) |
java.lang.String |
toString(java.lang.String format) |
isWithOutServlet, merge
isMergeAble, loadJSONFromResourceOrFile, merge, toJson, toString, toString
public static final java.lang.String DEFAULT_HUB_CONFIG_FILE
public java.lang.String hubConfig
null
.@Expose public CapabilityMatcher capabilityMatcher
DefaultCapabilityMatcher
@Expose public java.lang.Integer newSessionWaitTimeout
@Expose public Prioritizer prioritizer
null
.@Expose public java.lang.Boolean throwOnCapabilityNotPresent
true
.@Expose public java.lang.String registry
public GridHubConfiguration()
public static GridHubConfiguration loadFromJSON(java.lang.String filePath)
filePath
- hub config json file to load configuration frompublic static GridHubConfiguration loadFromJSON(com.google.gson.JsonObject json)
json
- JsonObject to load configuration frompublic void merge(GridNodeConfiguration other)
GridNodeConfiguration
other
- public void merge(GridHubConfiguration other)
GridHubConfiguration
other
- public java.lang.String toString(java.lang.String format)
toString
in class GridConfiguration
protected void addJsonTypeAdapter(com.google.gson.GsonBuilder builder)
addJsonTypeAdapter
in class StandaloneConfiguration
protected static void staticAddJsonTypeAdapter(com.google.gson.GsonBuilder builder)