1 | // $Id: PnfsCreateEntryMessage.java,v 1.4 2004-11-05 12:07:19 tigran Exp $ |
2 | |
3 | package diskCacheV111.vehicles; |
4 | |
5 | import org.dcache.namespace.FileAttribute; |
6 | import diskCacheV111.namespace.NameSpaceProvider; |
7 | import java.util.Set; |
8 | |
9 | public class PnfsCreateEntryMessage extends PnfsGetStorageInfoMessage { |
10 | |
11 | private String _path = null; |
12 | private int _uid = NameSpaceProvider.DEFAULT; |
13 | private int _gid = NameSpaceProvider.DEFAULT; |
14 | private int _mode = NameSpaceProvider.DEFAULT; |
15 | |
16 | private static final long serialVersionUID = -8197311585737333341L; |
17 | |
18 | public PnfsCreateEntryMessage(String path){ |
19 | _path = path; |
20 | setReplyRequired(true); |
21 | } |
22 | public PnfsCreateEntryMessage(String path, int uid , int gid , int mode ){ |
23 | _path = path; |
24 | _uid = uid ; |
25 | _gid = gid ; |
26 | _mode = mode ; |
27 | setReplyRequired(true); |
28 | } |
29 | |
30 | public PnfsCreateEntryMessage(String path, |
31 | int uid , |
32 | int gid , |
33 | int mode, |
34 | Set<FileAttribute> attr){ |
35 | super(attr); |
36 | _path = path; |
37 | _uid = uid ; |
38 | _gid = gid ; |
39 | _mode = mode ; |
40 | setReplyRequired(true); |
41 | } |
42 | |
43 | |
44 | public String getPath(){ |
45 | return _path; |
46 | } |
47 | public int getUid(){ return _uid ; } |
48 | public int getGid(){ return _gid ; } |
49 | public int getMode(){return _mode ; } |
50 | |
51 | @Override |
52 | public boolean invalidates(Message message) |
53 | { |
54 | return genericInvalidatesForPnfsMessage(message); |
55 | } |
56 | |
57 | @Override |
58 | public boolean fold(Message message) |
59 | { |
60 | return false; |
61 | } |
62 | } |