Class: Azure::ServiceFabric::V6_3_0_9::Models::DeployedStatefulServiceReplicaDetailInfo

Inherits:
DeployedServiceReplicaDetailInfo show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb

Overview

Information about a stateful replica running in a code package. Note DeployedServiceReplicaQueryResult will contain duplicate data like ServiceKind, ServiceName, PartitionId and replicaId.

Instance Attribute Summary collapse

Attributes inherited from DeployedServiceReplicaDetailInfo

#current_service_operation, #current_service_operation_start_time_utc, #partition_id, #reported_load, #service_name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDeployedStatefulServiceReplicaDetailInfo

Returns a new instance of DeployedStatefulServiceReplicaDetailInfo.



18
19
20
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 18

def initialize
  @ServiceKind = "Stateful"
end

Instance Attribute Details

#current_replicator_operationReplicatorOperationName

being executed by the Replicator. Possible values include: ‘Invalid’, ‘None’, ‘Open’, ‘ChangeRole’, ‘UpdateEpoch’, ‘Close’, ‘Abort’, ‘OnDataLoss’, ‘WaitForCatchup’, ‘Build’

Returns:



37
38
39
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 37

def current_replicator_operation
  @current_replicator_operation
end

#deployed_service_replica_query_resultDeployedStatefulServiceReplicaInfo

stateful service replica deployed on a node.

Returns:



62
63
64
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 62

def deployed_service_replica_query_result
  @deployed_service_replica_query_result
end

#read_statusPartitionAccessStatus

partition. Possible values include: ‘Invalid’, ‘Granted’, ‘ReconfigurationPending’, ‘NotPrimary’, ‘NoWriteQuorum’

Returns:



42
43
44
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 42

def read_status
  @read_status
end

#replica_idString

Service Fabric to uniquely identify a replica of a partition. It is unique within a partition and does not change for the lifetime of the replica. If a replica gets dropped and another replica gets created on the same node for the same partition, it will get a different value for the id. Sometimes the id of a stateless service instance is also referred as a replica id.

Returns:

  • (String)

    Id of a stateful service replica. ReplicaId is used by



31
32
33
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 31

def replica_id
  @replica_id
end

#replica_statusKeyValueStoreReplicaStatus

information for the replica.

Returns:



58
59
60
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 58

def replica_status
  @replica_status
end

#replicator_statusReplicatorStatus

secondary replicator status. Contains information about the service fabric replicator like the replication/copy queue utilization, last acknowledgement received timestamp, etc.

Returns:



54
55
56
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 54

def replicator_status
  @replicator_status
end

#ServiceKindObject

Returns the value of attribute ServiceKind.



22
23
24
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 22

def ServiceKind
  @ServiceKind
end

#write_statusPartitionAccessStatus

partition. Possible values include: ‘Invalid’, ‘Granted’, ‘ReconfigurationPending’, ‘NotPrimary’, ‘NoWriteQuorum’

Returns:



47
48
49
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 47

def write_status
  @write_status
end

Class Method Details

.mapperObject

Mapper for DeployedStatefulServiceReplicaDetailInfo class as Ruby Hash. This will be used for serialization/deserialization.



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
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/deployed_stateful_service_replica_detail_info.rb', line 69

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Stateful',
    type: {
      name: 'Composite',
      class_name: 'DeployedStatefulServiceReplicaDetailInfo',
      model_properties: {
        service_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServiceName',
          type: {
            name: 'String'
          }
        },
        partition_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionId',
          type: {
            name: 'String'
          }
        },
        current_service_operation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CurrentServiceOperation',
          type: {
            name: 'String'
          }
        },
        current_service_operation_start_time_utc: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CurrentServiceOperationStartTimeUtc',
          type: {
            name: 'DateTime'
          }
        },
        reported_load: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReportedLoad',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'LoadMetricReportInfoElementType',
                type: {
                  name: 'Composite',
                  class_name: 'LoadMetricReportInfo'
                }
            }
          }
        },
        ServiceKind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ServiceKind',
          type: {
            name: 'String'
          }
        },
        replica_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicaId',
          type: {
            name: 'String'
          }
        },
        current_replicator_operation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CurrentReplicatorOperation',
          type: {
            name: 'String'
          }
        },
        read_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReadStatus',
          type: {
            name: 'String'
          }
        },
        write_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'WriteStatus',
          type: {
            name: 'String'
          }
        },
        replicator_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicatorStatus',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'Kind',
            uber_parent: 'ReplicatorStatus',
            class_name: 'ReplicatorStatus'
          }
        },
        replica_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicaStatus',
          type: {
            name: 'Composite',
            class_name: 'KeyValueStoreReplicaStatus'
          }
        },
        deployed_service_replica_query_result: {
          client_side_validation: true,
          required: false,
          serialized_name: 'DeployedServiceReplicaQueryResult',
          type: {
            name: 'Composite',
            class_name: 'DeployedStatefulServiceReplicaInfo'
          }
        }
      }
    }
  }
end