public boolean isPinned(FileAttributes fileAttributes, CellStub cellStub) throws CacheException, InterruptedException, URISyntaxException { boolean isPinned = false; PinManagerCountPinsMessage message = new PinManagerCountPinsMessage(fileAttributes.getPnfsId()); message = cellStub.sendAndWait(message); if (message.getCount() != 0) { isPinned = true; } return isPinned; }
private void initPoolMonitor() throws InterruptedException { while (true) { try { setPoolMonitor( _poolManagerStub.sendAndWait(new PoolManagerGetPoolMonitor()).getPoolMonitor()); break; } catch (CacheException e) { _log.error(e.toString()); Thread.sleep(INIT_DELAY); } } }
public void refresh() throws CacheException, InterruptedException, NoRouteToCellException { messageArrived(poolManagerStub.sendAndWait(new PoolManagerGetPoolMonitor()).getPoolMonitor()); }