1 21 22 package org.apache.derby.iapi.services.monitor; 23 24 import org.apache.derby.iapi.services.info.ProductVersionHolder; 25 import org.apache.derby.iapi.error.StandardException; 26 import org.apache.derby.iapi.services.stream.InfoStreams; 27 import org.apache.derby.iapi.services.monitor.PersistentService; 28 import org.apache.derby.iapi.services.loader.InstanceGetter; 29 30 import java.util.Properties ; 31 import java.util.Locale ; 32 import java.io.InputStream ; 33 import java.io.IOException ; 34 35 39 40 public interface ModuleFactory 41 { 42 43 49 public Object findModule(Object service, String protocol, String identifier); 50 51 54 public String getServiceName(Object serviceModule); 55 56 60 public Locale getLocale(Object serviceModule); 61 62 67 public Locale getLocaleFromString(String localeDescription) 68 throws StandardException; 69 70 71 81 public Locale setLocale(Object serviceModule, String userDefinedLocale) 82 throws StandardException; 83 84 90 public Locale setLocale(Properties serviceProperties, 91 String userDefinedLocale) 92 throws StandardException; 93 94 98 public PersistentService getServiceType(Object serviceModule); 99 100 107 public PersistentService getServiceProvider(String subSubProtocol) throws StandardException; 108 109 public Properties getApplicationProperties(); 110 111 115 public void shutdown(); 116 117 122 public void shutdown(Object service); 123 124 125 134 public InstanceGetter classFromIdentifier(int identifier) 135 throws StandardException; 136 137 147 public Object newInstanceFromIdentifier(int identifier) 148 throws StandardException; 149 150 160 public Object getEnvironment(); 161 162 163 173 public String [] getServiceList(String protocol); 174 175 194 public boolean startPersistentService(String serviceName, Properties properties) 195 throws StandardException; 196 197 206 public Object createPersistentService(String factoryInterface, String serviceName, Properties properties) 207 throws StandardException; 208 public void removePersistentService(String name) 209 throws StandardException; 210 211 221 public Object startNonPersistentService(String factoryInterface, String serviceName, Properties properties) 222 throws StandardException; 223 224 225 235 public Object findService(String protocol, String identifier); 236 237 238 249 public Object startModule(boolean create, Object service, String protocol, 250 String identifier, Properties properties) 251 throws StandardException; 252 253 254 257 public InfoStreams getSystemStreams(); 258 259 260 265 public void startServices(Properties properties, boolean bootAll); 266 267 273 public String getJVMProperty(String key); 274 275 279 public Thread getDaemonThread(Runnable task, String name, boolean setMinPriority); 280 281 285 public void setThreadPriority(int priority); 286 287 public ProductVersionHolder getEngineVersion(); 288 289 293 public org.apache.derby.iapi.services.uuid.UUIDFactory getUUIDFactory(); 294 295 301 public org.apache.derby.iapi.services.timer.TimerFactory getTimerFactory(); 302 } 303 | Popular Tags |