Source code for /engineering/autohit-2003/src/autohit/common/AutohitProperties.javaOriginal file AutohitProperties.java
   1 /**
   2  * AUTOHIT 2003
   3  * Copyright Erich P Gatejen (c) 1989,1997,2003,2004
   4  * 
   5  * This program is free software; you can redistribute it and/or modify 
   6  * it under the terms of the GNU General Public License as published by 
   7  * the Free Software Foundation; either version 2 of the License, or (at
   8  * your option) any later version.
   9  * This program is distributed in the hope that it will be useful, but
  10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12  * more details.
  13  * 
  14  * You should have received a copy of the GNU General Public License along
  15  * with this program; if not, write to the Free Software Foundation, Inc.,
  16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17  *
  18  * Additional license information can be found in the documentation.
  19  * @author Erich P Gatejen
  20  */
  21 package autohit.common;
  22 
  23 /**
  24  * Properties for configuration
  25  *
  26  * @author Erich P. Gatejen
  27  * @version 1.0
  28  * <i>Version History</i>
  29  * <code>EPG - Rewrite - 9Apr03 
  30  * 
  31  */
  32 public interface AutohitProperties {
  33 
  34 	/**
  35 	 * General system properties.
  36 	 */
  37 	public final static String SYSTEM_DEBUG = "debug";
  38 	public final static String SYSTEM_WIRE_DEBUG = "wire";
  39 	public final static String BOOTSTRAP_CONTEXT_CLASS = "bootstrap.context.class";
  40 
  41 	/**
  42 	 * ROOT path of install.
  43 	 * Plus path modifier literals. 
  44 	 */
  45 	public final static String ROOT_PATH = "root";
  46 	
  47 	public final static String literal_DTD_PATH = "/lib/dtd";
  48 	public final static char literal_PATH_SEPERATOR = '/';
  49 	public final static char literal_NAME_SEPERATOR = Constants.ANAMESPACE_SEPERATOR;	
  50 
  51 	/**
  52 	 * LOG FILES
  53 	 * type = the type of handler
  54 	 * path = directory path to the logs; does not include log file name
  55 	 */
  56 	public final static String LOGS_CONTROL_STATION = "autohit.control.logger";
  57 	public final static String LOGS_CLIENT_STATION = "autohit.client.logger";
  58 	public final static String LOGS_CONTROL_INJECTOR = "autohit.control.injector.log";
  59 	public final static String LOGS_CLIENT_INJECTOR = "autohit.client.injector.log";
  60 	public final static String LOGS_CONTROL_DRAIN = "autohit.control.drain.log";
  61 	public final static String LOGS_CLIENT_DRAIN = "autohit.client.drain.log";
  62 
  63 	public final static String LOGS_PRETTY_PRINT = "log.pretty";
  64 	public final static String LOGS_TIMESTAMP = "log.stamp";
  65 	public final static String LOGS_LINE_LIMIT = "log.linelimit";
  66 	public final static String LOGS_LINE_SIZE = "log.linesize";	
  67 	public final static int LOGS_ARBITRARY_ENTRY_LIMIT_DEFAULT = 16000;
  68 	public final static int LOGS_LINE_SIZE_DEFAULT = 120;
  69 
  70 	public final static String LOGS_LOCATION_CONTROL = "log.control.location";
  71 	public final static String LOGS_TYPE_CONTROL = "log.control.type";
  72 	public final static String LOGS_LOCATION_CLIENT = "log.client.location";
  73 	public final static String LOGS_TYPE_CLIENT = "log.client.type";
  74 	public final static String LOGS_TYPE__FILE = "file";
  75 	public final static String LOGS_TYPE__CONSOLE = "console";
  76 	public final static String LOGS_TYPE__CLASS = "class";
  77 	
  78 	/**
  79 	 * LOG IDs
  80 	 */	
  81 	public final static String LOGS_ROOT_ID = "AH";	 
  82 	public final static String SYSTEM_GENERIC_ID = "!!";	
  83 	public final static String SYSTEM_COMMANDCONTROL_ID = "cO";	
  84 	public final static String SYSTEM_COMMANDRESPONSE_ID = "rE";	
  85 	
  86 	/**
  87 	 * UNIVERSE
  88 	 */
  89 	public final static String DEFAULT_UNIVERSE_HANDLE = "universe.root.handle";
  90 	public final static String DEFAULT_UNIVERSE_PATH = "universe.root.path";
  91 	public final static String DEFAULT_UNIVERSE_PROP = "universe.root.config";	
  92 	public final static String literal_DEFAULT_UNIVERSE_HANDLE = "root";
  93 	public final static String literal_UNIVERSE_CACHE = "cache";
  94 	public final static String literal_DEFAULT_UNIVERSE_PATH = "/universe";
  95 	public final static String literal_DEFAULT_UNIVERSE_PROP = "universe.prop";
  96 	
  97 	/**
  98 	 * COMMAND SYSTEM
  99 	 */	
 100 	public final static String COMMAND_DEFAULT_REGISTRY = "/etc/cmdregistry-builtin.prop"; 
 101 
 102 	public final static String COMMAND_SERVER_STATION = "autohit.command";
 103 	public final static String COMMAND_SERVER_DRAIN_NAME = "Command Server";
 104 	public final static String COMMAND_SERVER_DRAIN = "autohit.command.drain";
 105 	public final static String COMMAND_SERVER_INJECTOR = "autohit.command.injector";
 106 	
 107 	/**
 108 	 * CONFIGURATION SYSTEM
 109 	 */	
 110 	public final static String vDEFAULT_CHECKPOINT = "all.config";
 111 	public final static String vCONFIG_ROOT = "/etc/config/";
 112 	public final static String vCONFIG_FILE = "config";
 113 	public final static String vFACTORY_STORE = "factory";
 114 	public final static String vKICK_STORE = "kick";
 115 	public final static String vVAR_ROOT = "/etc/";
 116 	public final static String vBIN_ROOT = "/bin/";
 117 	public final static String vLOG_ROOT = "/log/";
 118 	public final static String CONFIG_ROOT_CONFIG = "ROOT";
 119 	public final static String CONFIG_JAVA_CONFIG = "JAVA_EXEC";
 120 	
 121 	// It this file is there, then assume the path is indeed an autohit root
 122 	public final static String vKICK_VERIFICATION_FILE = "/bin/kick.bat";
 123 	
 124 	/**
 125 	 * FILESYSTEM RELATED
 126 	 */	
 127 	public final static String literal_FS_DUMP_EXTENSION =".dmp";
 128 	public final static String literal_FS_LOG_EXTENSION =".log";	
 129 
 130 	/**
 131 	 * SERVICES
 132 	 */	
 133 	public final static String SERVICE_SOCKETRELAY_DESTINATION_ADDR = "service.socketrelay.destination.addr";
 134 	public final static String SERVICE_SOCKETRELAY_DESTINATION_PORT = "service.socketrelay.destination.port";
 135 	public final static String SERVICE_SOCKETRELAY_DESTINATION_ADDR_default = "127.0.0.1";
 136 	public final static String SERVICE_SOCKETRELAY_WIRELOGGING = "service.socketrelay.wire";
 137 	public final static int SERVICE_SOCKETRELAY_DESTINATION_PORT_default = 25;
 138 
 139 	public final static String SERVICE_SOCKETRELAY_SERVER_PORT = "service.socketrelay.server.port";
 140 	public final static String SERVICE_HTTPCOMMAND_SERVER_PORT = "service.httpcommand.server.port";
 141 	
 142 	public final static int default_SOCKETRELAY_SERVER_PORT = 6060;
 143 	public final static int default_HTTPCOMMAND_SERVER_PORT = 6061;
 144 
 145 }
 146 
 147