| 1 | // $Id: PoolMgrSelectPoolMsg.java,v 1.7 2006-10-10 13:50:49 tigran Exp $ |
| 2 | |
| 3 | package diskCacheV111.vehicles ; |
| 4 | import diskCacheV111.util.* ; |
| 5 | import diskCacheV111.poolManager.RequestContainerV5; |
| 6 | |
| 7 | public class PoolMgrSelectPoolMsg extends PoolMgrGetPoolMsg { |
| 8 | |
| 9 | |
| 10 | private ProtocolInfo _protocolInfo; |
| 11 | private long _fileSize; |
| 12 | private String _ioQueueName = null ; |
| 13 | private String _pnfsPath; |
| 14 | private String _linkGroup = null; |
| 15 | private static final long serialVersionUID = -5874326080375390208L; |
| 16 | private final int _allowedStates; |
| 17 | |
| 18 | public PoolMgrSelectPoolMsg( PnfsId pnfsId , |
| 19 | StorageInfo storageInfo, |
| 20 | ProtocolInfo protocolInfo, |
| 21 | long fileSize ){ |
| 22 | |
| 23 | this( pnfsId , storageInfo, protocolInfo, fileSize, RequestContainerV5.allStates) ; |
| 24 | |
| 25 | } |
| 26 | |
| 27 | public PoolMgrSelectPoolMsg( PnfsId pnfsId , |
| 28 | StorageInfo storageInfo, |
| 29 | ProtocolInfo protocolInfo, |
| 30 | long fileSize, |
| 31 | int allowedStates){ |
| 32 | |
| 33 | super( pnfsId , storageInfo ) ; |
| 34 | _protocolInfo = protocolInfo; |
| 35 | _fileSize = fileSize; |
| 36 | _allowedStates = allowedStates; |
| 37 | } |
| 38 | |
| 39 | public void setFileSize(long fileSize) |
| 40 | { |
| 41 | _fileSize = fileSize; |
| 42 | } |
| 43 | |
| 44 | public long getFileSize(){ return _fileSize; } |
| 45 | |
| 46 | public ProtocolInfo getProtocolInfo(){ return _protocolInfo; } |
| 47 | public void setProtocolInfo( ProtocolInfo protocolInfo ){ _protocolInfo = protocolInfo ; } |
| 48 | public void setIoQueueName( String ioQueueName ){ _ioQueueName = ioQueueName ; } |
| 49 | public String getIoQueueName(){ return _ioQueueName ; } |
| 50 | |
| 51 | public String getPnfsPath() { |
| 52 | return _pnfsPath; |
| 53 | } |
| 54 | |
| 55 | public void setPnfsPath(String pnfsPath) { |
| 56 | this._pnfsPath = pnfsPath; |
| 57 | } |
| 58 | |
| 59 | public void setLinkGroup(String linkGroup) { |
| 60 | _linkGroup = linkGroup; |
| 61 | } |
| 62 | |
| 63 | public String getLinkGroup() { |
| 64 | return _linkGroup; |
| 65 | } |
| 66 | |
| 67 | public int getAllowedStates() { |
| 68 | return _allowedStates; |
| 69 | } |
| 70 | |
| 71 | } |