Java Doc for TestOptions.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » jpda » tests » framework » 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.jpda.tests.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.jpda.tests.framework.TestOptions

All known Subclasses:   org.apache.harmony.jpda.tests.share.JPDATestOptions,
TestOptions
public class TestOptions (Code)
This class provides access to options for running JPDA tests.

The settings are presented as a set of getters and setters for test options, which can be implemented in different ways. In this implementation test options are implemented via VM system properties, which can be specified using option '-D' in VM command line.

The following options are currently recognized:

  • jpda.settings.debuggeeJavaHome - path to Java bundle to run debuggee on
  • jpda.settings.debuggeeJavaExec - name of Java executable to run debuggee on
  • jpda.settings.debuggeeJavaPath - full path to Java executable to run debuggee on
  • jpda.settings.debuggeeAgentName - name of agent native library
  • jpda.settings.debuggeeAgentExtraOptions - extra options for agent
  • jpda.settings.debuggeeClassName - full name of class to run debuggee with
  • jpda.settings.debuggeeVMExtraOptions - extra options to run debuggee with
  • jpda.settings.debuggeeSuspend - debuggee suspend mode ("y"|"n")
  • jpda.settings.transportWrapperClass - class name of TransportWrapper implementation
  • jpda.settings.transportAddress - address for JDWP connection
  • jpda.settings.connectorKind - type of JDWP connection (attach or listen)
  • jpda.settings.syncPort - port number for sync connection
  • jpda.settings.timeout - timeout used in JPDA tests
  • jpda.settings.waitingTime - timeout for waiting events
  • jpda.settings.verbose - flag that disables (default) or enables writing messages to the log All options have default values, if they are not specified.


  • Field Summary
    final public static  StringDEFAULT_ATTACHING_ADDRESS
         Default static address for transport connection.
    final public static  StringDEFAULT_DEBUGGEE_CLASS_NAME
         Default aclass name for debuggee application.
    final public static  StringDEFAULT_STATIC_SYNC_PORT
         Default port number for sync connection.
    final public static  intDEFAULT_SYNC_PORT
         Default port number for sync connection.
    final public static  intDEFAULT_TIMEOUT
         Default timeout value for various operations.
    final public static  StringDEFAULT_TRANSPORT_WRAPPER
         Default class name for transport wrapper.
    final public static  intDEFAULT_WAITING_TIME
         Default time interval for waiting for various events.

    Constructor Summary
    public  TestOptions()
         Constructs an instance of this class.

    Method Summary
    public  StringgetConnectorKind()
         Returns type of connection with debuggee.
    public  StringgetDebuggeeAgentExtraOptions()
         Returns string with extra options for agent.
    public  StringgetDebuggeeAgentName()
         Returns name of JDWP agent library.
    public  StringgetDebuggeeAgentOptions(String address, boolean isDebuggerListen)
         Returns string with all options for agent including specified connection address.
    public  StringgetDebuggeeAgentOptions(String address)
         Returns string with all options for agent including specified connection address (only for debugger in listening mode).
    public  StringgetDebuggeeClassName()
         Returns full name of the class to start debuggee with.
    public  StringgetDebuggeeClassPath()
         Returns VM classpath value to run debuggee with.
    public  StringgetDebuggeeJavaExec()
         Returns name of Java executable to run debuggee on.
    public  StringgetDebuggeeJavaHome()
         Returns path to Java bundle to run debuggee on.
    public  StringgetDebuggeeJavaPath()
         Returns full path to Java executable to run debuggee on.
    public  StringgetDebuggeeLaunchKind()
         Returns kind of launching debuggee VM, which can be "auto" or "manual".
    public  StringgetDebuggeeSuspend()
         Returns debuggee suspend mode ("y"|"n").
    public  StringgetDebuggeeVMExtraOptions()
         Returns string with extra options to start debuggee with.
    protected  StringgetProperty(String name, String defaultValue)
         Returns value of given property if it was set internally or specified in system properties.
    public  intgetSyncPortNumber()
         Returns TCP/IP port for synchronization channel.
    public  StringgetSyncPortString()
         Returns string representation of TCP/IP port for synchronization channel.
    public  longgetTimeout()
         Returns timeout for JPDA tests in milliseconds.
    public  StringgetTransportAddress()
         Returns address for JDWP connection or null for dynamic address.
    public  StringgetTransportWrapperClassName()
         Returns class name of TransportWrapper implementation.
    public  longgetWaitingTime()
         Returns waiting time for events in milliseconds.
    public  booleanisAttachConnectorKind()
         Checks if attach connection with debuggee.
    public  booleanisDebuggeeSuspend()
         Checks if debuggee is launched in suspend mode.
    public  booleanisListenConnectorKind()
         Checks if listen connection with debuggee.
    public static  booleanisTrue(String str)
         Converts text to boolean.
    public  booleanisVerbose()
         Returns whether print to log is enabled.
    public  voidsetAttachConnectorKind()
         Sets connectorKind to attach to debuggee.
    public  voidsetConnectorKind(String kind)
         Sets kind of connector (attach or listen).
    public  voidsetDebuggeeClassName(String className)
         Sets full name of the class to start debuggee with.
    public  voidsetDebuggeeSuspend(String mode)
         Returns debuggee suspend mode ("y"|"n").
    public  voidsetListenConnectorKind()
         Sets connectorKind to listen connection from debuggee.
    protected  voidsetProperty(String name, String value)
         Sets internal value of given property to override corresponding system property.
    public  voidsetTimeout(long timeout)
         Sets timeout for JPDA tests in milliseconds.
    public  voidsetTransportAddress(String address)
         Sets address to attach to debuggee.
    public  voidsetWaitingTime(long waitingTime)
         Sets waiting time for events in milliseconds.

    Field Detail
    DEFAULT_ATTACHING_ADDRESS
    final public static String DEFAULT_ATTACHING_ADDRESS(Code)
    Default static address for transport connection.



    DEFAULT_DEBUGGEE_CLASS_NAME
    final public static String DEFAULT_DEBUGGEE_CLASS_NAME(Code)
    Default aclass name for debuggee application.



    DEFAULT_STATIC_SYNC_PORT
    final public static String DEFAULT_STATIC_SYNC_PORT(Code)
    Default port number for sync connection.



    DEFAULT_SYNC_PORT
    final public static int DEFAULT_SYNC_PORT(Code)
    Default port number for sync connection.



    DEFAULT_TIMEOUT
    final public static int DEFAULT_TIMEOUT(Code)
    Default timeout value for various operations.



    DEFAULT_TRANSPORT_WRAPPER
    final public static String DEFAULT_TRANSPORT_WRAPPER(Code)
    Default class name for transport wrapper.



    DEFAULT_WAITING_TIME
    final public static int DEFAULT_WAITING_TIME(Code)
    Default time interval for waiting for various events.




    Constructor Detail
    TestOptions
    public TestOptions()(Code)
    Constructs an instance of this class.




    Method Detail
    getConnectorKind
    public String getConnectorKind()(Code)
    Returns type of connection with debuggee. system property "jpda.settings.connectorKind" or "listen" by default.



    getDebuggeeAgentExtraOptions
    public String getDebuggeeAgentExtraOptions()(Code)
    Returns string with extra options for agent. option "jpda.settings.debuggeeAgentExtraOptions" or "" by default



    getDebuggeeAgentName
    public String getDebuggeeAgentName()(Code)
    Returns name of JDWP agent library. option "jpda.settings.debuggeeAgentName" or "jdwp" by default



    getDebuggeeAgentOptions
    public String getDebuggeeAgentOptions(String address, boolean isDebuggerListen)(Code)
    Returns string with all options for agent including specified connection address.
    Parameters:
      address - - address to attach
    Parameters:
      isDebuggerListen - - true if debugger is listening for connection string with all agent options



    getDebuggeeAgentOptions
    public String getDebuggeeAgentOptions(String address)(Code)
    Returns string with all options for agent including specified connection address (only for debugger in listening mode). It just calls
    • getDebuggeeAgentOptions(address, true)

    Parameters:
      address - - address to attach string with all agent options



    getDebuggeeClassName
    public String getDebuggeeClassName()(Code)
    Returns full name of the class to start debuggee with. option "jpda.settings.debuggeeClassName" or"org.apache.harmony.jpda.tests.jdwp.share.debuggee.HelloWorld" by default



    getDebuggeeClassPath
    public String getDebuggeeClassPath()(Code)
    Returns VM classpath value to run debuggee with. system property "java.class.path" by default.



    getDebuggeeJavaExec
    public String getDebuggeeJavaExec()(Code)
    Returns name of Java executable to run debuggee on. option "jpda.settings.debuggeeJavaExec" or "java" by default.



    getDebuggeeJavaHome
    public String getDebuggeeJavaHome()(Code)
    Returns path to Java bundle to run debuggee on. option "jpda.settings.debuggeeJavaHome" or system property"java.home" by default.



    getDebuggeeJavaPath
    public String getDebuggeeJavaPath()(Code)
    Returns full path to Java executable to run debuggee on. option "jpda.settings.debuggeeJavaPath" or construct path fromgetDebuggeeJavaHome() and getDebuggeeJavaExec() by default.



    getDebuggeeLaunchKind
    public String getDebuggeeLaunchKind()(Code)
    Returns kind of launching debuggee VM, which can be "auto" or "manual". option "jpda.settings.debuggeeLaunchKind" or "auto" by default.



    getDebuggeeSuspend
    public String getDebuggeeSuspend()(Code)
    Returns debuggee suspend mode ("y"|"n"). option "jpda.settings.debuggeeSuspend" or "y" by default



    getDebuggeeVMExtraOptions
    public String getDebuggeeVMExtraOptions()(Code)
    Returns string with extra options to start debuggee with. option "jpda.settings.debuggeeVMExtraOptions" or "" by default



    getProperty
    protected String getProperty(String name, String defaultValue)(Code)
    Returns value of given property if it was set internally or specified in system properties.
    Parameters:
      name - property name
    Parameters:
      defaultValue - default value for given property string value of given property or default value if no such property found



    getSyncPortNumber
    public int getSyncPortNumber()(Code)
    Returns TCP/IP port for synchronization channel. string with port number or null



    getSyncPortString
    public String getSyncPortString()(Code)
    Returns string representation of TCP/IP port for synchronization channel. string with port number or null



    getTimeout
    public long getTimeout()(Code)
    Returns timeout for JPDA tests in milliseconds. option "jpda.settings.timeout" or DEFAULT_TIMEOUT by default.



    getTransportAddress
    public String getTransportAddress()(Code)
    Returns address for JDWP connection or null for dynamic address. option "jpda.settings.transportAddress" or null by default.



    getTransportWrapperClassName
    public String getTransportWrapperClassName()(Code)
    Returns class name of TransportWrapper implementation. option "jpda.settings.transportWrapperClass" orDEFAULT_TRANSPORT_WRAPPER by default.



    getWaitingTime
    public long getWaitingTime()(Code)
    Returns waiting time for events in milliseconds. waiting time



    isAttachConnectorKind
    public boolean isAttachConnectorKind()(Code)
    Checks if attach connection with debuggee. true, if attach connection, false otherwise.



    isDebuggeeSuspend
    public boolean isDebuggeeSuspend()(Code)
    Checks if debuggee is launched in suspend mode. true if debuggee is launched in suspend mode



    isListenConnectorKind
    public boolean isListenConnectorKind()(Code)
    Checks if listen connection with debuggee. true, if listen connection, false otherwise.



    isTrue
    public static boolean isTrue(String str)(Code)
    Converts text to boolean.
    Parameters:
      str - string representing boolean value boolean



    isVerbose
    public boolean isVerbose()(Code)
    Returns whether print to log is enabled. false (default) if log is disabled or true otherwise.



    setAttachConnectorKind
    public void setAttachConnectorKind()(Code)
    Sets connectorKind to attach to debuggee.



    setConnectorKind
    public void setConnectorKind(String kind)(Code)
    Sets kind of connector (attach or listen).



    setDebuggeeClassName
    public void setDebuggeeClassName(String className)(Code)
    Sets full name of the class to start debuggee with.
    Parameters:
      className - full class name



    setDebuggeeSuspend
    public void setDebuggeeSuspend(String mode)(Code)
    Returns debuggee suspend mode ("y"|"n").
    Parameters:
      mode - suspend mode



    setListenConnectorKind
    public void setListenConnectorKind()(Code)
    Sets connectorKind to listen connection from debuggee.



    setProperty
    protected void setProperty(String name, String value)(Code)
    Sets internal value of given property to override corresponding system property.
    Parameters:
      name - proparty name
    Parameters:
      value - value for given property



    setTimeout
    public void setTimeout(long timeout)(Code)
    Sets timeout for JPDA tests in milliseconds.
    Parameters:
      timeout - timeout to be set



    setTransportAddress
    public void setTransportAddress(String address)(Code)
    Sets address to attach to debuggee.
    Parameters:
      address - to attach



    setWaitingTime
    public void setWaitingTime(long waitingTime)(Code)
    Sets waiting time for events in milliseconds.
    Parameters:
      waitingTime - waiting time to be set



    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.