Interface GridOperations
- All Known Implementing Classes:
GridOperationsImpl
,NoopGridOperations
,SecuredGridOperations
@API(status=STABLE,
since="2.0.0-milestone.1.2")
public interface GridOperations
Grid operations, used for grids to interact with the storage network.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
extract
(ResourceKey resource, GridExtractMode extractMode, InsertableStorage destination) Tries to move a resource from the network storage to the destination.boolean
insert
(ResourceKey resource, GridInsertMode insertMode, ExtractableStorage source) Tries to move a resource from the source to the network storage.
-
Method Details
-
extract
Tries to move a resource from the network storage to the destination. The amount being extracted depends on the extraction mode.- Parameters:
resource
- the resourceextractMode
- the extract modedestination
- the destination
-
insert
Tries to move a resource from the source to the network storage. The amount being inserted depends on the insert mode.- Parameters:
resource
- the resourceinsertMode
- the insertion modesource
- the source
-