Interface BaseProjection
- All Superinterfaces:
AuditProjection,IdProjection,UniqueIdProjection
- All Known Subinterfaces:
FinishedJobProjection,JobCommonFieldsProjection,JobProjection
- All Known Implementing Classes:
ApplicationEntity,BaseEntity,ClusterEntity,CommandEntity,JobEntity
Projection for the common fields.
- Since:
- 3.3.0
-
Method Summary
Modifier and TypeMethodDescriptionGet the description of this resource.Optional<com.fasterxml.jackson.databind.JsonNode>Get the metadata of this entity which is unstructured JSON.getName()Get the name of the resource.Get the status of this resource as a String.getUser()Get the user who created the resource.Get the version.Methods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.AuditProjection
getCreated, getUpdatedMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.IdProjection
getIdMethods inherited from interface com.netflix.genie.web.data.services.impl.jpa.queries.projections.UniqueIdProjection
getUniqueId
-
Method Details
-
getVersion
String getVersion()Get the version.- Returns:
- The version of the resource (job, app, etc)
-
getUser
String getUser()Get the user who created the resource.- Returns:
- The user who created the resource
-
getName
String getName()Get the name of the resource.- Returns:
- The name of the resource
-
getStatus
String getStatus()Get the status of this resource as a String.- Returns:
- The status
-
getDescription
Get the description of this resource.- Returns:
- The description which could be null so it's wrapped in Optional
-
getMetadata
Optional<com.fasterxml.jackson.databind.JsonNode> getMetadata()Get the metadata of this entity which is unstructured JSON.- Returns:
- Optional of the metadata json node
-