Command and Description
Command
Handler
Arguments
DISCOVER (Continued)
The internal handler, disc_handler, is invoked when the DISCOVER
command is sent from the application. The disc_handler creates a list
of attributes available to the application using the GetDistribution( )
method. This list is also sent to the command handler as an argument.
The user-defined command handler registered using the DISCOVER
command is invoked when START_DISCOVER is sent from the
connection manager.
No default handler. Can override.
See also: FILTER, START_DISCOVER, SendRecord( ),
SendTermination( ), GetDistribution( )
Attribute list
DISTRIBUTE
The default handler for this command creates an internal list of
attributes to be used by the application to prepare for an upcoming
distribution. The list also can be used by the handler during a
distribution as a form of validation. For example, the handler for the
MODIFY command can use the CheckDistributionAttr( ) method to
determine if the attribute should be updated. Or, by overriding the
default handler, the application can perform any initialization that
might be required.
Another function performed by the default handler is to set the
distribution mode. Since the handler can be overridden, this also is
done in the _process_attribute( ) internal function.
The protocol sends a record type with this command.
Default handler: dist_handler
See also: MODIFY, GetDistributionMode( ), GetDistributionList( ),
CheckDistributionAttr( )
Attribute list
Developing Your Application in Perl
59
Tivoli® SecureWay Application Management Toolkit Guide