Skip to content

Commit

Permalink
expose seal method
Browse files Browse the repository at this point in the history
  • Loading branch information
calgray committed Aug 17, 2021
1 parent 176030d commit 1dca409
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions daliuge-engine/dlg/apps/plasmaflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ def get_flight(self, object_id: plasma.ObjectID, location: Optional[str]) -> paf
else:
raise Exception("Location required")

def put(self, data: memoryview, object_id: plasma.ObjectID):
self.plasma_client.put_raw_buffer(data, object_id)

def create(self, object_id: plasma.ObjectID, size: int):
return self.plasma_client.create(object_id, size)

def seal(self, object_id: plasma.ObjectID):
self.plasma_client.seal(object_id)

def put(self, data: memoryview, object_id: plasma.ObjectID):
self.plasma_client.put_raw_buffer(data, object_id)

def get(self, object_id: plasma.ObjectID, owner: Optional[str] = None) -> memoryview:
logger.debug(f"PlasmaFlightClient Get {object_id}")
if self.plasma_client.contains(object_id):
Expand Down

0 comments on commit 1dca409

Please sign in to comment.