org.eclipse.stardust.engine.api.runtime
Class AuditTrailHealthReport

java.lang.Object
  extended by org.eclipse.stardust.engine.api.runtime.AuditTrailHealthReport
All Implemented Interfaces:
Serializable

public class AuditTrailHealthReport
extends Object
implements Serializable

Provides key indicators of audit trail health.

Version:
$Revision$
Author:
rsauer
See Also:
Serialized Form

Constructor Summary
AuditTrailHealthReport(long nPendingPiCompletes, long nPendingPiAborts, long nPendingAiAborts, long nPisHavingCrashedAis, long nPisHavingCrashedThreads, long nPisHavingCrashedEventBindings)
           
AuditTrailHealthReport(Set<Long> nPendingPiCompletesSet, Set<Long> nPendingPiAbortsSet, Set<Long> nPendingAiAbortsSet, Set<Long> nPisHavingCrashedAisSet, Set<Long> nPisHavingCrashedThreadsSet, Set<Long> nPisHavingCrashedEventBindingsSet)
           
 
Method Summary
 Set<Long> getActivityInstancesLackingAbortion()
          Gets the set of process instances oids having activity instances which had been scheduled for abortion but did not succeed.
 long getNumberOfActivityInstancesLackingAbortion()
          Gets the number of activity instances which had been scheduled for abortion but did not succeed.
 long getNumberOfProcessInstancesHavingCrashedActivities()
          Gets the number of process instances likely to have crashed activity instances.
 long getNumberOfProcessInstancesHavingCrashedEventBindings()
          Gets the number of process instances likely to have crashed event bindings.
 long getNumberOfProcessInstancesHavingCrashedThreads()
          Gets the number of process instances likely to have crashed activity threads.
 long getNumberOfProcessInstancesLackingAbortion()
          Gets the number of process instances which had been scheduled for abortion but did not succeed.
 long getNumberOfProcessInstancesLackingCompletion()
          Gets the number of process instances not having further pending activities, but not beeing marked as completed itself.
 Set<Long> getProcessInstancesHavingCrashedActivities()
          Gets the set of process instances oids likely to have crashed activity instances.
 Set<Long> getProcessInstancesHavingCrashedEventBindings()
          Gets the set of process instances oids likely to have crashed event bindings.
 Set<Long> getProcessInstancesHavingCrashedThreads()
          Gets the set of process instances oids likely to have crashed activity threads.
 Set<Long> getProcessInstancesLackingAbortion()
          Gets the set of process instances oids which had been scheduled for abortion but did not succeed.
 Set<Long> getProcessInstancesLackingCompletion()
          Gets the set of process instances oids not having further pending activities, but not beeing marked as completed itself.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditTrailHealthReport

public AuditTrailHealthReport(long nPendingPiCompletes,
                              long nPendingPiAborts,
                              long nPendingAiAborts,
                              long nPisHavingCrashedAis,
                              long nPisHavingCrashedThreads,
                              long nPisHavingCrashedEventBindings)

AuditTrailHealthReport

public AuditTrailHealthReport(Set<Long> nPendingPiCompletesSet,
                              Set<Long> nPendingPiAbortsSet,
                              Set<Long> nPendingAiAbortsSet,
                              Set<Long> nPisHavingCrashedAisSet,
                              Set<Long> nPisHavingCrashedThreadsSet,
                              Set<Long> nPisHavingCrashedEventBindingsSet)
Method Detail

getNumberOfProcessInstancesLackingCompletion

public long getNumberOfProcessInstancesLackingCompletion()
Gets the number of process instances not having further pending activities, but not beeing marked as completed itself. Performing a process recovery on such processes is recommended. The number is based on all process instances from the audit trail that are not in the state COMPLETED, ABORTING or ABORTED and are having unconsumed transition tokens

Returns:
The number of process instances.

getNumberOfProcessInstancesLackingAbortion

public long getNumberOfProcessInstancesLackingAbortion()
Gets the number of process instances which had been scheduled for abortion but did not succeed. Performing a process recovery on such processes is recommended. The number is based on all process instances from the audit trail that are in the state ABORTING

Returns:
The number of process instances.

getNumberOfActivityInstancesLackingAbortion

public long getNumberOfActivityInstancesLackingAbortion()
Gets the number of activity instances which had been scheduled for abortion but did not succeed. Performing a process recovery on such activities is recommended. The number is based on all activity instances from the audit trail that are in the state ABORTING

Returns:
The number of activity instances.

getNumberOfProcessInstancesHavingCrashedEventBindings

public long getNumberOfProcessInstancesHavingCrashedEventBindings()
Gets the number of process instances likely to have crashed event bindings. Performing a process recovery on such processes is recommended. The number is based on all event binding from the audit trail having a 'deactivate' flag on the event type id.

Returns:
The number of process instances.

getNumberOfProcessInstancesHavingCrashedActivities

public long getNumberOfProcessInstancesHavingCrashedActivities()
Gets the number of process instances likely to have crashed activity instances. Performing a process recovery on such processes is recommended. The number is based on all process instances from the audit trail that are not in the state COMPLETED or ABORTED, having unconsumed transition tokens and having activities that are in the state CREATED or INTERRUPTED targeted by the transition token.

Returns:
The number of process instances.

getNumberOfProcessInstancesHavingCrashedThreads

public long getNumberOfProcessInstancesHavingCrashedThreads()
Gets the number of process instances likely to have crashed activity threads. Performing a process recovery on such processes is recommended. The number is based on all process instances from the audit trail that that are not in the state COMPLETED or ABORTED and where all target activity instances for all existing source activity instances are 0

Returns:
The number of process instances.

getProcessInstancesLackingCompletion

public Set<Long> getProcessInstancesLackingCompletion()
Gets the set of process instances oids not having further pending activities, but not beeing marked as completed itself. Performing a process recovery on such processes is recommended. The set is based on all process instances from the audit trail that are not in the state COMPLETED, ABORTING or ABORTED and are having unconsumed transition tokens

Returns:
The set of process instances oids.

getProcessInstancesLackingAbortion

public Set<Long> getProcessInstancesLackingAbortion()
Gets the set of process instances oids which had been scheduled for abortion but did not succeed. Performing a process recovery on such processes is recommended. The set is based on all process instances from the audit trail that are in the state ABORTING

Returns:
The set of process instances oids.

getActivityInstancesLackingAbortion

public Set<Long> getActivityInstancesLackingAbortion()
Gets the set of process instances oids having activity instances which had been scheduled for abortion but did not succeed. Performing a process recovery on such processes is recommended. The set is based on all activity instances from the audit trail that are in the state ABORTING

Returns:
The set of process instances oids.

getProcessInstancesHavingCrashedActivities

public Set<Long> getProcessInstancesHavingCrashedActivities()
Gets the set of process instances oids likely to have crashed activity instances. Performing a process recovery on such processes is recommended. The set is based on all process instances from the audit trail that are not in the state COMPLETED or ABORTED, having unconsumed transition tokens and having activities that are in the state CREATED or INTERRUPTED targeted by the transition token.

Returns:
The set of process instances oids.

getProcessInstancesHavingCrashedThreads

public Set<Long> getProcessInstancesHavingCrashedThreads()
Gets the set of process instances oids likely to have crashed activity threads. Performing a process recovery on such processes is recommended. The set is based on all process instances from the audit trail that that are not in the state COMPLETED or ABORTED and where all target activity instances for all existing source activity instances are 0

Returns:
The set of process instances oids.

getProcessInstancesHavingCrashedEventBindings

public Set<Long> getProcessInstancesHavingCrashedEventBindings()
Gets the set of process instances oids likely to have crashed event bindings. Performing a process recovery on such processes is recommended. The set is based on all event binding from the audit trail having a 'deactivate' flag on the event type id.

Returns:
The set of process instances oids.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.