View Javadoc

1   /*
2    * $Id: Utils.java 1430 2010-11-03 16:21:30Z hoheisel $
3    *
4    * Copyright (c) 2005, The K-Wf Grid Consortium
5    * Fraunhofer Institute for Computer Architecture and Software Technology
6    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
7    */
8   
9   package net.kwfgrid.gwes.servlet;
10  
11  /**
12   * @author Andreas Hoheisel
13   *         (<a href="http://www.andreas-hoheisel.de">www.andreas-hoheisel.de</a>)
14   * @version $Id: Utils.java 1430 2010-11-03 16:21:30Z hoheisel $
15   */
16  public class Utils {
17  
18      public static String getFromString(int removeLevel) {
19          switch (removeLevel) {
20            case 0: return "nowhere";
21            case 1: return "memory";
22            case 2: return "database";
23            case 3: return "memory, and database";
24            case 4: return "remote file systems";
25            case 5: return "memory, and remote file systems";
26            case 6: return "database, and remote file systems";
27            case 7: return "memory, database, and remote file systems";
28          }
29          return "nowhere";
30      }
31  
32  }