Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 4 AMI API : AMI C API Session Functions : ami_AddProperty()

ami_AddProperty()
Function
Declaration
ami_Error ami_AddProperty(
const char * inpName,
void * inpValue,
ami_Property ** inpProperties );
Purpose
Creates a linked list defined as ami_Property and adds transport properties to it. The ami_AddProperty() API allocates memory and creates a linked list for every parameter added.
Create property list using the ami_AddProperty() API and pass it to ami_SessionCreateUsingProperties() API.
Parameters
 
The following table provides the supported property names and their default values:
 
Choice of transport. The available options are:
Table 8 Properties List for hawk_transport = tibas
 
Used to detect if an agent has joined and needs to match one specified in hawkagent.cfg file.
tibpgm://(default provided by AS)
TIBCO ActiveSpaces discover parameter.
All internal synchronous communications will use this default timeout in milliseconds.
Internal memory size allocation in bytes.
Internal parameter for even distribution of data in seeders.
Number of threads used by TIBCO ActiveSpaces API.
Unique identification of HMA with given agent.
<hawk_domain>_<agent_name>_<agent_domain>_0
Unique session id per microagent session. This is useful when a single process creates multiple ami sessions. The integer number at the end starts from 0 and keeps increasing for multiple ami sessions.
Table 9 Properties List for hawk_transport = tibrv
 
TIBCO Rendezvous service property.
TIBCO Rendezvous network property.
TIBCO Rendezvous daemon property.
TIBCO Rendezvous queue for AMI session.
Internal-rv-transports
TIBCO Rendezvous transport for AMI session.
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved