コード例 #1
0
  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;
  }
コード例 #2
0
 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);
     }
   }
 }
コード例 #3
0
 public void refresh() throws CacheException, InterruptedException, NoRouteToCellException {
   messageArrived(poolManagerStub.sendAndWait(new PoolManagerGetPoolMonitor()).getPoolMonitor());
 }