Java Doc for AbstractRolloverLog.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » log » 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 » EJB Server resin 3.1.5 » resin » com.caucho.log 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.log.AbstractRolloverLog

All known Subclasses:   com.caucho.server.log.AccessLogWriter,
AbstractRolloverLog
public class AbstractRolloverLog (Code)
Abstract class for a log that rolls over based on size or period.

Inner Class :class ArchiveTask implements Runnable

Field Summary
final protected static  L10NL
    
protected  Path_path
    
protected  String_pathFormat
    


Method Summary
public synchronized  voidclose()
     Closes the log, flushing the results.
protected  voidflush()
     Writes to the underlying log.
public  StringgetArchiveFormat()
    
protected  PathgetArchivePath(long time)
    
protected  StringgetFormatName(String format, long time)
    
public  longgetNextRolloverCheckTime()
    
public  PathgetPath()
     Returns the access-log's path.
protected  PathgetPath(long time)
    
public  StringgetPathFormat()
    
public  PathgetPwd()
    
public  longgetRolloverCheckPeriod()
     Sets how often the log rollover will be checked.
public  longgetRolloverPeriod()
     Sets the log rollover period, rounded up to the nearest hour.
public  longgetRolloverSize()
     Sets the log rollover size, rounded up to the megabyte.
public  voidinit()
     Initialize the log.
public  booleanisRollover()
    
public  booleanrollover()
    
protected  voidrolloverLog(long now)
     Check to see if we need to rollover the log.
public  voidsetArchiveFormat(String format)
    
public  voidsetLastTime(long lastTime)
    
public  voidsetPath(Path path)
     Sets the access-log's path.
public  voidsetPathFormat(String pathFormat)
     Sets the formatted path.
public  voidsetRolloverCheckPeriod(long period)
     Sets how often the log rollover will be checked.
public  voidsetRolloverCount(int count)
     Sets the max rollover files.
public  voidsetRolloverPeriod(Period period)
     Sets the log rollover period, rounded up to the nearest hour.
public  voidsetRolloverSize(Bytes bytes)
     Sets the log rollover size, rounded up to the megabyte.
protected  voidwrite(byte[] buffer, int offset, int length)
     Writes to the underlying log.

Field Detail
L
final protected static L10N L(Code)



_path
protected Path _path(Code)



_pathFormat
protected String _pathFormat(Code)





Method Detail
close
public synchronized void close() throws IOException(Code)
Closes the log, flushing the results.



flush
protected void flush() throws IOException(Code)
Writes to the underlying log.



getArchiveFormat
public String getArchiveFormat()(Code)
Sets the archive name format



getArchivePath
protected Path getArchivePath(long time)(Code)
Returns the name of the archived file
Parameters:
  time - the archive date



getFormatName
protected String getFormatName(String format, long time)(Code)
Returns the name of the archived file
Parameters:
  time - the archive date



getNextRolloverCheckTime
public long getNextRolloverCheckTime()(Code)



getPath
public Path getPath()(Code)
Returns the access-log's path.



getPath
protected Path getPath(long time)(Code)
Returns the path of the format file
Parameters:
  time - the archive date



getPathFormat
public String getPathFormat()(Code)
Returns the formatted path



getPwd
public Path getPwd()(Code)
Returns the pwd for the rollover log



getRolloverCheckPeriod
public long getRolloverCheckPeriod()(Code)
Sets how often the log rollover will be checked. how often the log rollover will be checked.



getRolloverPeriod
public long getRolloverPeriod()(Code)
Sets the log rollover period, rounded up to the nearest hour. the new period in milliseconds.



getRolloverSize
public long getRolloverSize()(Code)
Sets the log rollover size, rounded up to the megabyte. maximum size of the log file



init
public void init() throws IOException(Code)
Initialize the log.



isRollover
public boolean isRollover()(Code)



rollover
public boolean rollover()(Code)



rolloverLog
protected void rolloverLog(long now)(Code)
Check to see if we need to rollover the log.
Parameters:
  now - current time in milliseconds.



setArchiveFormat
public void setArchiveFormat(String format)(Code)
Sets the archive name format



setLastTime
public void setLastTime(long lastTime)(Code)



setPath
public void setPath(Path path)(Code)
Sets the access-log's path.



setPathFormat
public void setPathFormat(String pathFormat) throws ConfigException(Code)
Sets the formatted path.



setRolloverCheckPeriod
public void setRolloverCheckPeriod(long period)(Code)
Sets how often the log rollover will be checked.
Parameters:
  period - how often the log rollover will be checked.



setRolloverCount
public void setRolloverCount(int count)(Code)
Sets the max rollover files.



setRolloverPeriod
public void setRolloverPeriod(Period period)(Code)
Sets the log rollover period, rounded up to the nearest hour.
Parameters:
  period - the new rollover period in milliseconds.



setRolloverSize
public void setRolloverSize(Bytes bytes)(Code)
Sets the log rollover size, rounded up to the megabyte.
Parameters:
  bytes - maximum size of the log file



write
protected void write(byte[] buffer, int offset, int length) throws IOException(Code)
Writes to the underlying log.



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.