public interface PRRequestor extends PageDirectory
Modifier and Type | Interface and Description |
---|---|
static class |
PRRequestor.RequestorType
Enum-enabled handling of the request type strings listed above.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static int |
ORIENTATION_LEFT_TO_RIGHT
Orientation of this user's text should be left-to-right
|
static int |
ORIENTATION_RIGHT_TO_LEFT
Orientation of this user's text should be right-to-left
|
static int |
ORIENTATION_UNKNOWN
Orientation of this user's text is unknown
|
static java.lang.String |
sDefaultThread
Default thread name
|
static java.lang.String |
sNewThread
Thread name that will force engine to create a unique thread
|
static java.lang.String |
sTypeApplication
Requestor type: Application (preferably, use enum RequestorType.APP)
|
static java.lang.String |
sTypeBatch
Requestor type: Batch (preferably, use enum RequestorType.BATCH)
|
static java.lang.String |
sTypeBrowser
Requestor type: Browser (preferably, use enum RequestorType.BROWSER)
|
static java.lang.String |
sTypePortal
Requestor type: Portal (preferably, use enum RequestorType.PORTAL)
|
static java.lang.String |
VERSION |
SCOPE_NODE, SCOPE_REQUESTOR, SCOPE_THREAD
Modifier and Type | Method and Description |
---|---|
PRAuthorization |
getAuthorizationHandle()
Deprecated.
Since PegaRULES 5.4
|
java.lang.String |
getCorrelationId() |
java.lang.String |
getDiagID()
Get this Requestor's diagnostic id string
|
java.lang.String |
getEncodedRuleSetList()
Deprecated.
since 5.4, use PRPRAuthorization.getEncodedRuleSetList()
|
java.lang.String |
getEncodedUserId()
This returns an MD5 encoded copy of the users personal ruleset name.
|
java.lang.String |
getId()
Get this Requestor's identification string
|
java.lang.String |
getLocale() |
PRNode |
getNode()
Identifies the Node that 'owns' this Requestor.
|
PAL |
getPAL()
Returns the performance statistics manager for this Requestor.
|
java.lang.String |
getProcessedRuleSetList()
Deprecated.
since 5.4, use PRPRAuthorization.getEncodedRuleSetList()
|
ClipboardPage |
getRequestorPage()
obtain a reference to the pxRequestor page
|
int |
getSharedPageLocksHeld() |
boolean |
getSuppressShowMethod()
Get the 'suppress show method' flag value.
|
int |
getTextOrientation()
Get the direction of text for this user
|
PRThread |
getThread(java.lang.String aName)
obtain a reference to the specified PRThread instance.
|
java.util.Set |
getThreadNames()
Returns a set of Strings for the PRThread objects contained
within this Requestor.
|
java.lang.String |
getTypeName()
Return the associated type name.
|
boolean |
hasPersonalRuleset() |
boolean |
isBatchType()
Is this a batch type requestor?
|
boolean |
isIgnoreDBByteGovernor()
Check if the ignore DBByte Governor flag value
|
boolean |
isMultiThreadRequestor() |
void |
performOnDemandQuiesce()
If this node is in quiesce state, register this requestor with the
QuiesceManager singleton to be passivated at the end of this HTTP request |
java.lang.Object |
queueAsyncActivityOnThread(java.lang.String aClassName,
java.lang.String aActivityName,
ParameterPage aParamPage,
ClipboardPage aPrimaryPage,
java.util.List aOtherPages) |
void |
queueBatchActivity(java.lang.String aClassName,
java.lang.String aActivityName,
ParameterPage aParamPage)
Queue an activity to be executed within a new batch requestor
Note that v2 permitted the specification of another "dequeue" activity, but there are no uses of that parameter in existing code, so it is omitted. |
java.lang.Object |
queueBatchActivity(java.lang.String aClassName,
java.lang.String aActivityName,
ParameterPage aParamPage,
ClipboardPage aPrimaryPage)
Queue an activity to be executed within a new batch requestor
|
java.lang.Object |
queueBatchActivity(java.lang.String aClassName,
java.lang.String aActivityName,
ParameterPage aParamPage,
ClipboardPage aPrimaryPage,
java.util.List aOtherPages,
boolean aIsDetachedTask)
Queue an activity to be executed within a new batch requestor
|
void |
removeActionRequestRegistrar(java.lang.String aHarnessID)
removes the specified ActionRequestRegistrar
|
void |
removeAllPages(java.util.Vector aKeepPages)
Remove all pages from Requestor level, except for those
listed in aKeepPages
|
void |
resetCorrelationId()
Resets the correlation Id of the current requestor to the default value(requestor Id)
|
void |
setCorrelationId(java.lang.String correlation)
Sets the correlation Id of the current requestor to the parameter passed,calls resetCorrelationId() if the string passed is null or empty.
|
void |
setIgnoreDBByteGovernor(boolean aIgnoreDBByteGovernor)
Set the ignore DBByte Governor flag value
|
void |
setSuppressShowMethod(boolean value)
Set the 'suppress show method' flag
|
void |
stopAsyncThreadActivities()
Send the stop command to all async thread tasks of this requestor.
|
void |
stopAsyncThreadActivity(java.lang.Object aChildIdentifier)
Ask a async thread task to stop as soon as possible.
|
void |
stopBatchActivities()
Send the stop command to all children of this requestor.
|
void |
stopBatchActivity(java.lang.Object aChildIdentifier)
Ask a child requestor and all of its children to stop as soon as possible.
|
boolean |
waitForPing() |
void |
waitOnAllAsyncThreadActivities()
Wait forever for all async thread activities to complete.
|
void |
waitOnAllAsyncThreadActivities(long aTimeout)
Wait for all async thread tasks to complete their activities, or
for a timeout, whichever comes first.
|
void |
waitOnAllBatchActivities()
Wait forever for all batch activities to complete.
|
void |
waitOnAllBatchActivities(long aTimeout)
Wait for all children requestors to complete their activities, or
for a timeout, whichever comes first.
|
void |
waitOnAsyncThreadActivity(java.lang.Object aChildIdentifier)
Wait forever for a async thread task to finish.
|
void |
waitOnAsyncThreadActivity(java.lang.Object aChildIdentifier,
long aTimeout)
Wait for a async thread task to finish, or for some timeout to be reached.
|
void |
waitOnBatchActivity(java.lang.Object aChildIdentifier)
Wait forever for a child requestor to finish.
|
void |
waitOnBatchActivity(java.lang.Object aChildIdentifier,
long aTimeout)
Wait for a child requestor to finish, or for some timeout to be reached.
|
findName, getDeclarativePageNames, getPage, getPage, getPage, getPageNames, getScope, pageExists, pageExists, removeDeclarativePage, removePage, removePage, removePage, renamePage
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final java.lang.String sDefaultThread
static final java.lang.String sTypeApplication
static final java.lang.String sTypeBatch
static final java.lang.String sTypeBrowser
static final java.lang.String sTypePortal
static final java.lang.String sNewThread
static final int ORIENTATION_LEFT_TO_RIGHT
static final int ORIENTATION_RIGHT_TO_LEFT
static final int ORIENTATION_UNKNOWN
PRThread getThread(java.lang.String aName)
aName
- name of ThreadClipboardPage getRequestorPage()
PRAuthorization getAuthorizationHandle()
void queueBatchActivity(java.lang.String aClassName, java.lang.String aActivityName, ParameterPage aParamPage)
aClassName
- class of ActivityaActivityName
- name of activityaParamPage
- parameter page for activtyjava.lang.Object queueBatchActivity(java.lang.String aClassName, java.lang.String aActivityName, ParameterPage aParamPage, ClipboardPage aPrimaryPage)
aClassName
- Class to which Activity belongsaActivityName
- Name of Activity to executeaParamPage
- Parameter page for activty. May be null.aPrimaryPage
- Primary page for the activity. Must be of the
type Code-Pega-Child, or null.java.lang.Object queueBatchActivity(java.lang.String aClassName, java.lang.String aActivityName, ParameterPage aParamPage, ClipboardPage aPrimaryPage, java.util.List aOtherPages, boolean aIsDetachedTask) throws IncompatibleClassException
aClassName
- Class to which Activity belongsaActivityName
- Name of Activity to executeaParamPage
- Parameter page for activty. May be null.aPrimaryPage
- Primary page for the activity. Must be of the
type Code-Pega-Child, or null.aOtherPages
- list of ClipboardPages (which must be top level
named pages). Copies of these pages will be placed into the agents
clipboard before execution of this activity. May be null.aIsDetachedTask
- true if detached, false if a child requestor taskIncompatibleClassException
- The primary page is not of Code-Pega-Child classvoid stopBatchActivity(java.lang.Object aChildIdentifier) throws PRNoSuchChildException
Note that the caller should still follow this with a call to waitOnAllBatchActivities()
in order to properly finish its task.
aChildIdentifier
- The object handle representing a child requestorPRNoSuchChildException
- The given child is not valid.void stopBatchActivities()
Unlike stopBatchActivity(Object)
, it is not necessary to call waitOnAllBatchActivities()
to cleanup the child requestors.
void waitOnBatchActivity(java.lang.Object aChildIdentifier) throws PRNoSuchChildException
aChildIdentifier
- The child to wait forPRNoSuchChildException
- The given child is not valid.void waitOnBatchActivity(java.lang.Object aChildIdentifier, long aTimeout) throws PRNoSuchChildException, PRTimeoutExpiredException
aChildIdentifier
- The child requestor to wait foraTimeout
- the number of milliseonds to wait for the child. If the
timeout is reached before the child is done, a PRTimeoutOccurredException is
thrownPRNoSuchChildException
- The given child is not valid.PRTimeoutExpiredException
- Thrown when specified amount of time runs
out and the child has yet to terminatevoid waitOnAllBatchActivities()
void waitOnAllBatchActivities(long aTimeout) throws PRTimeoutExpiredException
aTimeout
- PRTimeoutExpiredException
- when any of the activites fails
to complete before the timeout.void stopAsyncThreadActivity(java.lang.Object aChildIdentifier) throws PRNoSuchChildException
Note that the caller should still follow this with a call to waitOnAllAsyncThreadActivities()
in order to properly finish its task.
aChildIdentifier
- The object handle representing a child requestorPRNoSuchChildException
- The given child is not valid.void stopAsyncThreadActivities()
Unlike stopAsyncThreadActivity(Object)
, it is not necessary to call waitOnAllAsyncThreadActivities()
to cleanup the child requestors.
void waitOnAsyncThreadActivity(java.lang.Object aChildIdentifier) throws PRNoSuchChildException
aChildIdentifier
- The child to wait forPRNoSuchChildException
- The given child is not valid.void waitOnAsyncThreadActivity(java.lang.Object aChildIdentifier, long aTimeout) throws PRNoSuchChildException, PRTimeoutExpiredException
aChildIdentifier
- The task to wait foraTimeout
- the number of milliseonds to wait for the child. If the
timeout is reached before the child is done, a PRTimeoutOccurredException is
thrownPRNoSuchChildException
- The given child is not valid.PRTimeoutExpiredException
- Thrown when specified amount of time runs
out and the child has yet to terminatevoid waitOnAllAsyncThreadActivities()
void waitOnAllAsyncThreadActivities(long aTimeout) throws PRTimeoutExpiredException
aTimeout
- PRTimeoutExpiredException
- when any of the activites fails
to complete before the timeout.void removeAllPages(java.util.Vector aKeepPages)
aKeepPages
- a list of page names that should be retained.java.lang.String getDiagID()
java.lang.String getId()
java.lang.String getTypeName()
boolean isBatchType()
boolean getSuppressShowMethod()
void setSuppressShowMethod(boolean value)
value
- new value for the flagPRNode getNode()
PRNode
instance associated with this Requestor.PAL getPAL()
PAL
instance)java.util.Set getThreadNames()
boolean hasPersonalRuleset()
true
if this requestor's rulesetlist contains a personal rulesetjava.lang.String getEncodedUserId()
java.lang.String getEncodedRuleSetList()
java.lang.String getProcessedRuleSetList()
int getTextOrientation()
void setIgnoreDBByteGovernor(boolean aIgnoreDBByteGovernor)
aIgnoreDBByteGovernor
- value for the flagboolean isIgnoreDBByteGovernor()
java.lang.String getLocale()
void removeActionRequestRegistrar(java.lang.String aHarnessID)
aHarnessID
- - HarnessIDjava.lang.Object queueAsyncActivityOnThread(java.lang.String aClassName, java.lang.String aActivityName, ParameterPage aParamPage, ClipboardPage aPrimaryPage, java.util.List aOtherPages)
void performOnDemandQuiesce()
QuiesceManager
singleton to be passivated at the end of this HTTP requestint getSharedPageLocksHeld()
boolean isMultiThreadRequestor()
java.lang.String getCorrelationId()
void setCorrelationId(java.lang.String correlation)
correlation
- parameter to be set to the correlation Idvoid resetCorrelationId()
boolean waitForPing()
Copyright © 2015 Pegasystems Inc. All Rights Reserved.