-
Notifications
You must be signed in to change notification settings - Fork 244
/
microsoft.servicefabric.services.runtime.StatefulServiceBase.yml
259 lines (240 loc) · 19.6 KB
/
microsoft.servicefabric.services.runtime.StatefulServiceBase.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
### YamlMime:JavaType
constructors:
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.StatefulServiceBase(StatefulServiceContext serviceContext, StateProviderReplica stateProviderReplica)
name: StatefulServiceBase(StatefulServiceContext serviceContext, StateProviderReplica stateProviderReplica)
nameWithType: StatefulServiceBase.StatefulServiceBase(StatefulServiceContext serviceContext, StateProviderReplica stateProviderReplica)
parameters:
- description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="StatefulServiceContext"></xref> that describes the service context. </p>
name: serviceContext
type: <xref href="system.fabric.StatefulServiceContext?alt=system.fabric.StatefulServiceContext&text=StatefulServiceContext" data-throw-if-not-resolved="False"/>
- description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="StateProviderReplica"></xref> that represents a reliable state provider replica. </p>
name: stateProviderReplica
type: <xref href="microsoft.servicefabric.data.StateProviderReplica?alt=microsoft.servicefabric.data.StateProviderReplica&text=StateProviderReplica" data-throw-if-not-resolved="False"/>
summary: >-
<p>Creates a new StatefulService.</p>
<p></p>
syntax: protected StatefulServiceBase(StatefulServiceContext serviceContext, StateProviderReplica stateProviderReplica)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.StatefulServiceBase(StatefulServiceContext,StateProviderReplica)
inheritances:
- <xref href="java.lang.Object" data-throw-if-not-resolved="False"/>
methods:
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.backupAsync(BackupDescription backupDescription)
name: backupAsync(BackupDescription backupDescription)
nameWithType: StatefulServiceBase.backupAsync(BackupDescription backupDescription)
parameters:
- description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="BackupDescription"></xref> describing the backup request. </p>
name: backupDescription
type: <xref href="microsoft.servicefabric.data.BackupDescription?alt=microsoft.servicefabric.data.BackupDescription&text=BackupDescription" data-throw-if-not-resolved="False"/>
returns:
description: <p>Task that represents the asynchronous backup operation. </p>
type: <xref href="CompletableFuture%3C%3F%3E?alt=CompletableFuture%3C%3F%3E&text=CompletableFuture%3C%3F%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>Performs a backup of all reliable state managed by this <xref uid="microsoft.servicefabric.services.runtime.StatefulServiceBase" data-throw-if-not-resolved="false" data-raw-source="StatefulServiceBase"></xref>.</p>
<p></p>
syntax: public CompletableFuture<?> backupAsync(BackupDescription backupDescription)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.backupAsync(BackupDescription)
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.backupAsync(BackupDescription backupDescription, Duration timeout, CancellationToken cancellationToken)
name: backupAsync(BackupDescription backupDescription, Duration timeout, CancellationToken cancellationToken)
nameWithType: StatefulServiceBase.backupAsync(BackupDescription backupDescription, Duration timeout, CancellationToken cancellationToken)
parameters:
- description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="BackupDescription"></xref> describing the backup request. </p>
name: backupDescription
type: <xref href="microsoft.servicefabric.data.BackupDescription?alt=microsoft.servicefabric.data.BackupDescription&text=BackupDescription" data-throw-if-not-resolved="False"/>
- description: <p>The timeout for this operation. </p>
name: timeout
type: <xref href="Duration?alt=Duration&text=Duration" data-throw-if-not-resolved="False"/>
- description: <p>The token to monitor for cancellation requests. </p>
name: cancellationToken
type: <xref href="system.fabric.CancellationToken?alt=system.fabric.CancellationToken&text=CancellationToken" data-throw-if-not-resolved="False"/>
returns:
description: <p>Task that represents the asynchronous backup operation. </p>
type: <xref href="CompletableFuture%3C%3F%3E?alt=CompletableFuture%3C%3F%3E&text=CompletableFuture%3C%3F%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>Performs a backup of all reliable state managed by this <xref uid="microsoft.servicefabric.services.runtime.StatefulServiceBase" data-throw-if-not-resolved="false" data-raw-source="StatefulServiceBase"></xref>.</p>
<p></p>
syntax: public CompletableFuture<?> backupAsync(BackupDescription backupDescription, Duration timeout, CancellationToken cancellationToken)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.backupAsync(BackupDescription,Duration,CancellationToken)
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.createServiceReplicaListeners()
name: createServiceReplicaListeners()
nameWithType: StatefulServiceBase.createServiceReplicaListeners()
returns:
description: <p>List of ServiceReplicaListeners </p>
type: List<<xref href="microsoft.servicefabric.services.communication.runtime.ServiceReplicaListener?alt=microsoft.servicefabric.services.communication.runtime.ServiceReplicaListener&text=ServiceReplicaListener" data-throw-if-not-resolved="False"/>>
summary: >-
<p>Override this method to supply the communication listeners for the service replica. The endpoints returned by the communication listener's are stored as a JSON string of ListenerName, Endpoint string pairs like {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}</p>
<p></p>
syntax: protected List<ServiceReplicaListener> createServiceReplicaListeners()
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.createServiceReplicaListeners()
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.getAddresses()
name: getAddresses()
nameWithType: StatefulServiceBase.getAddresses()
returns:
description: <p>An <xref uid="" data-throw-if-not-resolved="false" data-raw-source="Map"></xref> containing list of addresses as (ListenerName, Endpoint) key-value pair. </p>
type: <xref href="Map%3CString%2C+String%3E?alt=Map%3CString%2C+String%3E&text=Map%3CString%2C+String%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>Gets list of all the addresses for this service replica as (ListenerName, Endpoint) key-value pair.</p>
<p></p>
syntax: protected Map<String, String> getAddresses()
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.getAddresses()
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.getPartition()
name: getPartition()
nameWithType: StatefulServiceBase.getPartition()
returns:
description: <p>An <xref uid="" data-throw-if-not-resolved="false" data-raw-source="StatefulServicePartition"></xref> that represents the partition to which this service replica belongs. </p>
type: <xref href="system.fabric.StatefulServicePartition?alt=system.fabric.StatefulServicePartition&text=StatefulServicePartition" data-throw-if-not-resolved="False"/>
summary: >-
<p>Service partition to which current service replica belongs.</p>
<p></p>
syntax: protected StatefulServicePartition getPartition()
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.getPartition()
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.getServiceContext()
name: getServiceContext()
nameWithType: StatefulServiceBase.getServiceContext()
returns:
description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="StatefulServiceContext"></xref> that describes the service context. </p>
type: <xref href="system.fabric.StatefulServiceContext?alt=system.fabric.StatefulServiceContext&text=StatefulServiceContext" data-throw-if-not-resolved="False"/>
summary: >-
<p>Gets the service context that this stateful service is operating under. It provides information like ReplicaId, PartitionId, ServiceName etc.</p>
<p></p>
syntax: public StatefulServiceContext getServiceContext()
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.getServiceContext()
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.getStateProviderReplica()
name: getStateProviderReplica()
nameWithType: StatefulServiceBase.getStateProviderReplica()
returns:
type: <xref href="microsoft.servicefabric.data.StateProviderReplica?alt=microsoft.servicefabric.data.StateProviderReplica&text=StateProviderReplica" data-throw-if-not-resolved="False"/>
syntax: protected StateProviderReplica getStateProviderReplica()
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.getStateProviderReplica()
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.onAbort()
name: onAbort()
nameWithType: StatefulServiceBase.onAbort()
summary: <p>Notification that the service is being aborted. RunAsync MAY be running concurrently with the execution of this method, as cancellation is not awaited on the abort path. </p>
syntax: protected void onAbort()
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.onAbort()
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.onChangeRoleAsync(ReplicaRole newRole, CancellationToken cancellationToken)
name: onChangeRoleAsync(ReplicaRole newRole, CancellationToken cancellationToken)
nameWithType: StatefulServiceBase.onChangeRoleAsync(ReplicaRole newRole, CancellationToken cancellationToken)
parameters:
- description: <p>for this service replica. </p>
name: newRole
type: <xref href="system.fabric.ReplicaRole?alt=system.fabric.ReplicaRole&text=ReplicaRole" data-throw-if-not-resolved="False"/>
- description: >-
<p>
<xref uid="system.fabric.CancellationToken" data-throw-if-not-resolved="false" data-raw-source="system.fabric.CancellationToken"></xref> object to indicate the cancellation status of the operation. </p>
name: cancellationToken
type: <xref href="system.fabric.CancellationToken?alt=system.fabric.CancellationToken&text=CancellationToken" data-throw-if-not-resolved="False"/>
returns:
description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="CompletableFuture"></xref> that represents outstanding operation. </p>
type: <xref href="CompletableFuture%3C%3F%3E?alt=CompletableFuture%3C%3F%3E&text=CompletableFuture%3C%3F%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>This method is called as the final step before completing <xref uid="system.fabric.StatefulServiceReplica.changeRoleAsync(ReplicaRole,CancellationToken)" data-throw-if-not-resolved="false" data-raw-source="system.fabric.StatefulServiceReplica#changeRoleAsync(ReplicaRole, CancellationToken)"></xref> . Override this method to be notified that ChangeRole has completed for this replica's internal components.</p>
<p></p>
syntax: protected CompletableFuture<?> onChangeRoleAsync(ReplicaRole newRole, CancellationToken cancellationToken)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.onChangeRoleAsync(ReplicaRole,CancellationToken)
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.onCloseAsync(CancellationToken cancellationToken)
name: onCloseAsync(CancellationToken cancellationToken)
nameWithType: StatefulServiceBase.onCloseAsync(CancellationToken cancellationToken)
parameters:
- description: >-
<p>
<xref uid="system.fabric.CancellationToken" data-throw-if-not-resolved="false" data-raw-source="system.fabric.CancellationToken"></xref> object to indicate the cancellation status of the operation. </p>
name: cancellationToken
type: <xref href="system.fabric.CancellationToken?alt=system.fabric.CancellationToken&text=CancellationToken" data-throw-if-not-resolved="False"/>
returns:
description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="CompletableFuture"></xref> that represents outstanding operation. </p>
type: <xref href="CompletableFuture%3C%3F%3E?alt=CompletableFuture%3C%3F%3E&text=CompletableFuture%3C%3F%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>This method is called as the final step of closing the service. Override this method to be notified that Close has completed for this replica's internal components.</p>
<p></p>
syntax: protected CompletableFuture<?> onCloseAsync(CancellationToken cancellationToken)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.onCloseAsync(CancellationToken)
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.onDataLossAsync(RestoreContext context, CancellationToken cancellationToken)
name: onDataLossAsync(RestoreContext context, CancellationToken cancellationToken)
nameWithType: StatefulServiceBase.onDataLossAsync(RestoreContext context, CancellationToken cancellationToken)
parameters:
- description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="RestoreContext"></xref> to be used to restore the service. </p>
name: context
type: <xref href="microsoft.servicefabric.data.RestoreContext?alt=microsoft.servicefabric.data.RestoreContext&text=RestoreContext" data-throw-if-not-resolved="False"/>
- description: >-
<p>
<xref uid="system.fabric.CancellationToken" data-throw-if-not-resolved="false" data-raw-source="system.fabric.CancellationToken"></xref> object to indicate the cancellation status of the operation. </p>
name: cancellationToken
type: <xref href="system.fabric.CancellationToken?alt=system.fabric.CancellationToken&text=CancellationToken" data-throw-if-not-resolved="False"/>
returns:
description: <p>A Task that represents the asynchronous restore operation. True indicates that the state has been restored. False indicates that the replica's state has not been modified. </p>
type: <xref href="CompletableFuture%3CBoolean%3E?alt=CompletableFuture%3CBoolean%3E&text=CompletableFuture%3CBoolean%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>This method is called during suspected data loss. You can override this method to restore the service in case of data loss.</p>
<p></p>
syntax: protected CompletableFuture<Boolean> onDataLossAsync(RestoreContext context, CancellationToken cancellationToken)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.onDataLossAsync(RestoreContext,CancellationToken)
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.onOpenAsync(ReplicaOpenMode openMode, CancellationToken cancellationToken)
name: onOpenAsync(ReplicaOpenMode openMode, CancellationToken cancellationToken)
nameWithType: StatefulServiceBase.onOpenAsync(ReplicaOpenMode openMode, CancellationToken cancellationToken)
parameters:
- description: <p>for this service replica. </p>
name: openMode
type: <xref href="system.fabric.ReplicaOpenMode?alt=system.fabric.ReplicaOpenMode&text=ReplicaOpenMode" data-throw-if-not-resolved="False"/>
- description: >-
<p>
<xref uid="system.fabric.CancellationToken" data-throw-if-not-resolved="false" data-raw-source="system.fabric.CancellationToken"></xref> object to indicate the cancellation status of the operation. </p>
name: cancellationToken
type: <xref href="system.fabric.CancellationToken?alt=system.fabric.CancellationToken&text=CancellationToken" data-throw-if-not-resolved="False"/>
returns:
description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="CompletableFuture"></xref> that represents outstanding operation. </p>
type: <xref href="CompletableFuture%3C%3F%3E?alt=CompletableFuture%3C%3F%3E&text=CompletableFuture%3C%3F%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>This method is called as the final step of opening the service. Override this method to be notified that Open has completed for this replica's internal components.</p>
<p></p>
syntax: protected CompletableFuture<?> onOpenAsync(ReplicaOpenMode openMode, CancellationToken cancellationToken)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.onOpenAsync(ReplicaOpenMode,CancellationToken)
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.runAsync(CancellationToken cancellationToken)
name: runAsync(CancellationToken cancellationToken)
nameWithType: StatefulServiceBase.runAsync(CancellationToken cancellationToken)
parameters:
- description: >-
<p>
<xref uid="system.fabric.CancellationToken" data-throw-if-not-resolved="false" data-raw-source="system.fabric.CancellationToken"></xref> object to indicate the cancellation status of the operation. </p>
name: cancellationToken
type: <xref href="system.fabric.CancellationToken?alt=system.fabric.CancellationToken&text=CancellationToken" data-throw-if-not-resolved="False"/>
returns:
description: <p>A <xref uid="" data-throw-if-not-resolved="false" data-raw-source="CompletableFuture"></xref> that represents outstanding operation. </p>
type: <xref href="CompletableFuture%3C%3F%3E?alt=CompletableFuture%3C%3F%3E&text=CompletableFuture%3C%3F%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>Services that want to implement a processing loop which runs when it is primary and has write status, just override this method with their logic.</p>
<p></p>
syntax: protected CompletableFuture<?> runAsync(CancellationToken cancellationToken)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.runAsync(CancellationToken)
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.setAddresses(Map<String, String> addresses)
name: setAddresses(Map<String, String> addresses)
nameWithType: StatefulServiceBase.setAddresses(Map<String, String> addresses)
parameters:
- description: <p>An <xref uid="" data-throw-if-not-resolved="false" data-raw-source="Map"></xref> containing list of addresses as (ListenerName, Endpoint) key-value pair. </p>
name: addresses
type: <xref href="Map%3CString%2C+String%3E?alt=Map%3CString%2C+String%3E&text=Map%3CString%2C+String%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>Sets list of all the addresses for this service replica as (ListenerName, Endpoint) key-value pair.</p>
<p></p>
syntax: protected void setAddresses(Map<String, String> addresses)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.setAddresses(Map<String, String>)
- fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase.setPartition(StatefulServicePartition partition)
name: setPartition(StatefulServicePartition partition)
nameWithType: StatefulServiceBase.setPartition(StatefulServicePartition partition)
parameters:
- description: <p>An <xref uid="" data-throw-if-not-resolved="false" data-raw-source="StatefulServicePartition"></xref> that represents the partition to which this service replica belongs. </p>
name: partition
type: <xref href="system.fabric.StatefulServicePartition?alt=system.fabric.StatefulServicePartition&text=StatefulServicePartition" data-throw-if-not-resolved="False"/>
summary: >-
<p>Service partition to which current service replica belongs.</p>
<p></p>
syntax: protected void setPartition(StatefulServicePartition partition)
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase.setPartition(StatefulServicePartition)
nameWithType: StatefulServiceBase
syntax: public class StatefulServiceBase
type: class
uid: microsoft.servicefabric.services.runtime.StatefulServiceBase
fullName: microsoft.servicefabric.services.runtime.StatefulServiceBase
name: StatefulServiceBase
package: microsoft.servicefabric.services.runtime
summary: <p>Represents base class for Microsoft Service Fabric based stateful reliable service. </p>
metadata: {}