Search in sources :

Example 1 with FileNotOnlineCacheException

use of diskCacheV111.util.FileNotOnlineCacheException in project dcache by dCache.

the class PinRequestProcessor method selectReadPool.

private void selectReadPool(final PinTask task) throws CacheException {
    try {
        PoolSelector poolSelector = _poolMonitor.getPoolSelector(task.getFileAttributes(), task.getProtocolInfo(), null, Collections.EMPTY_SET);
        SelectedPool pool = poolSelector.selectPinPool();
        setPool(task, pool.name());
        setStickyFlag(task, pool.name(), pool.address());
    } catch (FileNotOnlineCacheException e) {
        askPoolManager(task);
    }
}
Also used : SelectedPool(org.dcache.poolmanager.SelectedPool) PoolSelector(org.dcache.poolmanager.PoolSelector) FileNotOnlineCacheException(diskCacheV111.util.FileNotOnlineCacheException)

Aggregations

FileNotOnlineCacheException (diskCacheV111.util.FileNotOnlineCacheException)1 PoolSelector (org.dcache.poolmanager.PoolSelector)1 SelectedPool (org.dcache.poolmanager.SelectedPool)1