public class PstatusAlarmListener extends TransactionalAlarmListener
| Modifier and Type | Field and Description | 
|---|---|
static int | 
ANY_PSTATUS  | 
int | 
comparisonOperator  | 
static int | 
EQUALS  | 
static int | 
GREATER  | 
static int | 
GREATER_EQUAL  | 
static int | 
LOWER  | 
static int | 
LOWER_EQUAL  | 
java.lang.String | 
pubId  | 
static java.lang.String | 
REVISION  | 
int | 
srcPstatus  | 
int | 
tgtPstatus  | 
| Constructor and Description | 
|---|
PstatusAlarmListener(Publication pub,
                    int comparisonOperator,
                    int srcPstatus,
                    int tgtPstatus)
Constructs a new PstatusAlarmListener 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
handleTransactionalAlarm(AlarmEntry entry)
Invoked when pstatus alarm is reached, update pstatus if allowed to 
 | 
java.lang.String | 
toString()
readable PstatusAlarmListener toString 
 | 
handleAlarmpublic static final java.lang.String REVISION
public static final int ANY_PSTATUS
public static final int LOWER
public static final int LOWER_EQUAL
public static final int EQUALS
public static final int GREATER_EQUAL
public static final int GREATER
public java.lang.String pubId
public int srcPstatus
public int comparisonOperator
public int tgtPstatus
public PstatusAlarmListener(Publication pub, int comparisonOperator, int srcPstatus, int tgtPstatus)
pub - the publication to managedsrcPstatus - the pstatus the publication will be compared to, in order to be updatedcomparisonOperator - define how the comparison between the publication's pstatus and
 the srcPstatus and will take place in order to allow or not the pstatus change
  LOWER         (-2) : publication pstatus must be lower than srcPstatus
  LOWER_EQUAL   (-1) : publication pstatus must be lower or equal than srcPstatus
  EQUALS        ( 0) : publication pstatus must equal srcPstatus, this is the default value
  GREATER_EQUAL ( 1) : publication pstatus must be greater or equal than srcPstatus
  GREATER       ( 2) : publication pstatus must be greater than srcPstatustgtPstatus - the new pstatus the publication will get when the alarm will be reached.public void handleTransactionalAlarm(AlarmEntry entry)
handleTransactionalAlarm in class TransactionalAlarmListenerentry - the AlarmEntry which has been triggered.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001-2018 Jalios SA. All Rights Reserved.