Package io.bdeploy.bhive.remote.jersey
Interface BHiveResource
- All Known Implementing Classes:
BHiveResourceImpl
@Path("/hive")
@Produces("application/json")
@Consumes("application/json")
public interface BHiveResource
Resource allowing access to a single
BHive.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionfetch(BHiveResource.FetchSpec spec) Fetch manifests from the remote as ZIPedBHive.Streams manifests and objects from the remove hive.getManifestInventory(String... names) Retrieve allManifest.Keys along with the root treeObjectIdavailable to the remote repository.getMissingObjects(Set<ObjectId> all) Retrieve theObjectIdrequired to satisfy a given tree.getRequiredTrees(ObjectId tree) voidprune()Perform a prune operation on the remoteBHive, removing any unreferenced objects.voidStreams manifests and objects into the remove hive.void
-
Method Details
-
getManifestInventory
Retrieve allManifest.Keys along with the root treeObjectIdavailable to the remote repository.- Parameters:
names-
-
removeManifest
@POST @Path("/manifest_remove") @RequiredPermission(permission=WRITE) void removeManifest(Manifest.Key key) - Parameters:
key- the manifest to delete.
-
prune
@POST @Path("/prune") void prune()Perform a prune operation on the remoteBHive, removing any unreferenced objects. -
getMissingObjects
-
getRequiredObjects
Retrieve theObjectIdrequired to satisfy a given tree. -
getRequiredTrees
-
push
@PUT @Path("/push") @Consumes("application/octet-stream") @RequiredPermission(permission=WRITE) void push(Path zipedHive) -
pushAsStream
@PUT @Path("/pushAsStream") @Produces("application/json") @Consumes("application/octet-stream") @RequiredPermission(permission=WRITE) TransferStatistics pushAsStream(InputStream in) Streams manifests and objects into the remove hive. -
fetch
@POST @Path("/fetch") @Produces("application/octet-stream") Path fetch(BHiveResource.FetchSpec spec) Fetch manifests from the remote as ZIPedBHive.The caller is responsible for cleaning up the file pointed at by the returned
Path. -
fetchAsStream
@POST @Path("/fetchAsStream") @Produces("application/octet-stream") InputStream fetchAsStream(BHiveResource.FetchSpec spec) Streams manifests and objects from the remove hive.
-