com.ibm.websphere.smf
Interface SmfEventInfrastructure
- public interface SmfEventInfrastructure
Field Summary
Modifier and Type | Field and Description |
---|---|
|
ADD_DATA_FAILED_NO_REQUEST
Error: There is no request in dispatch on this thread
|
|
ADD_DATA_FAILED_RECORDING_OFF
Error: SMF120 Subtype 9 recording is disabled
|
|
ADD_DATA_FAILED_TOO_BIG
Error: User Data > 2K in length
|
|
ADD_DATA_FAILED_TOO_MANY
Error: 5 types, the max, have been set already
|
|
ADD_DATA_OK
OK: New type and value was added.
|
|
ADD_DATA_REPLACED_DATA
OK: Data for this type was already set.
|
|
DEREGISTER_FAILED
Error: Object found, but unable to be removed from registration container
|
|
DEREGISTER_OK
OK: Object successfully deregistered
|
|
DEREGISTER_WARNING_NOTIFIER_NOT_REGISTERED
Warning: Object not found in registration container
|
|
SEI_LOC
The location in JNDI where this object can be obtained.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
addDataToSMF120Subtype9Record(int type,byte[] data)
Used to provide data to be included in the User Data section
of the SMF 120 Subtype 9 record.
|
|
deregister(SmfEventNotifier sen)
|
|
isSMF120Subtype9Enabled()
Used to determine if SMF recording is enabled for the SMF 120
subtype 9 record.
|
|
register(SmfEventNotifier sen)
Registers an
SMFENObject
with WebSphere.
|
Field Detail
SEI_LOC
- static final java.lang.String SEI_LOC
The location in JNDI where this object can be obtained.
See Also:
DEREGISTER_OK
- static final int DEREGISTER_OK
OK: Object successfully deregistered
See Also:
DEREGISTER_WARNING_NOTIFIER_NOT_REGISTERED
- static final int DEREGISTER_WARNING_NOTIFIER_NOT_REGISTERED
Warning: Object not found in registration container
See Also:
DEREGISTER_FAILED
- static final int DEREGISTER_FAILED
Error: Object found, but unable to be removed from registration container
See Also:
ADD_DATA_OK
- static final int ADD_DATA_OK
OK: New type and value was added.
See Also:
ADD_DATA_REPLACED_DATA
- static final int ADD_DATA_REPLACED_DATA
OK: Data for this type was already set. New value will be used.
See Also:
ADD_DATA_FAILED_TOO_BIG
- static final int ADD_DATA_FAILED_TOO_BIG
Error: User Data > 2K in length
See Also:
ADD_DATA_FAILED_TOO_MANY
- static final int ADD_DATA_FAILED_TOO_MANY
Error: 5 types, the max, have been set already
See Also:
ADD_DATA_FAILED_RECORDING_OFF
- static final int ADD_DATA_FAILED_RECORDING_OFF
Error: SMF120 Subtype 9 recording is disabled
See Also:
ADD_DATA_FAILED_NO_REQUEST
- static final int ADD_DATA_FAILED_NO_REQUEST
Error: There is no request in dispatch on this thread
See Also:
Method Detail
register
- int register(SmfEventNotifier sen)
Registers an
SMFENObject
with WebSphere.
Parameters:
sen
- The
SMFENObject
to
register. Returns:
0 if it works, non-zero if it doesn't.
deregister
- int deregister(SmfEventNotifier sen)
Parameters:
sen
- The
SMFENObject
to
deregister. Returns:
0 if it works, 1 if the object was not previously registered, or 2 if it failed
isSMF120Subtype9Enabled
- java.lang.Boolean isSMF120Subtype9Enabled( )
Used to determine if SMF recording is enabled for the SMF 120
subtype 9 record.
addDataToSMF120Subtype9Record
- int addDataToSMF120Subtype9Record( int type,
- byte[] data)
Used to provide data to be included in the User Data section
of the SMF 120 Subtype 9 record.
Parameters:
type
- used to identify the owner of (and thus how to format)
the User Data.
The value 0 is unused.
The value 1 is reserved for use by WebSphere Application
Server. Values <65535 arereservedforusebyibm.values>= 65535 are available for use by customers etc.
No more than 5 unique types of User Data can be added to
a single request's record.
Subsequent additions of an already present User Data type
will overwrite the previous data of that type such that each
User Data type in a given request record shall be unique. data
- The block of data to be included in the SMF 120 subtype 9
User Data record. Length cannot exceed 2KB. Returns:
retcode (Values are defined as constants below)