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


org.apache.harmony.rmi.RMITestBase

All known Subclasses:   org.apache.harmony.rmi.DGCTest,  org.apache.harmony.rmi.RegistryTest,  org.apache.harmony.rmi.ConnectionTest,
RMITestBase
abstract public class RMITestBase extends TestCase (Code)
Base class for RMI unit tests.
author:
   Vasily Zakharov
version:
   $Revision: 1.1.2.5 $


Field Summary
final protected static  intCONFIG_DIRECT_HTTP
     Direct HTTP connection configuration.
final protected static  intCONFIG_DIRECT_SOCKET
     Direct socket connection configuration.
final protected static  intCONFIG_PROXY_CGI
     Proxy CGI connection configuration.
final protected static  intCONFIG_PROXY_HTTP
     Proxy HTTP connection configuration.
final protected static  longCONNECTION_TIMEOUT
     Default connection timeout.
final protected static  intCUSTOM_PORT_1
     Custom port to start RMI registry on.
final protected static  intCUSTOM_PORT_2
     Custom port to start RMI registry on.
final protected static  intCUSTOM_PORT_3
     Custom port to start RMI registry on.
final protected static  intCUSTOM_PORT_4
     Custom port to start RMI registry on.
final protected static  intGC_TIMEOUT
     Garbage collector timeout (in milliseconds).
final protected static  StringPROXY_HOST
     HTTP Proxy host.
final protected static  intPROXY_PORT
     HTTP Proxy port.
final protected static  intPROXY_TIMEOUT
    
final protected static  StringREGISTRY_HOST
     RMI Registry host.
final protected static  intREGISTRY_PORT
     Default RMI registry port.
final protected static  StringTEST_STRING_1
     Test string.
final protected static  StringTEST_STRING_2
     Test string.
final protected static  StringTEST_STRING_3
     Test string.
final protected static  StringTEST_STRING_4
     Test string.
final protected static  intTIMEOUT_TICK
     Timeout tick (in milliseconds).
final protected static  booleanVERBOSE
     If verbose logging need to be turned on.
protected  HashSetexportedObjects
     List of exported objects.

Constructor Summary
protected  RMITestBase()
     No-arg constructor to enable serialization.
protected  RMITestBase(String name)
     Constructs this test case with the given name.

Method Summary
protected static  voidabort(int exitCode)
     Aborts current process with the specified code.
protected static  voidabort()
     Aborts current process.
protected static  booleancheckProxy()
     Checks if proxy is available.
protected static  booleancheckProxy(String testName)
     Checks if proxy is available.
Parameters:
  testName - Test name (for diagnostics purposes).
protected static  booleancheckSocket(String host, int port, int timeout)
     Checks if the specified socket/port is available.
Parameters:
  host - Host to check.
Parameters:
  port - Port to check.
Parameters:
  timeout - Time (in milliseconds) to wait for response.
protected static  voidprintArray(Object[] array)
     Prints the specified array to standard output.
protected static  voidsetEnvironment(boolean disableHttp, boolean eagerHttpFallback, boolean disableDirectSocket, boolean enableDirectHTTP, boolean disablePlainHTTP, boolean useProxy, long connectionTimeout, boolean logging)
     Sets environment to system properties.
protected static  voidsetEnvironmentForConfig(int config)
     Sets environment for direct socket connections.
protected static  SubProcessstartProcess(String className, String id, int config, boolean endorsed)
     Starts process in a separate JVM.
Parameters:
  className - Name of the class to run in process created.
Parameters:
  id - Identifier of function to run (class specific).
Parameters:
  config - Number of the configuration to run.
Parameters:
  endorsed - If endorsedDirs and bootClassPath should be propagated.
protected  voidunexportObjects()
     Unexports exported objects.

Field Detail
CONFIG_DIRECT_HTTP
final protected static int CONFIG_DIRECT_HTTP(Code)
Direct HTTP connection configuration.



CONFIG_DIRECT_SOCKET
final protected static int CONFIG_DIRECT_SOCKET(Code)
Direct socket connection configuration.



CONFIG_PROXY_CGI
final protected static int CONFIG_PROXY_CGI(Code)
Proxy CGI connection configuration.



CONFIG_PROXY_HTTP
final protected static int CONFIG_PROXY_HTTP(Code)
Proxy HTTP connection configuration.



CONNECTION_TIMEOUT
final protected static long CONNECTION_TIMEOUT(Code)
Default connection timeout.



CUSTOM_PORT_1
final protected static int CUSTOM_PORT_1(Code)
Custom port to start RMI registry on.



CUSTOM_PORT_2
final protected static int CUSTOM_PORT_2(Code)
Custom port to start RMI registry on.



CUSTOM_PORT_3
final protected static int CUSTOM_PORT_3(Code)
Custom port to start RMI registry on.



CUSTOM_PORT_4
final protected static int CUSTOM_PORT_4(Code)
Custom port to start RMI registry on.



GC_TIMEOUT
final protected static int GC_TIMEOUT(Code)
Garbage collector timeout (in milliseconds).



PROXY_HOST
final protected static String PROXY_HOST(Code)
HTTP Proxy host.



PROXY_PORT
final protected static int PROXY_PORT(Code)
HTTP Proxy port.



PROXY_TIMEOUT
final protected static int PROXY_TIMEOUT(Code)
HTTP Proxy access timeout (in milliseconds)



REGISTRY_HOST
final protected static String REGISTRY_HOST(Code)
RMI Registry host.



REGISTRY_PORT
final protected static int REGISTRY_PORT(Code)
Default RMI registry port.



TEST_STRING_1
final protected static String TEST_STRING_1(Code)
Test string.



TEST_STRING_2
final protected static String TEST_STRING_2(Code)
Test string.



TEST_STRING_3
final protected static String TEST_STRING_3(Code)
Test string.



TEST_STRING_4
final protected static String TEST_STRING_4(Code)
Test string.



TIMEOUT_TICK
final protected static int TIMEOUT_TICK(Code)
Timeout tick (in milliseconds).



VERBOSE
final protected static boolean VERBOSE(Code)
If verbose logging need to be turned on.



exportedObjects
protected HashSet exportedObjects(Code)
List of exported objects.




Constructor Detail
RMITestBase
protected RMITestBase()(Code)
No-arg constructor to enable serialization.



RMITestBase
protected RMITestBase(String name)(Code)
Constructs this test case with the given name.
Parameters:
  name - Name for this test case.




Method Detail
abort
protected static void abort(int exitCode)(Code)
Aborts current process with the specified code. Really calls System.exit(int) System.exit(exitCode) .
Parameters:
  exitCode -



abort
protected static void abort()(Code)
Aborts current process. Really calls System.exit(int) System.exit(-1) .



checkProxy
protected static boolean checkProxy()(Code)
Checks if proxy is available. true if proxy is available,false otherwise.



checkProxy
protected static boolean checkProxy(String testName)(Code)
Checks if proxy is available.
Parameters:
  testName - Test name (for diagnostics purposes). true if proxy is available,false otherwise.



checkSocket
protected static boolean checkSocket(String host, int port, int timeout)(Code)
Checks if the specified socket/port is available.
Parameters:
  host - Host to check.
Parameters:
  port - Port to check.
Parameters:
  timeout - Time (in milliseconds) to wait for response. true if the specified host/port is available,false otherwise.



printArray
protected static void printArray(Object[] array)(Code)
Prints the specified array to standard output.
Parameters:
  array - Array to print.



setEnvironment
protected static void setEnvironment(boolean disableHttp, boolean eagerHttpFallback, boolean disableDirectSocket, boolean enableDirectHTTP, boolean disablePlainHTTP, boolean useProxy, long connectionTimeout, boolean logging)(Code)
Sets environment to system properties.
Parameters:
  disableHttp -
Parameters:
  eagerHttpFallback -
Parameters:
  disableDirectSocket -
Parameters:
  enableDirectHTTP -
Parameters:
  disablePlainHTTP -
Parameters:
  useProxy -
Parameters:
  connectionTimeout -
Parameters:
  logging -



setEnvironmentForConfig
protected static void setEnvironmentForConfig(int config)(Code)
Sets environment for direct socket connections.
Parameters:
  config - Configuration to set environment for.



startProcess
protected static SubProcess startProcess(String className, String id, int config, boolean endorsed) throws Exception(Code)
Starts process in a separate JVM.
Parameters:
  className - Name of the class to run in process created.
Parameters:
  id - Identifier of function to run (class specific).
Parameters:
  config - Number of the configuration to run.
Parameters:
  endorsed - If endorsedDirs and bootClassPath should be propagated. Subprocess created.
throws:
  Exception - If some error occurs.



unexportObjects
protected void unexportObjects() throws Exception(Code)
Unexports exported objects.
throws:
  Exception - If some error occurs.



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