Java Doc for InvocStoreStress.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » content » 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 » 6.0 JDK Modules » j2me » com.sun.midp.content 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.midp.content.InvocStoreStress

InvocStoreStress
class InvocStoreStress implements Runnable(Code)
A test thread to pound on the InvocationStore.


Field Summary
 intappID
     The application ID consumed by this thread.
 AppProxyappl
     The application to stress.
 Stringclassname
     The classname consumed by this thread.
 intmaxInvokes
     The maximum number of iterations.
 intnappIDs
     The number of applicationIDs to target.
 intnclassnames
     The number of content handlers per applicationID.
 intnumInvokes
     Number of invocations queued by this test.
 intnumResponses
     Number of responses to invocations.
 intnumTerminations
     Number of terminations pending to be received; zero = done.
 Randomrandom
     The random number generator.
 int[]scorecard
     Counters for received responses.
 booleanstopping
     Flag to stop this thread.
 TestCasetestcase
     The TestCase to handle the assertions.
 Threadthread
     The thread that is running this Stress case.

Constructor Summary
 InvocStoreStress(int appNdx, int handlerNdx, int nappids, int nclassnames, TestCase testcase, AppProxy appl)
     Construct a new test thread with parameters.

Method Summary
 voiddoInvoker()
     Generate new requests as needed and tally the response.
 voiddoResponder()
     Handle and respond to any response that comes back.
 intgetAppID(int n)
     Generate the application ID for app(n).
Parameters:
  n - the index of the applicationid.
 StringgetClassname(int n)
     Generate the classname for content handler (n).
Parameters:
  n - the index of the content handler.
 voidprintln(String msg, InvocationImpl invoc)
     Print the interesting fields of an Invocation.
public  voidrun()
     Run the test.
 voidsendAll(int status, String action)
     Send a request to every other consumer.
 voidsleep(long millis)
     Sleep a bit.
 voidstop()
     Stop this thread and cleanup.

Field Detail
appID
int appID(Code)
The application ID consumed by this thread.



appl
AppProxy appl(Code)
The application to stress.



classname
String classname(Code)
The classname consumed by this thread.



maxInvokes
int maxInvokes(Code)
The maximum number of iterations.



nappIDs
int nappIDs(Code)
The number of applicationIDs to target.



nclassnames
int nclassnames(Code)
The number of content handlers per applicationID.



numInvokes
int numInvokes(Code)
Number of invocations queued by this test.



numResponses
int numResponses(Code)
Number of responses to invocations.



numTerminations
int numTerminations(Code)
Number of terminations pending to be received; zero = done.



random
Random random(Code)
The random number generator.



scorecard
int[] scorecard(Code)
Counters for received responses.



stopping
boolean stopping(Code)
Flag to stop this thread.



testcase
TestCase testcase(Code)
The TestCase to handle the assertions.



thread
Thread thread(Code)
The thread that is running this Stress case.




Constructor Detail
InvocStoreStress
InvocStoreStress(int appNdx, int handlerNdx, int nappids, int nclassnames, TestCase testcase, AppProxy appl)(Code)
Construct a new test thread with parameters.
Parameters:
  appNdx - index of this application's id
Parameters:
  handlerNdx - index of this application's classname
Parameters:
  nappids - number of applications ids to generate
Parameters:
  nclassnames - number of classnames to generate
Parameters:
  testcase - to use for asserts




Method Detail
doInvoker
void doInvoker()(Code)
Generate new requests as needed and tally the response. The final invoke is the termination request/response.



doResponder
void doResponder()(Code)
Handle and respond to any response that comes back.



getAppID
int getAppID(int n)(Code)
Generate the application ID for app(n).
Parameters:
  n - the index of the applicationid. the string application id.



getClassname
String getClassname(int n)(Code)
Generate the classname for content handler (n).
Parameters:
  n - the index of the content handler. the string classname



println
void println(String msg, InvocationImpl invoc)(Code)
Print the interesting fields of an Invocation.
Parameters:
  msg - a message to print before the invocation
Parameters:
  invoc - an Invocation



run
public void run()(Code)
Run the test.



sendAll
void sendAll(int status, String action)(Code)
Send a request to every other consumer.
Parameters:
  status - a status to send
Parameters:
  action - an action string to send



sleep
void sleep(long millis)(Code)
Sleep a bit.
Parameters:
  millis - millseconds to sleep



stop
void stop()(Code)
Stop this thread and cleanup.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.