Java Doc for RMILog.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » rmi » common » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.rmi.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  LevelBRIEF
     RMI logging level corresponding to Level.FINE value.
final public static  LevelSILENT
     RMI logging level corresponding to Level.OFF value.
final public static  LevelVERBOSE
     RMI logging level corresponding to Level.FINER value.


Method Summary
public static  RMILoggetActivationLog()
     Helper method.
public static  RMILoggetClientCallsLog()
     Helper method.
public static  RMILoggetClientRefLog()
     Helper method.
public static  RMILoggetDGCLog()
     Helper method.
public static  RMILoggetLoaderLog()
     Helper method.
public static  RMILoggetLog(String loggerName, String logLevel)
     Creates RMILog.
public static  RMILoggetLog(String loggerName, Level logLevel)
     Creates RMILog.
public synchronized  PrintStreamgetPrintStream()
     Returns PrintStream where RMI logs messages.
public static  RMILoggetProxyTransportLog()
     Helper method.
public static  RMILoggetServerCallsLog()
     Helper method.
public static  RMILoggetServerRefLog()
     Helper method.
public static  RMILoggetTcpTransportLog()
     Helper method.
public static  RMILoggetTransportLog()
     Helper method.
public  booleanisLoggable(Level l)
     Checks if underlying logger would log a message with the specified level.
public  voidlog(Level l, String msg)
     Logs specified message prepended by the current Thread's name with the given level to the underlying logger.
public  voidlog(Level l, String msg, Throwable t)
     Logs specified message prepended by the current Thread's name and Throwable object with the given level to the underlying logger.
public static  LevelparseLevelString(String levelStr)
     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.
public synchronized  voidsetOutputStream(OutputStream out)
     Adds additional handler to the underlying logger from the given OutputStream.

Field Detail
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.





Method Detail
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)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.