View Javadoc

1   /*
2    * GUMS2MapUser.java
3    *
4    * Created on June 9, 2004, 1:44 PM
5    */
6   package gov.bnl.gums.admin;
7   
8   
9   import org.apache.axis.AxisFault;
10  
11  import org.apache.commons.cli.*;
12  
13  import java.net.ConnectException;
14  import java.net.InetAddress;
15  import java.net.URL;
16  import gov.bnl.gums.command.AbstractCommand;
17  
18  
19  /***
20   * @author carcassi
21   */
22  public class MapfileCache_Refresh extends RemoteCommand {
23      static {
24          command = new MapfileCache_Refresh();
25      }
26  
27      /***
28       * Creates a new MapfileCache_Refresh object.
29       */
30      public MapfileCache_Refresh() {
31          syntax = "";
32          description = "Regenerate the maps for all hosts and saves them in the mapfile cache.";
33      }
34  
35      protected org.apache.commons.cli.Options buildOptions() {
36          Options options = new Options();
37  
38          return options;
39      }
40  
41      protected void execute(org.apache.commons.cli.CommandLine cmd)
42          throws Exception {
43          getGums().mapfileCacheRefresh();
44      }
45  }