@@ -45,7 +45,7 @@ public enum CMD {
45
45
public GlusterFSXattr (){
46
46
}
47
47
48
- public static String brick2host (String brick ) throws IOException {
48
+ public String brick2host (String brick ) throws IOException {
49
49
String [] hf =null ;
50
50
51
51
hf =brick .split (":" );
@@ -57,7 +57,7 @@ public static String brick2host(String brick) throws IOException{
57
57
return hf [0 ];
58
58
}
59
59
60
- public static String brick2file (String brick ) throws IOException {
60
+ public String brick2file (String brick ) throws IOException {
61
61
String [] hf =null ;
62
62
63
63
hf =brick .split (":" );
@@ -69,7 +69,7 @@ public static String brick2file(String brick) throws IOException{
69
69
return hf [1 ];
70
70
}
71
71
72
- public static BlockLocation [] getPathInfo (String filename ,long start ,long len ) throws IOException {
72
+ public BlockLocation [] getPathInfo (String filename ,long start ,long len ) throws IOException {
73
73
HashMap <String , ArrayList <String >> vol =null ;
74
74
HashMap <String , Integer > meta =new HashMap <String , Integer >();
75
75
@@ -78,7 +78,7 @@ public static BlockLocation[] getPathInfo(String filename,long start,long len) t
78
78
return getHints (vol , meta , start , len , null );
79
79
}
80
80
81
- public static long getBlockSize (String filename ) throws IOException {
81
+ public long getBlockSize (String filename ) throws IOException {
82
82
HashMap <String , ArrayList <String >> vol =null ;
83
83
HashMap <String , Integer > meta =new HashMap <String , Integer >();
84
84
@@ -91,7 +91,7 @@ public static long getBlockSize(String filename) throws IOException{
91
91
92
92
}
93
93
94
- public static short getReplication (String filename ) throws IOException {
94
+ public short getReplication (String filename ) throws IOException {
95
95
HashMap <String , ArrayList <String >> vol =null ;
96
96
HashMap <String , Integer > meta =new HashMap <String , Integer >();
97
97
@@ -101,7 +101,7 @@ public static short getReplication(String filename) throws IOException{
101
101
102
102
}
103
103
104
- public static TreeMap <Integer , GlusterFSBrickClass > quickIOPossible (String filename ,long start ,long len ) throws IOException {
104
+ public TreeMap <Integer , GlusterFSBrickClass > quickIOPossible (String filename ,long start ,long len ) throws IOException {
105
105
String realpath =null ;
106
106
HashMap <String , ArrayList <String >> vol =null ;
107
107
HashMap <String , Integer > meta =new HashMap <String , Integer >();
@@ -117,7 +117,7 @@ public static TreeMap<Integer, GlusterFSBrickClass> quickIOPossible(String filen
117
117
return hnts ;
118
118
}
119
119
120
- public static HashMap <String , ArrayList <String >> execGetFattr (String filename ,HashMap <String , Integer > meta ,CMD cmd ) throws IOException {
120
+ public HashMap <String , ArrayList <String >> execGetFattr (String filename ,HashMap <String , Integer > meta ,CMD cmd ) throws IOException {
121
121
Process p =null ;
122
122
BufferedReader brInput =null ;
123
123
String s =null ;
@@ -228,7 +228,7 @@ else if(enclosingXl.equalsIgnoreCase("distribute"))
228
228
return vol ;
229
229
}
230
230
231
- static BlockLocation [] getHints (HashMap <String , ArrayList <String >> vol ,HashMap <String , Integer > meta ,long start ,long len ,TreeMap <Integer , GlusterFSBrickClass > hnts ) throws IOException {
231
+ BlockLocation [] getHints (HashMap <String , ArrayList <String >> vol ,HashMap <String , Integer > meta ,long start ,long len ,TreeMap <Integer , GlusterFSBrickClass > hnts ) throws IOException {
232
232
String brick =null ;
233
233
String key =null ;
234
234
boolean done =false ;
@@ -430,7 +430,7 @@ else if(allocCtr<=stripedBricks.size()){
430
430
}
431
431
432
432
/* TODO: use meta{dcount,scount,rcount} for checking */
433
- public static int getReplicationFromLayout (HashMap <String , ArrayList <String >> vol ,HashMap <String , Integer > meta ) throws IOException {
433
+ public int getReplicationFromLayout (HashMap <String , ArrayList <String >> vol ,HashMap <String , Integer > meta ) throws IOException {
434
434
int replication =0 ;
435
435
LAYOUT l =LAYOUT .valueOf (vol .get ("layout" ).get (0 ));
436
436
0 commit comments