Class XdsClient.ResourceMetadata
java.lang.Object
io.grpc.xds.client.XdsClient.ResourceMetadata
- Enclosing class:
XdsClient
The metadata of the xDS resource; used by the xDS config dump.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumResource status from the view of a xDS client, which tells the synchronization status between the xDS client and the xDS server.static final classCaptures error metadata of failed resource updates. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final XdsClient.ResourceMetadata.UpdateFailureStateprivate final com.google.protobuf.Anyprivate final XdsClient.ResourceMetadata.ResourceMetadataStatusprivate final longprivate final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateResourceMetadata(XdsClient.ResourceMetadata.ResourceMetadataStatus status, String version, long updateTimeNanos, com.google.protobuf.Any rawResource, XdsClient.ResourceMetadata.UpdateFailureState errorState) -
Method Summary
Modifier and TypeMethodDescriptionThe metadata capturing the error details of the last rejected update of the resource.com.google.protobuf.AnyThe last successfully updated xDS resource as it was returned by the server.The client status of this resource.longThe timestamp when the resource was last successfully updated.The last successfully updated version of the resource.static XdsClient.ResourceMetadatanewResourceMetadataAcked(com.google.protobuf.Any rawResource, String version, long updateTimeNanos) (package private) static XdsClient.ResourceMetadata(package private) static XdsClient.ResourceMetadatanewResourceMetadataNacked(XdsClient.ResourceMetadata metadata, String failedVersion, long failedUpdateTime, String failedDetails) (package private) static XdsClient.ResourceMetadata(package private) static XdsClient.ResourceMetadata
-
Field Details
-
version
-
status
-
updateTimeNanos
private final long updateTimeNanos -
rawResource
-
errorState
-
-
Constructor Details
-
ResourceMetadata
private ResourceMetadata(XdsClient.ResourceMetadata.ResourceMetadataStatus status, String version, long updateTimeNanos, @Nullable com.google.protobuf.Any rawResource, @Nullable XdsClient.ResourceMetadata.UpdateFailureState errorState)
-
-
Method Details
-
newResourceMetadataUnknown
-
newResourceMetadataRequested
-
newResourceMetadataDoesNotExist
-
newResourceMetadataAcked
public static XdsClient.ResourceMetadata newResourceMetadataAcked(com.google.protobuf.Any rawResource, String version, long updateTimeNanos) -
newResourceMetadataNacked
static XdsClient.ResourceMetadata newResourceMetadataNacked(XdsClient.ResourceMetadata metadata, String failedVersion, long failedUpdateTime, String failedDetails) -
getVersion
The last successfully updated version of the resource. -
getStatus
The client status of this resource. -
getUpdateTimeNanos
public long getUpdateTimeNanos()The timestamp when the resource was last successfully updated. -
getRawResource
The last successfully updated xDS resource as it was returned by the server. -
getErrorState
The metadata capturing the error details of the last rejected update of the resource.
-