BEA Logo BEA WebLogic Enterprise Release 5.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WebLogic Enterprise Doc Home   |   Tuxedo ATMI Topics   |   Previous Topic   |   Next Topic   |   Contents   |   Index

T_EVENT_COMMAND Class Definition

Overview

The T_EVENT_COMMAND class represents a set of subscriptions registered with the Event Broker that trigger execution of system commands. When an event is detected, it is compared to each T_EVENT_COMMAND object. If the event name matches the value in TA_EVENT_EXPR and the optional filter rule is true, then the event buffer is formatted and passed to the system's command interpreter.

Attribute Table

Table 0-12 T_EVENT_COMMAND Class Definition Attribute Table

Attribute

Type

Permissions

Values

Default

TA_EVENT_EXPR( r )

TA_EVENT_FILTER( k )

TA_EVENT_FILTER_BINARY( k )

string

string

carray

R--------

R--------

R--------

string[1...255]

string[1...255]

carray[1...64000]

N/A

none

none

TA_STATE( r )

string

R-x------

GET:"{ACT}"

SET:"{NEW|INV}"

N/A

N/A

TA_COMMAND( r )

string

R--------

string[1...255]

N/A

( k ) - a key field for object retrieval
( r ) - the field is required when a new object is created

Check MIB(5) for an explanation of Permissions.

Attribute Semantics

TA_EVENT_EXPR: string[1...255]

Event pattern expression. This expression, in recomp(3) format, controls which event names match this subscription.

TA_EVENT_FILTER: string[1...255]

Event filter expression. This expression, if present, is evaluated with respect to the posted buffer's contents. It must evaluate to TRUE or this subscription is not matched.

TA_EVENT_FILTER_BINARY: carray[1...64000]

Event filter expression, in binary (carray) format. Same as TA_EVENT_FILTER, but may contain arbitrary binary data. Only one of TA_EVENT_FILTER or TA_EVENT_FILTER_BINARY may be specified.

TA_STATE:

GET: ACTive

A GET operation will retrieve configuration information for the matching T_EVENT_COMMAND object(s).

SET: {NEW|INValid}

A SET operation will update configuration information for the T_EVENT_COMMAND object. The following states indicate the meaning of a TA_STATE set in a SET request. States not listed may not be set.

NEW

Create T_EVENT_COMMAND object. Successful return leaves the object in the ACTive state.

INValid

Delete T_EVENT_COMMAND object. Successful return leaves the object in the INValid state.

TA_COMMAND: string[1...255]

Execute this system command when an event matching this object is detected. For UNIX system platforms, the command is executed in the background using system(3).