use of org.dcache.pinmanager.PinManagerListPinsMessage in project dcache by dCache.
the class DCacheAwareJdbcFs method listPins.
@Override
public List<PinInfo> listPins(FsInode inode) throws ChimeraFsException {
PnfsId pnfsid = new PnfsId(inode.getId());
PinManagerListPinsMessage request = new PinManagerListPinsMessage(pnfsid);
Subject subject = getSubjectFromContext();
request.setSubject(subject);
try {
return pinManagerStub.sendAndWait(request).getInfo().stream().map(DcachePinInfo::new).collect(Collectors.toList());
} catch (NoRouteToCellException | InterruptedException | CacheException e) {
throw new InvalidArgumentChimeraException(e.getMessage());
}
}
Aggregations