Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

setAssignment() - Assign an openUTM-LU62 Gateway or a communication service to the proxy cluster

Function:

BcAdminProxyCluster.setAssignment()

Assigns a CICS component (openUTM-LU62 Gateway or communication service) to the specified proxy cluster.

Parameters:

bc_object (BcObject of type BcObjectType.PROXY_CLUSTER)

Proxy cluster object whose CICS component is to be assigned.

comp_type (String)

Type of component BcObjectType.LU62GATEWAY.toString() or BcObjectType.COMMUNICATION_SERVICE.toString().

comp_obj (BcObject of type BcObjectType.LU62GATEWAY or BcObjectType.COMMUNICATION_SERVICE)

openUTM-LU62 Gateway object or communication service object that is to be assigned to the proxy cluster.

Return:

None

Exceptions:

BcObjectException, BcParameterException

Note:

If a CICS component is assigned to a proxy cluster then the CICS component is implicitly assigned to the master proxy and to all other proxies in the cluster to which no CICS component of this type is as yet assigned. All proxies in the cluster to which a CICS component of this type is already explicitly assigned retain this assignment.

Example:

...
import BcAdminLu62Gateway 
import BcAdminProxyCluster
... 
clstr_obj=BcAdminProxyCluster.getObject("BCCluster") 
gw_props={"host": "bchost01", "install-path": "/opt/lib/utmlu62"} 
gw_obj=BcAdminLu62Gateway.getObject(gw_props)
gw_dicn=BcAdminProxy.setAssignment(clstr_obj, "lu62gateway", gw_obj)
...