Package org.finos.tracdap.api
Class TracMetadataApiGrpc
- java.lang.Object
-
- org.finos.tracdap.api.TracMetadataApiGrpc
-
@Generated(value="by gRPC proto compiler (version 1.49.0)", comments="Source: tracdap/api/metadata.proto") public final class TracMetadataApiGrpc extends java.lang.ObjectPublic API for creating, updating, reading and searching for objects in the TRAC metadata store. The TRAC metadata API is expressed in terms of Objects and Tags. Objects are structural items (nouns and verbs) such as data, models and jobs that describe resources and operations on the TRAC platform. Tags contain descriptive and informational data and provide a means to classify, catalogue and control objects. Tags can also be used to describe the structure of applications built on the TRAC platform. For more information on the TRAC metadata model, refer to the documentation for ObjectDefinition and Tag. The write API allows objects to be created directly, by supplying an object definition and a set of tags. These definitions and tags are validated, assigned an ID and version (in a tag header) then saved as they are. Only certain types of objects can be created / updated directly via the public API (currently FLOW and CUSTOM objects). Other types of objects are created by TRAC as a result of operations on the platform, for example a model import job will create a model definition. Creating a new version of an object is very similar to creating a new object, in that the entire metadata definition must be supplied. TRAC will perform validation to make sure the new definition is a valid version update from the previous version - the semantics of versioning depend on the particular object type. The metadata write API also provides a means for updating tags (i.e. creating a new tag version); tag updates are allowed for all object types via the public API. The current API requires a whole new tag to be supplied, this will be replaced in a future version with an API that supplies attributes changes as a set of add/modify/remove operations. The read API is for reading metadata from the metadata store when the IDs of the metadata items are known. The easiest way to read metadata is using TagSelectors, which may be present in other metadata items (e.g. job definitions record tag selectors to indicate which versions of resources were used in a job) or can be easily constructed from an object ID or tag header. HTTP GET calls are also available for REST clients (REST clients can still use selectors with POST requests). Metadata searches are performed using tag attributes, as well as an object type and a few top-level parameters to handle versioning and temporality. See the SearchParameters object for a more detailed description. The result of a search call is a list of matching tags, which are always arranged with the most recent tags first. A search that matches no results will return an empty list. This API is a multi-tenant API. For gRPC requests every request includes a tenant code, for REST requests the tenant code is the first element of every path. @see tracdap.metadata.ObjectDefinition @see tracdap.metadata.Tag @see tracdap.metadata.TagHeader @see tracdap.metadata.TagSelector @see tracdap.metadata.TagUpdate @see tracdap.metadata.SearchParameters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTracMetadataApiGrpc.TracMetadataApiBlockingStubPublic API for creating, updating, reading and searching for objects in the TRAC metadata store.static classTracMetadataApiGrpc.TracMetadataApiFutureStubPublic API for creating, updating, reading and searching for objects in the TRAC metadata store.static classTracMetadataApiGrpc.TracMetadataApiImplBasePublic API for creating, updating, reading and searching for objects in the TRAC metadata store.static classTracMetadataApiGrpc.TracMetadataApiStubPublic API for creating, updating, reading and searching for objects in the TRAC metadata store.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.grpc.MethodDescriptor<MetadataWriteRequest,org.finos.tracdap.metadata.TagHeader>getCreateObjectMethod()static io.grpc.MethodDescriptor<MetadataGetRequest,org.finos.tracdap.metadata.Tag>getGetLatestObjectMethod()static io.grpc.MethodDescriptor<MetadataGetRequest,org.finos.tracdap.metadata.Tag>getGetLatestTagMethod()static io.grpc.MethodDescriptor<MetadataGetRequest,org.finos.tracdap.metadata.Tag>getGetObjectMethod()static io.grpc.MethodDescriptor<ListTenantsRequest,ListTenantsResponse>getListTenantsMethod()static io.grpc.MethodDescriptor<PlatformInfoRequest,PlatformInfoResponse>getPlatformInfoMethod()static io.grpc.MethodDescriptor<MetadataBatchRequest,MetadataBatchResponse>getReadBatchMethod()static io.grpc.MethodDescriptor<MetadataReadRequest,org.finos.tracdap.metadata.Tag>getReadObjectMethod()static io.grpc.MethodDescriptor<MetadataSearchRequest,MetadataSearchResponse>getSearchMethod()static io.grpc.ServiceDescriptorgetServiceDescriptor()static io.grpc.MethodDescriptor<MetadataWriteRequest,org.finos.tracdap.metadata.TagHeader>getUpdateObjectMethod()static io.grpc.MethodDescriptor<MetadataWriteRequest,org.finos.tracdap.metadata.TagHeader>getUpdateTagMethod()static TracMetadataApiGrpc.TracMetadataApiBlockingStubnewBlockingStub(io.grpc.Channel channel)Creates a new blocking-style stub that supports unary and streaming output calls on the servicestatic TracMetadataApiGrpc.TracMetadataApiFutureStubnewFutureStub(io.grpc.Channel channel)Creates a new ListenableFuture-style stub that supports unary calls on the servicestatic TracMetadataApiGrpc.TracMetadataApiStubnewStub(io.grpc.Channel channel)Creates a new async stub that supports all call types for the service
-
-
-
Field Detail
-
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPlatformInfoMethod
public static io.grpc.MethodDescriptor<PlatformInfoRequest,PlatformInfoResponse> getPlatformInfoMethod()
-
getListTenantsMethod
public static io.grpc.MethodDescriptor<ListTenantsRequest,ListTenantsResponse> getListTenantsMethod()
-
getCreateObjectMethod
public static io.grpc.MethodDescriptor<MetadataWriteRequest,org.finos.tracdap.metadata.TagHeader> getCreateObjectMethod()
-
getUpdateObjectMethod
public static io.grpc.MethodDescriptor<MetadataWriteRequest,org.finos.tracdap.metadata.TagHeader> getUpdateObjectMethod()
-
getUpdateTagMethod
public static io.grpc.MethodDescriptor<MetadataWriteRequest,org.finos.tracdap.metadata.TagHeader> getUpdateTagMethod()
-
getReadObjectMethod
public static io.grpc.MethodDescriptor<MetadataReadRequest,org.finos.tracdap.metadata.Tag> getReadObjectMethod()
-
getReadBatchMethod
public static io.grpc.MethodDescriptor<MetadataBatchRequest,MetadataBatchResponse> getReadBatchMethod()
-
getSearchMethod
public static io.grpc.MethodDescriptor<MetadataSearchRequest,MetadataSearchResponse> getSearchMethod()
-
getGetObjectMethod
public static io.grpc.MethodDescriptor<MetadataGetRequest,org.finos.tracdap.metadata.Tag> getGetObjectMethod()
-
getGetLatestObjectMethod
public static io.grpc.MethodDescriptor<MetadataGetRequest,org.finos.tracdap.metadata.Tag> getGetLatestObjectMethod()
-
getGetLatestTagMethod
public static io.grpc.MethodDescriptor<MetadataGetRequest,org.finos.tracdap.metadata.Tag> getGetLatestTagMethod()
-
newStub
public static TracMetadataApiGrpc.TracMetadataApiStub newStub(io.grpc.Channel channel)
Creates a new async stub that supports all call types for the service
-
newBlockingStub
public static TracMetadataApiGrpc.TracMetadataApiBlockingStub newBlockingStub(io.grpc.Channel channel)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
-
newFutureStub
public static TracMetadataApiGrpc.TracMetadataApiFutureStub newFutureStub(io.grpc.Channel channel)
Creates a new ListenableFuture-style stub that supports unary calls on the service
-
getServiceDescriptor
public static io.grpc.ServiceDescriptor getServiceDescriptor()
-
-