| java.lang.Object com.sun.midp.content.InvocStoreStress
InvocStoreStress | class InvocStoreStress implements Runnable(Code) | | A test thread to pound on the InvocationStore.
|
Constructor Summary | |
| InvocStoreStress(int appNdx, int handlerNdx, int nappids, int nclassnames, TestCase testcase, AppProxy appl) Construct a new test thread with parameters. |
Method Summary | |
void | doInvoker() Generate new requests as needed and tally the response. | void | doResponder() Handle and respond to any response that comes back. | int | getAppID(int n) Generate the application ID for app(n).
Parameters: n - the index of the applicationid. | String | getClassname(int n) Generate the classname for content handler (n).
Parameters: n - the index of the content handler. | void | println(String msg, InvocationImpl invoc) Print the interesting fields of an Invocation. | public void | run() Run the test. | void | sendAll(int status, String action) Send a request to every other consumer. | void | sleep(long millis) Sleep a bit. | void | stop() Stop this thread and cleanup. |
appID | int appID(Code) | | The application ID consumed by this thread.
|
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.
|
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.
|
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 |
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.
|
|
|