1
2
3
4
5
6
7
8
9
10
11 package org.astrogrid.templateservice ;
12
13 import org.astrogrid.Configurator ;
14
15
16 /***
17 * The <code>MYS</code> class represents
18 *
19 * @author Jeff Lusted
20 * @version 1.0 08-Jul-2003
21 * @see
22 * @see
23 * @since AstroGrid 1.2
24 */
25 public class MYS extends org.astrogrid.Configurator {
26
27 public static final String
28 /*** Three letter acronym for this component within the overall AstroGrid system...
29 * "MYC" stands for DaTaCenter */
30 SUBSYSTEM_ACRONYM = "MYS" ;
31
32 public static final String
33 /*** Configuration file for this component. */
34 CONFIG_FILENAME = "ASTROGRID_mycomponentconfig.xml" ;
35
36 public static final String
37 /*** DatasetAgent category within the component's configuration */
38 DATASETAGENT_CATEGORY = "DATASETAGENT" ,
39 /*** Key within component's configuration signifying whether the web service request
40 * document is to be parsed with validation turned on or off*/
41 DATASETAGENT_PARSER_VALIDATION = "PARSER.VALIDATION" ;
42
43 public static final String
44 /*** Monitor category within the component's configuration */
45 MONITOR_CATEGORY = "MONITOR" ,
46 /*** Key within component's configuration signifying whether the web service request
47 * document is to be parsed with validation turned on or off */
48 MONITOR_REQUEST_TEMPLATE = "TEMPLATE.REQUEST" ;
49
50 public static final String
51 /*** Votable category within the component's configuration */
52 VOTABLE_CATEGORY = "VOTABLE" ,
53 /*** Key within component's configuration identifying the Votable factory implementation class */
54 VOTABLE_FACTORY = "FACTORY" ;
55
56 public static final String
57 /*** Job category within the component's configuration */
58 JOB_CATEGORY = "JOB" ,
59 /*** Key within component's configuration signifying JNDI location of Job datasource */
60 JOB_DATASOURCE_LOCATION = "DATASOURCE" ,
61 /*** Key within component's configuration signifying name of Job table */
62 JOB_TABLENAME = "TABLENAME" ,
63 /*** Key within component's configuration identifying the Job factory implementation class */
64 JOB_FACTORY = "FACTORY" ;
65
66 public static final String
67 /*** MySpace category within the component's configuration */
68 MYSPACE_CATEGORY = "MYSPACE" ,
69 /*** Key within component's configuration signifying directory
70 * where VOTables are to be written to */
71 MYSPACE_CACHE_DIRECTORY = "CACHE_DIRECTORY" ,
72 /*** Key within component's configuration identifying the MySpaceManager service location */
73 MYSPACE_URL = "URL" ,
74 /*** Key within component's configuration identifying the MySpace factory implementation class */
75 MYSPACE_FACTORY = "FACTORY" ,
76 /*** Key within component's configuration identifying the MySpace factory implementation class */
77 MYSPACE_REQUEST_TEMPLATE = "REQUEST_TEMPLATE" ;
78
79 public static final String
80 /*** Catalog category within the component's configuration */
81 CATALOG_CATEGORY = "CATALOG" ,
82 /*** Key within component's configuration identifying the default query factory implementation class */
83 CATALOG_DEFAULT_QUERYFACTORY = ".QUERYFACTORY" ,
84 /*** Key within component's configuration identifying the default datasource */
85 CATALOG_DEFAULT_DATASOURCE = ".DATASOURCE" ,
86 /*** Key within component's configuration identifying the default query factory implementation class */
87 CATALOG_USNOB_QUERYFACTORY = "USNOB.QUERYFACTORY" ,
88 /*** Key within component's configuration identifying the default datasource */
89 CATALOG_USNOB_DATASOURCE = "USNOB.DATASOURCE" ;
90
91 public static final String
92 /*** UCD category within the component's configuration */
93 UCD_CATEGORY = "UCD" ;
94
95 private static MYS
96 singletonMYS = new MYS() ;
97
98
99 private MYS(){
100 super() ;
101 }
102
103
104 public static MYS getInstance() {
105 return singletonMYS ;
106 }
107
108
109 /***
110 *
111 * Static getter for properties from the component's configuration.
112 * <p>
113 *
114 * @param key - the property key within category
115 * @param category - the category within the configuration
116 * @return the String value of the property, or the empty string if null
117 *
118 * @see org.jconfig.jConfig
119 **/
120 public static String getProperty( String key, String category ) {
121 return Configurator.getProperty( SUBSYSTEM_ACRONYM, key, category ) ;
122 }
123
124 protected String getConfigFileName() { return CONFIG_FILENAME ; }
125 protected String getSubsystemAcronym() { return SUBSYSTEM_ACRONYM ; }
126
127
128 /***
129 *
130 * @see org.astrogrid.Configurator#getJNDIName()
131 */
132 protected String getJNDIName() {
133 return null;
134 }
135
136 }