Java Doc for jvm.java in  » Database-DBMS » db-derby-10.2 » org » apache » derbyTesting » functionTests » harness » 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 » Database DBMS » db derby 10.2 » org.apache.derbyTesting.functionTests.harness 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derbyTesting.functionTests.harness.jvm

All known Subclasses:   org.apache.derbyTesting.functionTests.harness.jdk15,  org.apache.derbyTesting.functionTests.harness.j9_22,  org.apache.derbyTesting.functionTests.harness.ibm15,  org.apache.derbyTesting.functionTests.harness.currentjvm,  org.apache.derbyTesting.functionTests.harness.jdk13,  org.apache.derbyTesting.functionTests.harness.j9_13,  org.apache.derbyTesting.functionTests.harness.jdk16,  org.apache.derbyTesting.functionTests.harness.jdk14,  org.apache.derbyTesting.functionTests.harness.j9_foundation,  org.apache.derbyTesting.functionTests.harness.ibm14,  org.apache.derbyTesting.functionTests.harness.ibm13,
jvm
abstract public class jvm (Code)

This class provides the interface and mechanism for plugging VMs into the system. Typically you only need to add a new implementation if your supported attributes or command line building are different from those that exist.

this class has fields for all options that a JDK VM can take, that is the reference point for all others. Note some VMs (like jview) don't take all options and will ignore them (like -mx). Defining the system property "verbose" to 1 will give you warnings for ignored properties in a properly implemented subclass.

here is the canonical output from java -help for options we take:

 -noasyncgc        don't allow asynchronous garbage collection
 -verbosegc        print a message when garbage collection occurs
 -noclassgc        disable class garbage collection
 -ss       set the maximum native stack size for any thread
 -oss      set the maximum Java stack size for any thread
 -ms       set the initial Java heap size
 -mx       set the maximum Java heap size
 -classpath 
 list directories in which to look for classes
 -prof[:]    output profiling data to .\java.prof or .\
 -verify           verify all classes when read in
 -noverify         do not verify any class
 -nojit            turn off the jit
 -Dprop=name       define property; can be specified more than once
 

author:
   ames


Field Summary
public  VectorD
    
public  Stringclasspath
    
public  Stringflags
    
 StringhostName
    
public  intimajor
    
public  intiminor
    
public  StringjavaCmd
    
public  StringmajorVersion
    
public  StringminorVersion
    
public  longms
    
public  longmx
    
public  booleannoasyncgc
    
public  booleannoclassgc
    
public  booleannojit
    
public  booleannoverify
    
public  longoss
    
public  Stringprof
    
public  longss
    
public  booleanverbosegc
    
 intverboselevel
    
public  booleanverify
    

Constructor Summary
public  jvm()
    
public  jvm(boolean noasyncgc, boolean verbosegc, boolean noclassgc, long ss, long oss, long ms, long mx, String classpath, String prof, boolean verify, boolean noverify, boolean nojit, Vector D)
    
public  jvm(String classpath, Vector D)
    
public  jvm(long ms, long mx, String classpath, Vector D)
    

Method Summary
public static  StringfindCodeBase(boolean[] isJar)
    
public  VectorgetCommandLine()
    
public static  jvmgetCurrentJvm()
     Get the current JVM using the normal test harness rules for finding a JVM.
abstract public  StringgetDintro()
     return the property definition introducer, with a space if a separator is needed.
public static  jvmgetJvm(String jvmName)
     pass in class name for JVM.
public  intgetMajorVersion()
    
public  intgetMinorVersion()
    
abstract public  StringgetName()
    
static  VectorgetSecurityProps(Vector D)
    
protected static  StringguessWSHome()
    
public  voidsetClasspath(String classpath)
    
public  voidsetD(Vector D)
    
public  voidsetFlags(String flags)
    
public  voidsetJavaCmd(String jcmd)
    
public  voidsetMs(long ms)
    
public  voidsetMx(long mx)
    
public  voidsetNoasyncgc(boolean noasyncgc)
    
public  voidsetNoclassgc(boolean noclassgc)
    
public  voidsetNojit(boolean nojit)
    
public  voidsetNoverify(boolean noverify)
    
public  voidsetOss(long oss)
    
public  voidsetProf(String prof)
    
protected  voidsetSecurityProps()
     set up security properties for server command line.
public  voidsetSs(long ss)
    
public  voidsetVerbosegc(boolean verbosegc)
    
public  voidsetVerify(boolean verify)
    
public  voidsetVersion()
     Get the current JVM using the normal test harness rules for finding a JVM.
public  voidwarn(String msg)
    

Field Detail
D
public Vector D(Code)



classpath
public String classpath(Code)



flags
public String flags(Code)



hostName
String hostName(Code)



imajor
public int imajor(Code)



iminor
public int iminor(Code)



javaCmd
public String javaCmd(Code)



majorVersion
public String majorVersion(Code)



minorVersion
public String minorVersion(Code)



ms
public long ms(Code)



mx
public long mx(Code)



noasyncgc
public boolean noasyncgc(Code)



noclassgc
public boolean noclassgc(Code)



nojit
public boolean nojit(Code)



noverify
public boolean noverify(Code)



oss
public long oss(Code)



prof
public String prof(Code)



ss
public long ss(Code)



verbosegc
public boolean verbosegc(Code)



verboselevel
int verboselevel(Code)



verify
public boolean verify(Code)




Constructor Detail
jvm
public jvm()(Code)



jvm
public jvm(boolean noasyncgc, boolean verbosegc, boolean noclassgc, long ss, long oss, long ms, long mx, String classpath, String prof, boolean verify, boolean noverify, boolean nojit, Vector D)(Code)



jvm
public jvm(String classpath, Vector D)(Code)



jvm
public jvm(long ms, long mx, String classpath, Vector D)(Code)




Method Detail
findCodeBase
public static String findCodeBase(boolean[] isJar)(Code)



getCommandLine
public Vector getCommandLine()(Code)



getCurrentJvm
public static jvm getCurrentJvm() throws Exception(Code)
Get the current JVM using the normal test harness rules for finding a JVM.
  1. If the sytem property 'jvm' use this name.
  2. else if the java version starts with 1.2 use "jdk12".
  3. else use "currentjvm".



getDintro
abstract public String getDintro()(Code)
return the property definition introducer, with a space if a separator is needed.



getJvm
public static jvm getJvm(String jvmName) throws ClassNotFoundException, InstantiationException, IllegalAccessException(Code)
pass in class name for JVM. If we can't find it, try also org.apache.derbyTesting.functionTests.harness.



getMajorVersion
public int getMajorVersion()(Code)
Return the major version number



getMinorVersion
public int getMinorVersion()(Code)
Return the major version number



getName
abstract public String getName()(Code)



getSecurityProps
static Vector getSecurityProps(Vector D) throws ClassNotFoundException, IOException(Code)



guessWSHome
protected static String guessWSHome()(Code)
Find $WS based on the assumption that JAVA_HOME is $WS/ or $WS//jre path of $WS



setClasspath
public void setClasspath(String classpath)(Code)



setD
public void setD(Vector D)(Code)



setFlags
public void setFlags(String flags)(Code)



setJavaCmd
public void setJavaCmd(String jcmd)(Code)



setMs
public void setMs(long ms)(Code)



setMx
public void setMx(long mx)(Code)



setNoasyncgc
public void setNoasyncgc(boolean noasyncgc)(Code)



setNoclassgc
public void setNoclassgc(boolean noclassgc)(Code)



setNojit
public void setNojit(boolean nojit)(Code)



setNoverify
public void setNoverify(boolean noverify)(Code)



setOss
public void setOss(long oss)(Code)



setProf
public void setProf(String prof)(Code)



setSecurityProps
protected void setSecurityProps() throws java.io.IOException, ClassNotFoundException(Code)
set up security properties for server command line.



setSs
public void setSs(long ss)(Code)



setVerbosegc
public void setVerbosegc(boolean verbosegc)(Code)



setVerify
public void setVerify(boolean verify)(Code)



setVersion
public void setVersion() throws Exception(Code)
Get the current JVM using the normal test harness rules for finding a JVM.



warn
public void warn(String msg)(Code)



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.