To
list installed triggers, list active triggers, get trigger state, or display a trigger,
use the following sis-console
commands or related MBean operations.
Console commands
listtriggers
Command |
listtriggers <ra-entity> List installed triggers.
|
||
---|---|---|---|
Example |
To list installed triggers: $ ./sis-console listtriggers sis TriggerID[name=Example,vendor=ABC,version=1.0] TriggerID[name=Originating,vendor=ABC,version=1.0] TriggerID[name=Terminating,vendor=ABC,version=1.0] |
listactivetriggers
Command |
listactivetriggers <ra-entity> Lists active triggers in order of priority.
|
||
---|---|---|---|
Example |
To list active triggers: $ ./sis-console listactivetriggers sis TriggerID[name=Originating,vendor=ABC,version=1.0] TriggerID[name=Terminating,vendor=ABC,version=1.0] |
gettriggerstate
Command |
gettriggerstate <ra-entity> <trigger-id> Get the state of a trigger.
|
||
---|---|---|---|
Example |
To get trigger state: $ ./sis-console gettriggerstate sis name=Originating,vendor=ABC,version=1.0 ACTIVE |
dumptrigger
Command |
dumptrigger <ra-entity> <trigger-id> [file] Dumps a trigger to screen [or file].
|
||
---|---|---|---|
Example |
To dump a trigger to a file: $ ./sis-console dumptrigger sis name=Example,vendor=ABC,version=1.0 foo.xml Wrote trigger TriggerID[name=Example,vendor=ABC,version=1.0] to file foo.xml |
MBean operations
MBean |
---|
getTriggers
Operation |
public TriggerID[] getTriggers() throws ManagementException;
|
---|
getActiveTriggers
Operation |
public TriggerID[] getActiveTriggers() throws ManagementException;
|
---|
isActivated
Operation |
public boolean isActivated(TriggerID id) throws NullPointerException, UnrecognizedComponentException, ManagementException;
|
---|
getTrigger
Operation |
public String getTrigger(TriggerID id) throws NullPointerException, UnrecognizedComponentException, ManagementException;
|
---|