Package com.sun.javatest.interview
Class ConcurrencyInterview
- java.lang.Object
-
- com.sun.interview.Interview
-
- com.sun.javatest.interview.ConcurrencyInterview
-
- All Implemented Interfaces:
Parameters.ConcurrencyParameters
,Parameters.MutableConcurrencyParameters
public class ConcurrencyInterview extends Interview implements Parameters.MutableConcurrencyParameters
This interview collects the concurrency parameter. It is normally used as one of a series of sub-interviews that collect the parameter information for a test run.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.interview.Interview
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.Observer
-
-
Field Summary
Fields Modifier and Type Field Description protected int
maxValue
-
Fields inherited from class com.sun.interview.Interview
EXPORT_IGNORE_ALL_EXCEPTIONS, EXPORT_IGNORE_NO_EXCEPTIONS, EXPORT_IGNORE_RUNTIME_EXCEPTIONS, EXTERNAL_PREF, helpSetFactory, INTERVIEW, LOCALE, MARKERS, MARKERS_PREF, QUESTION, SEMANTIC_MAX_VERSION, SEMANTIC_PRE_32, SEMANTIC_VERSION_32, SEMANTIC_VERSION_43, SEMANTIC_VERSION_50, TEMPLATE_PREF
-
Fields inherited from interface com.sun.javatest.Parameters.ConcurrencyParameters
MAX_CONCURRENCY, MIN_CONCURRENCY
-
-
Constructor Summary
Constructors Constructor Description ConcurrencyInterview(Interview parent)
Create an interview.ConcurrencyInterview(Interview parent, int max)
Create an interview.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConcurrency()
Get the concurrency value from the interview.void
setConcurrency(int conc)
Set the concurrency value in the interview.-
Methods inherited from class com.sun.interview.Interview
addObserver, callInterview, clear, clearMarkedResponses, containsObserver, createChecklist, createChecklistItem, createChecklistItem, createChecklistItem, export, getAllQuestions, getCurrentQuestion, getDefaultImage, getExportIgnoreExceptionPolicy, getExternalProperties, getFirstQuestion, getHelpSet, getInterview, getInterviewSemantics, getParent, getPath, getPathToCurrent, getPropertyKeys, getQuestions, getRawPath, getResourceBundle, getResourceString, getResourceString, getRoot, getTag, getTitle, hasNext, hasValidNext, isChecklistEmpty, isChecksumValid, isEdited, isFinishable, isFirst, isInterviewFinishable, isLast, isRoot, isStarted, iteratePath, iteratePathToCurrent, last, load, load, next, pathContains, pathContains, prev, propagateTemplateForAll, readLocale, removeAllMarkers, removeMarkers, removeObserver, reset, retrieveProperty, retrieveTemplateKeys, retrieveTemplateProperty, save, setBaseTag, setCurrentQuestion, setDefaultImage, setEdited, setExportIgnoreExceptionPolicy, setFirstQuestion, setHelpSet, setHelpSet, setHelpSet, setInterviewSemantics, setResourceBundle, setResourceBundle, setTitle, storeProperty, storeTemplateProperties, storeTemplateProperty, updatePath, updatePath, verifyPathContains, writeLocale
-
-
-
-
Constructor Detail
-
ConcurrencyInterview
public ConcurrencyInterview(Interview parent) throws Interview.Fault
Create an interview.- Parameters:
parent
- The parent interview of which this is a child.- Throws:
Interview.Fault
- if there is a problem while creating the interview.
-
ConcurrencyInterview
public ConcurrencyInterview(Interview parent, int max) throws Interview.Fault
Create an interview.- Parameters:
parent
- The parent interview of which this is a child.max
- The maximum value for concurrency which should be accepted. Should be a value between 1 and the maximum possible positive value.- Throws:
Interview.Fault
- if there is a problem while creating the interview.
-
-
Method Detail
-
getConcurrency
public int getConcurrency()
Get the concurrency value from the interview.- Specified by:
getConcurrency
in interfaceParameters.ConcurrencyParameters
- Returns:
- an integer representing the desired concurrency for a test run.
- See Also:
setConcurrency(int)
-
setConcurrency
public void setConcurrency(int conc)
Set the concurrency value in the interview.- Specified by:
setConcurrency
in interfaceParameters.MutableConcurrencyParameters
- Parameters:
conc
- The desired concurrency value.- See Also:
getConcurrency()
-
-