| java.lang.Object org.apache.harmony.rmi.common.RMILog
RMILog | public class RMILog implements RMIProperties(Code) | | Class containing all RMI logging functionality.
author: Mikhail A. Markov version: $Revision: 1.1.2.4 $ |
Field Summary | |
final public static Level | BRIEF RMI logging level corresponding to Level.FINE value. | final public static Level | SILENT RMI logging level corresponding to Level.OFF value. | final public static Level | VERBOSE RMI logging level corresponding to Level.FINER value. |
BRIEF | final public static Level BRIEF(Code) | | RMI logging level corresponding to Level.FINE value.
|
SILENT | final public static Level SILENT(Code) | | RMI logging level corresponding to Level.OFF value.
|
VERBOSE | final public static Level VERBOSE(Code) | | RMI logging level corresponding to Level.FINER value.
|
getActivationLog | public static RMILog getActivationLog()(Code) | | Helper method. Returns RMILog for logging Activation/ActivationGroup/Rmid
events. If such a log does not exist, creates it.
RMILog for logging remote calls on server side |
getClientCallsLog | public static RMILog getClientCallsLog()(Code) | | Helper method.
Returns RMILog for logging remote calls on client side.
If such a log does not exist, creates it.
RMILog for logging remote calls on client side |
getClientRefLog | public static RMILog getClientRefLog()(Code) | | Helper method.
Returns RMILog for logging remote reference activity on client side.
If such a log does not exist, creates it.
RMILog for logging remote reference activity on client side |
getDGCLog | public static RMILog getDGCLog()(Code) | | Helper method.
Returns RMILog for logging DGC activity.
If such a log does not exist, creates it.
RMILog for logging DGC activity |
getLoaderLog | public static RMILog getLoaderLog()(Code) | | Helper method.
Returns RMILog for logging activity of default RMIClassLoader provider.
If such a log does not exist, creates it.
RMILog for logging activity of default RMIClassLoader provider |
getLog | public static RMILog getLog(String loggerName, String logLevel)(Code) | | Creates RMILog. Underlying logger will have the name 'loggerName'. The
level for created RMILog will be equal to 'logLevel' value.
Parameters: loggerName - the name of the logger to be obtained Parameters: logLevel - the level for RMILog: it should be one of RMI logging levels(SILENT, BRIEF, VERBOSE or one of levels fromjava.util.logging.Level class |
getLog | public static RMILog getLog(String loggerName, Level logLevel)(Code) | | Creates RMILog. Underlying logger will have the name 'loggerName'. The
level for created RMILog will be equal to 'logLevel' value.
Parameters: loggerName - the name of the logger to be obtained Parameters: logLevel - the level for RMILog |
getPrintStream | public synchronized PrintStream getPrintStream()(Code) | | Returns PrintStream where RMI logs messages.
This method is intended to be used by RemoteServer.getLog() method
PrintStream where RMI logs messages (possibly null) See Also: RemoteServer.getLog() |
getProxyTransportLog | public static RMILog getProxyTransportLog()(Code) | | Helper method.
Returns RMILog for logging HTTP connections activity.
If such a log does not exist, creates it.
RMILog for logging HTTP connections activity |
getServerCallsLog | public static RMILog getServerCallsLog()(Code) | | Helper method.
Returns RMILog for logging remote calls on server side.
If such a log does not exist, creates it.
RMILog for logging remote calls on server side |
getServerRefLog | public static RMILog getServerRefLog()(Code) | | Helper method.
Returns RMILog for logging remote reference activity on server side.
If such a log does not exist, creates it.
RMILog for logging remote reference activity on server side |
getTcpTransportLog | public static RMILog getTcpTransportLog()(Code) | | Helper method.
Returns RMILog for logging TCP binding/connection activity.
If such a log does not exist, creates it.
RMILog for logging TCP binding/connection activity |
getTransportLog | public static RMILog getTransportLog()(Code) | | Helper method.
Returns RMILog for logging transport-layer activity.
If such a log does not exist, creates it.
RMILog for logging transport-layer activity |
isLoggable | public boolean isLoggable(Level l)(Code) | | Checks if underlying logger would log a message with the specified
level.
Parameters: l - Logging level to be checked true if underlying logger would log a message withthe specified level and false otherwise |
log | public void log(Level l, String msg)(Code) | | Logs specified message prepended by the current Thread's name
with the given level to the underlying logger.
Parameters: l - logging level of the message Parameters: msg - message to be logged |
log | public void log(Level l, String msg, Throwable t)(Code) | | Logs specified message prepended by the current Thread's name
and Throwable object with the given level to the underlying logger.
Parameters: l - logging level of the message and Throwable Parameters: msg - message to be logged Parameters: t - Throwable to be logged |
parseLevelString | public static Level parseLevelString(String levelStr)(Code) | | Parses the given string and returns the corresponding Level object.
Possible values for the incoming string are one of RMI logging
levels (SILENT, BRIEF, VERBOSE or one of levels from
java.util.logging.Level class. If the given string is null or it could
not be parsed then Level.OFF value will be returned.
Parameters: levelStr - String to be parsed parsed Level or Level.OFF if the given string is null or anerror occurred while it's parsing |
setOutputStream | public synchronized void setOutputStream(OutputStream out)(Code) | | Adds additional handler to the underlying logger from the given
OutputStream. If this method with non-null parameter was already called
and thus additional handler already exists, this handler will be replaced
by newly created handler.
This method is intended to be used by RemoteServer.setLog() method.
Parameters: out - OutputStream for additional handler. If it's null thenmessages will not be logged to any additional handlers. See Also: RemoteServer.setLog(OutputStream) |
|
|