|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.sun.slamd.job.JobClass
com.sun.slamd.example.CalendarInitialPageRateJobClass
public class CalendarInitialPageRateJobClass
This class defines a SLAMD job that interacts with the Sun ONE Calendar Express. It does so by performing the following operations:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static java.lang.String |
EOL
The end-of-line character that will be used for HTTP requests. |
static java.lang.String |
GENERIC_POST_DATA
The remaining string that will be included in the HTTP POST in addition to the user ID and password. |
static java.lang.String |
HTTP_PARAM_USER_ID
The name of the HTTP request parameter that specifies the user ID of the user that is authenticating. |
static java.lang.String |
HTTP_PARAM_USER_PW
The name of the HTTP request parameter that specifies the password of the user that is authenticating. |
static java.lang.String |
LOGIN_FORM_SUBMIT_FILE
The location to which the login form should be POSTed. |
static java.lang.String |
STAT_TRACKER_AUTH_ATTEMPTS
The display name of the stat tracker that is used to count the number of authentication attempts. |
static java.lang.String |
STAT_TRACKER_AUTH_TIME
The display name of the stat tracker that is used to determine the time required to perform an authentication. |
static java.lang.String |
STAT_TRACKER_BOTTOM_FRAME_GET_TIME
The display name of the stat tracker that is used to determine how much time was required to retrieve the contents of the bottom frame after a successful authentication. |
static java.lang.String |
STAT_TRACKER_FAILURE_REASONS
The display name of the stat tracker that is used to categorize the reasons for failed authentications. |
static java.lang.String |
STAT_TRACKER_FAILURES
The display name of the stat tracker that is used to count the number of failed authentications. |
static java.lang.String |
STAT_TRACKER_LOGIN_PAGE_TIME
The display name of the stat tracker that is used to determine how much time was required to retrieve the login page. |
static java.lang.String |
STAT_TRACKER_LOGIN_POST_TIME
The display name of the stat tracker that is used to determine how much time was required to retrieve a response after posting the login form. |
static java.lang.String |
STAT_TRACKER_SUCCESSES
The display name of the stat tracker that is used to count the number of successful authentications. |
static java.lang.String |
STAT_TRACKER_TOP_FRAME_GET_TIME
The display name of the stat tracker that is used to determine how much time was required to retrieve the contents of the top frame after a successful authentication. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
CalendarInitialPageRateJobClass()
The default constructor used to create a new instance of the job class. |
|
| Method Summary | |
|---|---|
java.lang.String |
getJobCategoryName()
Retrieves the name of the category in which this job class exists. |
java.lang.String |
getJobDescription()
Retrieves a description of the job performed by this job thread. |
java.lang.String |
getJobName()
Retrieves the name of the job performed by this job thread. |
ParameterList |
getParameterStubs()
Retrieve a parameter list that can be used to determine all of the customizable options that are available for this job. |
StatTracker[] |
getStatTrackers()
Retrieves the stat trackers that are maintained for this job thread. |
StatTracker[] |
getStatTrackerStubs(java.lang.String clientID,
java.lang.String threadID,
int collectionInterval)
Retrieves the set of stat trackers that will be maintained by this job class. |
java.lang.String |
getUserID()
Chooses a user ID based on the criteria provided in the job parameters. |
void |
initializeClient(java.lang.String clientID,
ParameterList parameters)
Performs initialization for this job on each client immediately before each thread is created to actually run the job. |
void |
initializeThread(java.lang.String clientID,
java.lang.String threadID,
int collectionInterval,
ParameterList parameters)
Initializes this job thread to be used to actually run the job on the client. |
void |
runJob()
Perform the work of this job thread by executing the specified command. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EOL
public static final java.lang.String HTTP_PARAM_USER_ID
public static final java.lang.String HTTP_PARAM_USER_PW
public static final java.lang.String GENERIC_POST_DATA
public static final java.lang.String LOGIN_FORM_SUBMIT_FILE
public static final java.lang.String STAT_TRACKER_AUTH_ATTEMPTS
public static final java.lang.String STAT_TRACKER_AUTH_TIME
public static final java.lang.String STAT_TRACKER_LOGIN_PAGE_TIME
public static final java.lang.String STAT_TRACKER_LOGIN_POST_TIME
public static final java.lang.String STAT_TRACKER_TOP_FRAME_GET_TIME
public static final java.lang.String STAT_TRACKER_BOTTOM_FRAME_GET_TIME
public static final java.lang.String STAT_TRACKER_SUCCESSES
public static final java.lang.String STAT_TRACKER_FAILURES
public static final java.lang.String STAT_TRACKER_FAILURE_REASONS
| Constructor Detail |
|---|
public CalendarInitialPageRateJobClass()
initialize
method.
| Method Detail |
|---|
public java.lang.String getJobName()
getJobName in class JobClasspublic java.lang.String getJobDescription()
getJobDescription in class JobClasspublic java.lang.String getJobCategoryName()
getJobCategoryName in class JobClasspublic ParameterList getParameterStubs()
getParameterStubs in class JobClass
public StatTracker[] getStatTrackerStubs(java.lang.String clientID,
java.lang.String threadID,
int collectionInterval)
getStatTrackerStubs in class JobClassclientID - The client ID that should be used for the
returned stat trackers.threadID - The thread ID that should be used for the
returned stat trackers.collectionInterval - The collection interval that should be used for
the returned stat trackers.
public StatTracker[] getStatTrackers()
getStatTrackers in class JobClass
public void initializeClient(java.lang.String clientID,
ParameterList parameters)
throws UnableToRunException
initializeClient in class JobClassclientID - The ID assigned to the client running this job.parameters - The set of parameters provided to this job that can be
used to customize its behavior.
UnableToRunException - If the client initialization could not be
completed successfully and the job is unable
to run.
public void initializeThread(java.lang.String clientID,
java.lang.String threadID,
int collectionInterval,
ParameterList parameters)
throws UnableToRunException
initializeThread in class JobClassclientID - The client ID for this job thread.threadID - The thread ID for this job thread.collectionInterval - The length of time in seconds to use as the
statistics collection interval.parameters - The set of parameters provided to this job that
can be used to customize its behavior.
UnableToRunException - If a problem occurs that prevents the thread
from being able to run properly.public void runJob()
runJob in class JobClasspublic java.lang.String getUserID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||