1 18 35 package org.objectweb.util.monolog.wrapper.remote.api; 36 37 import org.objectweb.util.monolog.api.Level; 38 39 import java.rmi.RemoteException ; 40 import java.util.Map ; 41 import java.util.Properties ; 42 43 50 public interface MonologFactoryProxy { 51 52 58 boolean defineLevel(String name, int value) throws RemoteException ; 59 60 67 boolean defineLevel(String name, String value) throws RemoteException ; 68 69 72 void removeLevel(String name) throws RemoteException ; 73 74 79 Level getLevel(String name) throws RemoteException ; 80 81 89 Level getLevel(int value) throws RemoteException ; 90 91 94 Level[] getLevels() throws RemoteException ; 95 96 104 int compareTo(String levelname1, String levelname2) throws RemoteException ; 105 106 113 boolean createHandler(String hn, String handlertype) throws RemoteException ; 114 115 120 boolean removeHandler(String handlername) throws RemoteException ; 121 122 125 String [] getHandlerNames() throws RemoteException ; 126 127 133 Map getHandlerAttributes(String handlername) throws RemoteException ; 134 135 142 Map getAllHandlerAttributes() throws RemoteException ; 143 144 150 void setHandlerAttribute(String handlername, 151 String attributeName, 152 String value) throws RemoteException ; 153 154 155 159 LoggerInfo getLogger(String loggername) throws RemoteException ; 160 161 167 LoggerInfo getLogger(String key, String resourceBundleName) throws RemoteException ; 168 169 172 String getResourceBundleName() throws RemoteException ; 173 174 177 void setResourceBundleName(String resourceBundleName) throws RemoteException ; 178 179 182 LoggerInfo[] getLoggers() throws RemoteException ; 183 184 189 void addHandlerToLogger(String handlerName, String loggerName) throws RemoteException ; 190 191 195 void removeHandlerFromLogger(String handlerName, String loggerName) throws RemoteException ; 196 197 201 void removeAllHandlersFromLogger(String loggerName) throws RemoteException ; 202 203 206 void setAdditivity(boolean a, String loggerName) throws RemoteException ; 207 208 213 void setLoggerLevel(int level, String loggerName) throws RemoteException ; 214 215 222 void setLoggerLevel(String levelName, String loggerName) throws RemoteException ; 223 224 230 void addTopicToLogger(String topic, String loggerName) throws RemoteException ; 231 232 238 void removeTopicFromLogger(String topic, String loggerName) throws RemoteException ; 239 240 243 Properties getMonologProperties() throws RemoteException ; 244 245 248 void setMonologProperties(Properties p) throws RemoteException ; 249 } 250 | Popular Tags |