1 | package diskCacheV111.vehicles; |
2 | |
3 | import diskCacheV111.util.PnfsId; |
4 | |
5 | public class PoolIoFileMessage extends PoolMessage { |
6 | |
7 | private StorageInfo _storageInfo = null ; |
8 | private ProtocolInfo _protocolInfo = null ; |
9 | private PnfsId _pnfsId = null ; |
10 | private boolean _isPool2Pool = false ; |
11 | private String _ioQueueName = null ; |
12 | private int _moverId = 0; |
13 | private String _initiator = "<undefined>"; |
14 | |
15 | private static final long serialVersionUID = -6549886547049510754L; |
16 | |
17 | public PoolIoFileMessage( String pool , |
18 | PnfsId pnfsId , |
19 | ProtocolInfo protocolInfo , |
20 | StorageInfo storageInfo ){ |
21 | super( pool ) ; |
22 | _storageInfo = storageInfo ; |
23 | _protocolInfo = protocolInfo ; |
24 | _pnfsId = pnfsId ; |
25 | } |
26 | |
27 | public PoolIoFileMessage( String pool , |
28 | PnfsId pnfsId , |
29 | ProtocolInfo protocolInfo ){ |
30 | super( pool ) ; |
31 | _protocolInfo = protocolInfo ; |
32 | _pnfsId = pnfsId ; |
33 | } |
34 | public PnfsId getPnfsId(){ return _pnfsId ; } |
35 | public StorageInfo getStorageInfo(){ return _storageInfo ; } |
36 | public ProtocolInfo getProtocolInfo(){ return _protocolInfo ; } |
37 | |
38 | public boolean isPool2Pool(){ return _isPool2Pool ; } |
39 | public void setPool2Pool(){ _isPool2Pool = true ; } |
40 | |
41 | public void setIoQueueName( String ioQueueName ){ |
42 | _ioQueueName = ioQueueName ; |
43 | } |
44 | public String getIoQueueName(){ |
45 | return _ioQueueName ; |
46 | } |
47 | /** |
48 | * Getter for property moverId. |
49 | * @return Value of property moverId. |
50 | */ |
51 | public int getMoverId() { |
52 | return _moverId; |
53 | } |
54 | |
55 | /** |
56 | * Setter for property moverId. |
57 | * @param moverId New value of property moverId. |
58 | */ |
59 | public void setMoverId(int moverId) { |
60 | this._moverId = moverId; |
61 | } |
62 | |
63 | |
64 | public void setInitiator(String initiator) { |
65 | _initiator = initiator; |
66 | } |
67 | |
68 | public String getInitiator() { |
69 | return _initiator; |
70 | } |
71 | } |