Package net.sf.basedb.opengrid.json
Class JSONOption
java.lang.Object
net.sf.basedb.opengrid.json.JSONOption
public class JSONOption extends Object
Define individual options that can be enabled when
returning data in JSON format.
- Since:
- 1.0
- Author:
- nicklas
-
Field Summary
Fields Modifier and Type Field Description static JSONOption
CLUSTER_INFO
Include the Open Grid cluster information fromOpenGridCluster.getClusterInfo()
when callingOpenGridCluster.asJSONObject(JSONOptions)
.static JSONOption
CONNECTION_PASSWORD
Returns the connection password when callingConnectionInfo.asJSONObject(JSONOptions)
.static JSONOption
CUSTOM_OPTIONS
Include the custom configuration options when callingClusterConfig.asJSONObject(JSONOptions)
.static JSONOption
JOBAGENT_INFO
Inlcude job agent information from the BASE database when callingClusterConfig.asJSONObject(JSONOptions)
.private String
name
static JSONOption
NODE_INFO
Inlcude the node information when callingClusterConfig.asJSONObject(JSONOptions)
.static JSONOption
PRIVATE_KEY
Returns the private key information (including password) when callingConnectionInfo.asJSONObject(JSONOptions)
. -
Constructor Summary
Constructors Constructor Description JSONOption(String name)
-
Method Summary
-
Field Details
-
CONNECTION_PASSWORD
Returns the connection password when callingConnectionInfo.asJSONObject(JSONOptions)
. -
PRIVATE_KEY
Returns the private key information (including password) when callingConnectionInfo.asJSONObject(JSONOptions)
.- Since:
- 1.2
-
CLUSTER_INFO
Include the Open Grid cluster information fromOpenGridCluster.getClusterInfo()
when callingOpenGridCluster.asJSONObject(JSONOptions)
. -
CUSTOM_OPTIONS
Include the custom configuration options when callingClusterConfig.asJSONObject(JSONOptions)
.- Since:
- 1.7
-
NODE_INFO
Inlcude the node information when callingClusterConfig.asJSONObject(JSONOptions)
. -
JOBAGENT_INFO
Inlcude job agent information from the BASE database when callingClusterConfig.asJSONObject(JSONOptions)
. This option is ignored unless aDbControl
has been set on theJSONOptions
instance. -
name
-
-
Constructor Details
-
JSONOption
-
-
Method Details