-
Notifications
You must be signed in to change notification settings - Fork 223
/
com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.yml
141 lines (134 loc) · 10.1 KB
/
com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
### YamlMime:JavaType
constructors:
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.MultiShardConnection(ArrayList<Pair<ShardLocation, Connection>> shardConnections)
name: MultiShardConnection(ArrayList<Pair<ShardLocation, Connection>> shardConnections)
nameWithType: MultiShardConnection.MultiShardConnection(ArrayList<Pair<ShardLocation, Connection>> shardConnections)
parameters:
- description: <p>Connections to the shards </p>
name: shardConnections
type: ArrayList<Pair<<xref href="com.microsoft.azure.elasticdb.shard.base.ShardLocation?alt=com.microsoft.azure.elasticdb.shard.base.ShardLocation&text=ShardLocation" data-throw-if-not-resolved="False"/>, Connection>>
summary: >-
<p>Creates an instance of this class. TEST ONLY</p>
<p></p>
syntax: public MultiShardConnection(ArrayList<Pair<ShardLocation, Connection>> shardConnections)
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.MultiShardConnection(ArrayList<Pair<ShardLocation, Connection>>)
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.MultiShardConnection(String connectionString, Shard... shards)
name: MultiShardConnection(String connectionString, Shard... shards)
nameWithType: MultiShardConnection.MultiShardConnection(String connectionString, Shard... shards)
parameters:
- description: <p>These credentials will be used to connect to the Shards. The same credentials are used on all shards. Therefore, all shards need to provide the appropriate permissions for these credentials to execute the command. </p>
name: connectionString
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
- description: <p>The collection of Shards used for this connection instances.</p>
name: shards
type: <xref href="Shard...?alt=Shard...&text=Shard..." data-throw-if-not-resolved="False"/>
summary: >-
<p>Initializes a new instance of the <xref uid="com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection" data-throw-if-not-resolved="false" data-raw-source="MultiShardConnection"></xref> class.</p>
<p>
Multiple Active Result Sets (MARS) are not supported and are disabled for any processing at the shards. </p>
syntax: public MultiShardConnection(String connectionString, Shard... shards)
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.MultiShardConnection(String,Shard...)
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.MultiShardConnection(String connectionString, ShardLocation... shardLocations)
name: MultiShardConnection(String connectionString, ShardLocation... shardLocations)
nameWithType: MultiShardConnection.MultiShardConnection(String connectionString, ShardLocation... shardLocations)
parameters:
- description: <p>These credentials will be used to connect to the Shards. The same credentials are used on all shards. Therefore, all shards need to provide the appropriate permissions for these credentials to execute the command.</p>
name: connectionString
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
- description: <p>The collection of ShardLocations used for this connection instances. </p>
name: shardLocations
type: <xref href="ShardLocation...?alt=ShardLocation...&text=ShardLocation..." data-throw-if-not-resolved="False"/>
summary: >-
<p>Initializes a new instance of the <xref uid="com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection" data-throw-if-not-resolved="false" data-raw-source="MultiShardConnection"></xref> class.</p>
<p>
Multiple Active Result Sets (MARS) are not supported and are disabled for any processing at the shards. </p>
syntax: public MultiShardConnection(String connectionString, ShardLocation... shardLocations)
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.MultiShardConnection(String,ShardLocation...)
fields:
- field:
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.ApplicationNameSuffix
name: ApplicationNameSuffix
nameWithType: MultiShardConnection.ApplicationNameSuffix
summary: <p>The suffix to append to each shard's ApplicationName. Will help with server-side telemetry. </p>
syntax: public static String ApplicationNameSuffix= "ESC_MSQv" + GlobalConstants.MultiShardQueryVersionInfo
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.ApplicationNameSuffix
inheritances:
- <xref href="java.lang.Object" data-throw-if-not-resolved="False"/>
- <xref href="AutoCloseable" data-throw-if-not-resolved="False"/>
methods:
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.close()
name: close()
nameWithType: MultiShardConnection.close()
summary: <p>Releases all resources used by this object. </p>
syntax: public void close()
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.close()
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.closeOpenConnections()
name: closeOpenConnections()
nameWithType: MultiShardConnection.closeOpenConnections()
summary: <p>Closes any open connections to shards. Does a best-effort close and doesn't throw. </p>
syntax: public void closeOpenConnections()
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.closeOpenConnections()
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.createCommand()
name: createCommand()
nameWithType: MultiShardConnection.createCommand()
returns:
description: <p>the <xref uid="com.microsoft.azure.elasticdb.query.multishard.MultiShardStatement" data-throw-if-not-resolved="false" data-raw-source="MultiShardStatement"></xref> with CommandText set to null. </p>
type: <xref href="com.microsoft.azure.elasticdb.query.multishard.MultiShardStatement?alt=com.microsoft.azure.elasticdb.query.multishard.MultiShardStatement&text=MultiShardStatement" data-throw-if-not-resolved="False"/>
summary: >-
<p>Creates and returns a <xref uid="com.microsoft.azure.elasticdb.query.multishard.MultiShardStatement" data-throw-if-not-resolved="false" data-raw-source="MultiShardStatement"></xref> object. The <xref uid="com.microsoft.azure.elasticdb.query.multishard.MultiShardStatement" data-throw-if-not-resolved="false" data-raw-source="MultiShardStatement"></xref> object can then be used to execute a command against all shards specified in the connection.</p>
<p></p>
syntax: public MultiShardStatement createCommand()
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.createCommand()
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.getConnectionString()
name: getConnectionString()
nameWithType: MultiShardConnection.getConnectionString()
returns:
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
summary: <p>Gets the connection string associated with this connection. </p>
syntax: public String getConnectionString()
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.getConnectionString()
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.getShardConnections()
name: getShardConnections()
nameWithType: MultiShardConnection.getShardConnections()
returns:
type: List<Pair<<xref href="com.microsoft.azure.elasticdb.shard.base.ShardLocation?alt=com.microsoft.azure.elasticdb.shard.base.ShardLocation&text=ShardLocation" data-throw-if-not-resolved="False"/>, Connection>>
summary: <p>Gets the collection of ShardLocations and Connections associated with this connection. </p>
syntax: public List<Pair<ShardLocation, Connection>> getShardConnections()
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.getShardConnections()
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.getShardLocations()
name: getShardLocations()
nameWithType: MultiShardConnection.getShardLocations()
returns:
type: List<<xref href="com.microsoft.azure.elasticdb.shard.base.ShardLocation?alt=com.microsoft.azure.elasticdb.shard.base.ShardLocation&text=ShardLocation" data-throw-if-not-resolved="False"/>>
summary: <p>Gets the collection of ShardLocations associated with this connection. </p>
syntax: public List<ShardLocation> getShardLocations()
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.getShardLocations()
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.getShards()
name: getShards()
nameWithType: MultiShardConnection.getShards()
returns:
type: List<<xref href="com.microsoft.azure.elasticdb.shard.base.Shard?alt=com.microsoft.azure.elasticdb.shard.base.Shard&text=Shard" data-throw-if-not-resolved="False"/>>
summary: <p>Gets the collection of Shards associated with this connection. </p>
syntax: public List<Shard> getShards()
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.getShards()
- fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.isClosed()
name: isClosed()
nameWithType: MultiShardConnection.isClosed()
returns:
description: <p>true if open, false if closed. </p>
type: <xref href="boolean?alt=boolean&text=boolean" data-throw-if-not-resolved="False"/>
summary: >-
<p>Check if connection is closed or not.</p>
<p></p>
syntax: public boolean isClosed()
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection.isClosed()
nameWithType: MultiShardConnection
syntax: public class MultiShardConnection
type: class
uid: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection
fullName: com.microsoft.azure.elasticdb.query.multishard.MultiShardConnection
name: MultiShardConnection
package: com.microsoft.azure.elasticdb.query.multishard
summary: '<p>Represents a connection to a set of shards and provides the ability to process queries across the shard set. Purpose: Creates connections to the given set of shards and governs their lifetime Notes: This class is NOT thread-safe. </p>'
metadata: {}