Package io.bdeploy.bhive.remote.jersey
Class BHiveResourceImpl
java.lang.Object
io.bdeploy.bhive.remote.jersey.BHiveResourceImpl
- All Implemented Interfaces:
BHiveResource
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.bdeploy.bhive.remote.jersey.BHiveResource
BHiveResource.FetchSpec, BHiveResource.ObjectListSpec -
Constructor Summary
Constructors -
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
-
Constructor Details
-
BHiveResourceImpl
-
-
Method Details
-
getMissingObjects
Description copied from interface:BHiveResourceFrom the given set, filter all remotely knownObjectIds and return onlyObjectIdwhich are not yet present on the remote.- Specified by:
getMissingObjectsin interfaceBHiveResource
-
getManifestInventory
Description copied from interface:BHiveResourceRetrieve allManifest.Keys along with the root treeObjectIdavailable to the remote repository.- Specified by:
getManifestInventoryin interfaceBHiveResource
-
removeManifest
- Specified by:
removeManifestin interfaceBHiveResource- Parameters:
key- the manifest to delete.
-
prune
public void prune()Description copied from interface:BHiveResourcePerform a prune operation on the remoteBHive, removing any unreferenced objects.- Specified by:
prunein interfaceBHiveResource
-
getRequiredObjects
Description copied from interface:BHiveResourceRetrieve theObjectIdrequired to satisfy a given tree.- Specified by:
getRequiredObjectsin interfaceBHiveResource
-
getRequiredTrees
Description copied from interface:BHiveResource- Specified by:
getRequiredTreesin interfaceBHiveResource
-
push
Description copied from interface:BHiveResource- Specified by:
pushin interfaceBHiveResource
-
pushAsStream
Description copied from interface:BHiveResourceStreams manifests and objects into the remove hive.- Specified by:
pushAsStreamin interfaceBHiveResource
-
fetch
Description copied from interface:BHiveResourceFetch manifests from the remote as ZIPedBHive.The caller is responsible for cleaning up the file pointed at by the returned
Path.- Specified by:
fetchin interfaceBHiveResource
-
fetchAsStream
Description copied from interface:BHiveResourceStreams manifests and objects from the remove hive.- Specified by:
fetchAsStreamin interfaceBHiveResource
-