Constructor
new ExecutionProfile(name, optionsopt)
Creates a new instance of ExecutionProfile.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
String | Name of the execution profile.
Use |
|||||||||||||||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
Profile options, when any of the options is not specified the DseClient will the
default profile
Properties
|
Example
const client = new dse.DseClient({
contactPoints: ['host1', 'host2'],
profiles: [
new ExecutionProfile('metrics-oltp', {
consistency: consistency.localQuorum,
retry: myRetryPolicy
})
]
});
client.execute(query, params, { executionProfile: 'metrics-oltp' }, callback);
Members
consistency :Number
Consistency level.
Type:
- Number
graphOptions :Object
The graph options for this profile.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
name |
String | The graph name. |
readConsistency |
String | The consistency to use for graph write queries. |
source |
String | The graph traversal source. |
writeConsistency |
String | The consistency to use for graph write queries. |
loadBalancing :LoadBalancingPolicy
Load-balancing policy.
Type:
- LoadBalancingPolicy
name :String
Name of the execution profile.
Type:
- String
readTimeout :Number
Client per host read timeout.
Type:
- Number
retry :RetryPolicy
Retry policy.
Type:
- RetryPolicy
serialConsistency :Number
Serial consistency level.
Type:
- Number