| 1 | // $Id: PoolFetchFileMessage.java,v 1.6 2006-04-10 12:19:03 tigran Exp $ |
| 2 | |
| 3 | package diskCacheV111.vehicles; |
| 4 | |
| 5 | import diskCacheV111.util.PnfsId; |
| 6 | |
| 7 | /** |
| 8 | * restore file from HSM |
| 9 | */ |
| 10 | |
| 11 | public class PoolFetchFileMessage extends PoolMessage { |
| 12 | |
| 13 | private PnfsId _pnfsId; |
| 14 | private StorageInfo _storageInfo; |
| 15 | |
| 16 | private static final long serialVersionUID = 1856537534158868883L; |
| 17 | |
| 18 | public PoolFetchFileMessage(String poolName, StorageInfo storageInfo, |
| 19 | PnfsId pnfsId) { |
| 20 | super(poolName); |
| 21 | _pnfsId = pnfsId; |
| 22 | _storageInfo = storageInfo; |
| 23 | setReplyRequired(true); |
| 24 | } |
| 25 | |
| 26 | public PoolFetchFileMessage(String poolName, StorageInfo storageInfo, |
| 27 | String pnfsId) { |
| 28 | super(poolName); |
| 29 | _pnfsId = new PnfsId(pnfsId); |
| 30 | _storageInfo = storageInfo; |
| 31 | setReplyRequired(true); |
| 32 | } |
| 33 | |
| 34 | public void setPnfsId(PnfsId pnfsId) { |
| 35 | _pnfsId = pnfsId; |
| 36 | } |
| 37 | |
| 38 | public PnfsId getPnfsId() { |
| 39 | return _pnfsId; |
| 40 | } |
| 41 | |
| 42 | public void setStorageInfo(StorageInfo storageInfo) { |
| 43 | _storageInfo = storageInfo; |
| 44 | } |
| 45 | |
| 46 | public StorageInfo getStorageInfo() { |
| 47 | return _storageInfo; |
| 48 | } |
| 49 | |
| 50 | } |