public final class TriggerFacade
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
TriggerFacade.TriggerRunTimeStatus
Provides read access to the trigger's run-time information, including current thread usage, retrieval state, and document processing state.
|
class |
TriggerFacade.TriggerThrottleValues
Provides read access to the trigger's throttled (adjusted) values for trigger queue capacity, trigger queue refill level, and maximum execution threads
|
Constructor and Description |
---|
TriggerFacade(java.lang.String triggerName)
Initializes a TriggerFacade object that represents an individual trigger on the Integration Server.
|
Modifier and Type | Method and Description |
---|---|
ICondition[] |
getConditions()
Returns the conditions specified in this trigger.
|
long |
getJoinTimeout()
Returns the join condition time out value (in milliseconds) for this trigger.
|
int |
getMaxConcurrentThreads()
Returns the maximum number of server threads that can process documents for
this trigger at one time.
|
int |
getMaxDeliveryAttempts()
Returns the maximum number of times the trigger service is executed if the
previous execution ended because of an ISRuntimeException.
|
int |
getMaxDocsPrefetch()
Returns the configured queue capacity for this trigger.
|
int |
getMinDocsPrefetch()
Returns the trigger queue refill level for this trigger.
|
long |
getRedeliveryDelay()
Returns the number of milliseconds between attempts to execute a trigger
service.
|
long |
getResolutionHistoryTTL()
Returns the number of milliseconds that the document history database maintains
a record for a document processed by this trigger.
|
int |
getTransportAckSize()
Returns the maximum size of the acknowledgment queue for this trigger.
|
java.lang.String |
getTriggerName()
Returns the name of the trigger.
|
TriggerFacade.TriggerRunTimeStatus |
getTriggerRunTimeStatus()
Returns run-time information for the trigger, including thread usage, retrieval state, document processing state, and the trigger queue level.
|
TriggerFacade.TriggerThrottleValues |
getTriggerThrottleValues()
Returns the current queue capacity and number of concurrent execution threads
for this trigger as determined by the global Queue Capacity Throttle and the
Execution Threads throttle.
|
boolean |
isConcurrent()
Returns a boolean indicating whether the processing mode for this trigger is
set to concurrent or serial.
|
boolean |
isExecuteEnabled()
Returns a boolean indicating whether the trigger is enabled.
|
boolean |
isInDoubtDetection()
Returns a boolean indicating whether duplicate detection is provided for
guaranteed documents received by this trigger.
|
boolean |
isNodeLocked()
Returns a boolean indicating whether this trigger is locked.
|
boolean |
isResolveWithHistory()
Returns a boolean indicating whether document history is used
to determine whether a document is a duplicate of one already processed by
the trigger.
|
boolean |
isSerialSuspendOnError()
Returns a boolean indicating whether document retrieval and document
processing will be suspended for this trigger if the associated trigger
service ends in error.
|
void |
setProcessingSuspended(boolean suspendFlag,
boolean persistFlag)
Suspends or resumes document processing for this trigger.
|
void |
setRetrievalSuspended(boolean suspendFlag,
boolean persistFlag)
Suspends or resumes document retrieval for this trigger.
|
void |
setRunTimeProperties(java.lang.String queueCapacity,
java.lang.String queueRefillLevel,
java.lang.String maxExecutionThreads)
Edit the run-time properties of the trigger.
|
public TriggerFacade(java.lang.String triggerName) throws ServiceException
triggerName
- the String representing the fully qualified name of the trigger.ServiceException
public java.lang.String getTriggerName()
public TriggerFacade.TriggerRunTimeStatus getTriggerRunTimeStatus() throws ServiceException
ServiceException
- Among the possible causes, if the method is run against a trigger that has been created, but is not yet configured.public TriggerFacade.TriggerThrottleValues getTriggerThrottleValues()
public ICondition[] getConditions()
public int getMaxDocsPrefetch()
public int getMinDocsPrefetch()
public int getTransportAckSize()
public int getMaxConcurrentThreads()
public long getJoinTimeout()
public long getResolutionHistoryTTL()
public int getMaxDeliveryAttempts()
public long getRedeliveryDelay()
public boolean isInDoubtDetection()
public boolean isResolveWithHistory()
public boolean isConcurrent()
public boolean isExecuteEnabled()
public boolean isSerialSuspendOnError()
public boolean isNodeLocked()
public void setProcessingSuspended(boolean suspendFlag, boolean persistFlag) throws ServiceException
When you suspend document processing, the Integration Server will not dispatch any more server threads to process documents in the trigger queue. Any server threads currently processing documents for the trigger will execute to completion. This includes documents that are being retried.
This method affects all documents in this trigger queue on the Integration Server, including documents retrieved from the Broker and from local publishing.
The Integration Server will not suspend or resume document processing for this trigger if it is locked.
suspendFlag
- A boolean
indicating whether document
processing should be suspended or resumed for this
trigger. Use true to suspend; false to resume.persistFlag
- A boolean
indicating whether the document processing
change for this trigger should be permanent or temporary.
Use true to save the change; false to indicate that the
change is temporary.ServiceException
- Can occur for many reasons, two of which are: when the trigger is locked; or the trigger
has been created, but has not yet been configured. Note that no
exception will be thrown if document processing for the trigger is
already suspended.public void setRetrievalSuspended(boolean suspendFlag, boolean persistFlag) throws ServiceException
This method does not affect document retrieval for locally published documents.
The Integration Server will not suspend or resume document processing for the trigger if it is locked.
When you suspend document retrieval, the trigger will continue to receive documents delivered to the default client.
When you suspend document retrieval, Integration Server will not dispatch any server threads to retrieve documents from the messaging provider (Broker or Univesal Messaging) for the trigger. Any server threads currently retrieving documents for the trigger will execute to completion.
suspendFlag
- A boolean
indicating whether document
retrieval should be suspended or resumed for this trigger.
Use true to suspend; false to resume.persistFlag
- A boolean
indicating whether the document
processing change for this trigger should be permanent
or temporary. Use true to save the change; false to
indicate that the change is temporary.ServiceException
- Can occur for many reasons, two of which are: when the trigger
is locked; or the trigger has been created, but has not yet been
configured.Note that no exception will be thrown if document
retrieval for the trigger is already suspended.public void setRunTimeProperties(java.lang.String queueCapacity, java.lang.String queueRefillLevel, java.lang.String maxExecutionThreads) throws ServiceException
queueCapacity
- A String
specifying the maximum
number of documents that the Integration Server
can store in this trigger queue.queueRefillLevel
- A String
specifying the number of unprocessed
documents that must remain in this trigger queue
before the server retrieves more documents for
this trigger from the Broker.maxExecutionThreads
- A String
specifying the maximum number of
threads that can process documents for this
trigger concurrently.ServiceException
- Can occur for many reasons, two of which are: when the trigger is
locked; or the trigger has been created, but has not yet been configured.