1 21 22 package org.apache.derby.iapi.services.monitor; 23 24 import org.apache.derby.io.StorageFactory; 25 26 import org.apache.derby.iapi.error.StandardException; 27 import org.apache.derby.iapi.reference.Property; 28 29 import java.util.Properties ; 30 import java.util.Enumeration ; 31 32 import java.io.IOException ; 33 34 59 60 public interface PersistentService { 61 62 65 public static final String DIRECTORY = "directory"; 66 67 70 public static final String CLASSPATH = "classpath"; 71 72 75 public static final String JAR = "jar"; 76 77 80 public static final String HTTP = "http"; 81 public static final String HTTPS = "https"; 82 83 84 87 public static final String PROPERTIES_NAME = "service.properties"; 88 89 92 public static final String ROOT = Property.PROPERTY_RUNTIME_PREFIX + "serviceDirectory"; 93 94 97 public static final String TYPE = Property.PROPERTY_RUNTIME_PREFIX + "serviceType"; 98 99 102 public String getType(); 103 104 115 public Enumeration getBootTimeServices(); 116 117 125 public Properties getServiceProperties(String serviceName, Properties defaultProperties) 126 throws StandardException; 127 128 131 public void saveServiceProperties(String serviceName, 132 StorageFactory storageFactory, 133 Properties properties, 134 boolean replace) 135 throws StandardException; 136 137 142 public void saveServiceProperties(String serviceName, 143 Properties properties, 144 boolean replace) 145 throws StandardException; 146 147 152 public String createServiceRoot(String name, boolean deleteExisting) 153 throws StandardException; 154 155 158 public boolean removeServiceRoot(String serviceName); 159 160 166 public String getCanonicalServiceName(String name) 167 throws StandardException; 168 169 173 public String getUserServiceName(String serviceName); 174 175 176 public boolean isSameService(String serviceName1, String serviceName2); 177 178 181 public boolean hasStorageFactory(); 182 183 199 public StorageFactory getStorageFactoryInstance(boolean useHome, 200 String databaseName, 201 String tempDirName, 202 String uniqueName) 203 throws StandardException, IOException ; 204 } 205 | Popular Tags |