-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/os/5.1' of https://github.com/corda/corda-api i…
…nto nandor/CORE-17430/extra-column-backchain
- Loading branch information
Showing
14 changed files
with
110 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
data/config-schema/src/main/java/net/corda/schema/configuration/StateManagerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package net.corda.schema.configuration; | ||
|
||
/** | ||
* Configuration keys to access public parts of the configuration under the {@code corda.stateManager} key. | ||
*/ | ||
public final class StateManagerConfig { | ||
private StateManagerConfig() { | ||
} | ||
|
||
public static final String STATE_MANAGER = "stateManager"; | ||
|
||
public static final String TYPE = "type"; | ||
|
||
// Database Configuration Values | ||
public static final class Database { | ||
public static final String DB_PROPERTIES = "database"; | ||
public static final String JDBC_USER = DB_PROPERTIES + ".user"; | ||
public static final String JDBC_PASS = DB_PROPERTIES + ".pass"; | ||
|
||
public static final String JDBC_URL = DB_PROPERTIES + ".jdbc.url"; | ||
public static final String JDBC_DRIVER = DB_PROPERTIES + ".jdbc.driver"; | ||
public static final String JDBC_DRIVER_DIRECTORY = DB_PROPERTIES + ".jdbc.directory"; | ||
public static final String JDBC_POOL_MAX_SIZE = DB_PROPERTIES + ".pool.maxSize"; | ||
public static final String JDBC_POOL_MIN_SIZE = DB_PROPERTIES + ".pool.minSize"; | ||
public static final String JDBC_POOL_IDLE_TIMEOUT_SECONDS = DB_PROPERTIES + ".pool.idleTimeoutSeconds"; | ||
public static final String JDBC_POOL_MAX_LIFETIME_SECONDS = DB_PROPERTIES + ".pool.maxLifetimeSeconds"; | ||
public static final String JDBC_POOL_KEEP_ALIVE_TIME_SECONDS = DB_PROPERTIES + ".pool.keepAliveTimeSeconds"; | ||
public static final String JDBC_POOL_VALIDATION_TIMEOUT_SECONDS = DB_PROPERTIES + ".pool.validationTimeoutSeconds"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...rc/main/resources/net/corda/schema/configuration/stateManager/1.0/corda.stateManager.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://corda.r3.com/net/corda/schema/configuration/stateManager/1.0/corda.stateManager.json", | ||
"title": "Corda State Manager Configuration Schema", | ||
"description": "Configuration schema for the State Manager section. This configures the interactions of the workers with the underlying persistent storage used by the out of process State Manager.", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"description": "The type of state manager implementation.", | ||
"enum": [ | ||
"DATABASE" | ||
] | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"$comment": "Polymorphic state manager storage connection configuration. The valid section depends on which state manager implementation is in use.", | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"properties": { | ||
"type": { | ||
"const": "DATABASE" | ||
} | ||
}, | ||
"required": [ | ||
"type" | ||
] | ||
}, | ||
"then": { | ||
"properties": { | ||
"databaseProperties": { | ||
"description": "Settings to connect to the State Manager Database.", | ||
"$ref": "stateManager-db-properties.json" | ||
} | ||
}, | ||
"required": [ | ||
"type", | ||
"databaseProperties" | ||
] | ||
} | ||
} | ||
], | ||
"additionalProperties": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters