Java Doc for LogDownloader.java in  » Testing » PolePosition-0.20 » com » versant » core » jdo » 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 » Testing » PolePosition 0.20 » com.versant.core.jdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.jdo.LogDownloader

LogDownloader
public class LogDownloader implements VersantBackgroundTask(Code)
Utility bean to download event logs and performance metric snapshots and store then in binary and/or text files. The binary files can be opened in the Workbench for later analysis. This can be run from the command line or embedded into an application. The JDO Genie server uses an instance of this class for its built in logging features. To use it in an application create an instance, set properties and invoke the run() method at regular intervals (e.g. create a Thread to do this).




Method Summary
protected  StringgenerateFilename()
     Generate a filename.
public  intgetBackups()
    
public  StringgetDateFormat()
    
public  intgetEventPollSecs()
    
public  StringgetFilename()
    
public  StringgetHost()
    
public  intgetMaxFileSizeK()
    
public  intgetMetricPollSecs()
    
public  StringgetPassword()
    
public  VersantPersistenceManagerFactorygetPmf()
    
public  intgetPort()
    
public  StringgetProject()
    
public  StringgetServer()
    
public  StringgetUsername()
    
public  booleanisAppend()
    
public  booleanisEventBinary()
    
public  booleanisEventText()
    
public  booleanisMetricBinary()
    
public  booleanisQuiet()
    
public  booleanisSingle()
    
protected  voidlog(String msg)
    
public static  voidmain(String[] args)
    
public static  voidrun(LogDownloader l)
    
public  voidrun()
    
protected  voidrunImp()
    
public  voidsetAppend(boolean append)
    
public  voidsetBackups(int backups)
    
public  voidsetDateFormat(String dateFormat)
    
public  voidsetEventBinary(boolean eventBinary)
    
public  voidsetEventPollSecs(int eventPollSecs)
    
public  voidsetEventText(boolean eventText)
    
public  voidsetFilename(String filename)
    
public  voidsetHost(String host)
    
public  voidsetMaxFileSizeK(int maxFileSizeK)
    
public  voidsetMetricBinary(boolean metricBinary)
    
public  voidsetMetricPollSecs(int metricPollSecs)
    
public  voidsetPassword(String password)
    
public  voidsetPmf(VersantPersistenceManagerFactory pmf)
    
public  voidsetPort(int port)
    
public  voidsetProject(String project)
    
public  voidsetQuiet(boolean quiet)
    
public  voidsetServer(String server)
    
public  voidsetSingle(boolean single)
    
public  voidsetUsername(String username)
    
public  voidshutdown()
     Stop downloading events.



Method Detail
generateFilename
protected String generateFilename()(Code)
Generate a filename. This is invoked if no filename has been set when the pmf is set.



getBackups
public int getBackups()(Code)



getDateFormat
public String getDateFormat()(Code)



getEventPollSecs
public int getEventPollSecs()(Code)



getFilename
public String getFilename()(Code)



getHost
public String getHost()(Code)



getMaxFileSizeK
public int getMaxFileSizeK()(Code)



getMetricPollSecs
public int getMetricPollSecs()(Code)



getPassword
public String getPassword()(Code)



getPmf
public VersantPersistenceManagerFactory getPmf()(Code)



getPort
public int getPort()(Code)



getProject
public String getProject()(Code)



getServer
public String getServer()(Code)



getUsername
public String getUsername()(Code)



isAppend
public boolean isAppend()(Code)



isEventBinary
public boolean isEventBinary()(Code)



isEventText
public boolean isEventText()(Code)



isMetricBinary
public boolean isMetricBinary()(Code)



isQuiet
public boolean isQuiet()(Code)



isSingle
public boolean isSingle()(Code)



log
protected void log(String msg)(Code)



main
public static void main(String[] args)(Code)



run
public static void run(LogDownloader l) throws Exception(Code)



run
public void run()(Code)



runImp
protected void runImp() throws Exception(Code)



setAppend
public void setAppend(boolean append)(Code)



setBackups
public void setBackups(int backups)(Code)



setDateFormat
public void setDateFormat(String dateFormat)(Code)



setEventBinary
public void setEventBinary(boolean eventBinary)(Code)



setEventPollSecs
public void setEventPollSecs(int eventPollSecs)(Code)



setEventText
public void setEventText(boolean eventText)(Code)



setFilename
public void setFilename(String filename)(Code)



setHost
public void setHost(String host)(Code)



setMaxFileSizeK
public void setMaxFileSizeK(int maxFileSizeK)(Code)



setMetricBinary
public void setMetricBinary(boolean metricBinary)(Code)



setMetricPollSecs
public void setMetricPollSecs(int metricPollSecs)(Code)



setPassword
public void setPassword(String password)(Code)



setPmf
public void setPmf(VersantPersistenceManagerFactory pmf) throws Exception(Code)



setPort
public void setPort(int port)(Code)



setProject
public void setProject(String project)(Code)



setQuiet
public void setQuiet(boolean quiet)(Code)



setServer
public void setServer(String server)(Code)



setSingle
public void setSingle(boolean single)(Code)



setUsername
public void setUsername(String username)(Code)



shutdown
public void shutdown()(Code)
Stop downloading events. This will cause one more call to the server to get any remaining data and then the run method will return. You should also interrupt the Thread that called run to speed exit of the run method.



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.