AdminTask 对象的 ChannelFrameworkManagement 命令组
可以使用 Jython 或 Jacl 脚本编制语言来配置安全性。 ChannelFrameworkManagement 组中的命令和参数可用于创建和管理传输通道和传输通道链。
AdminTask 对象的 ChannelFrameworkManagement 命令组包括以下命令:
createChain
createChain 命令创建基于链模板的传输通道的新链。
目标对象
在其下创建新链的传输通道服务的实例。 (ObjectName,必需)必需参数和返回值
- -template
- 作为新链基础的链模板。 (ObjectName,必需)
- -name
- 新链的名称。 (字符串,必需)
- -endPoint
- 如果链是入站链则是要由新链中的 TCP 入站通道的实例使用的端点的名称。 (ObjectName,可选)
示例
批处理方式示例用法:
- 使用 Jacl:
$AdminTask createChain (cells/rohitbuildCell01/nodes/ rohitbuildCellManager01/servers/dmgr|server.xml# TransportChannelService_1) {-template WebContainer (templates/chains|webcontainer-chains.xml#Chain_1) -name trialChain1 }
$AdminTask createChain (cells/rohitbuildCell01/nodes/ rohitbuildCellManager01/servers/dmgr|server.xml# TransportChannelService_1) {-template WebContainer (templates/chains|webcontainer-chains.xml#Chain_1) -name trialChain1 -endPoint (cells/rohitbuildCell01/ nodes/rohitbuildCellManager01|serverindex.xml#EndPoint_3) }
- 使用 Jython 字符串:
AdminTask.createChain('cells/rohitbuildCell01/nodes/ rohitbuildCellManager01/servers/dmgr|server.xml# TransportChannelService_1', '[-template "WebContainer (templates/chains|webcontainer-chains.xml#Chain_1)" -name trialChain]')
AdminTask.createChain('cells/rohitbuildCell01/nodes/rohitbuildCellManager01/ servers/dmgr|server.xml#TransportChannelService_1', '[-template "WebContainer(templates/chains|webcontainer-chains. xml#Chain_1)" -name trialChain -endPoint "(cells/ rohitbuildCell01/nodes/rohitbuildCellManager01|serverindex.xml#EndPoint_3)"]')
- 使用 Jython 列表:
AdminTask.createChain('cells/rohitbuildCell01/nodes/ rohitbuildCellManager01/servers/dmgr|server.xml# TransportChannelService_1', ['-template', "WebContainer (templates/chains|webcontainer-chains.xml#Chain_1)", '-name', 'trialChain'])
AdminTask.createChain('cells/rohitbuildCell01/nodes/rohitbuildCellManager01/ servers/dmgr|server.xml#TransportChannelService_1', ['-template', "WebContainer(templates/chains|webcontainer-chains. xml#Chain_1)", '-name', 'trialChain', '-endPoint', "(cells/ rohitbuildCell01/nodes/rohitbuildCellManager01|serverindex.xml#EndPoint_3)"])
交互方式示例用法:
- 使用 Jacl:
$AdminTask createChain {-interactive}
- 使用 Jython 字符串:
AdminTask.createChain ('[-interactive]')
- 使用 Jython 列表:
AdminTask.createChain (['-interactive'])
deleteChain
deleteChain 命令删除现有的链并可选地删除链中的传输通道。
目标对象
要删除的链。 (Objectname,必需)
必需参数和返回值
- -deleteChannels
- 如果此属性的值为 true,那么将删除由指定的链使用的非共享的传输通道。 (布尔值,可选)
示例
批处理方式示例用法:
- 使用 Jacl:
$AdminTask deleteChain trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#Chain_1093554462922)
$AdminTask deleteChain trialChain(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#Chain_1093554378078) {-deleteChannels true}
- 使用 Jython 字符串:
AdminTask.deleteChain('trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#TransportChannelService_1)')
AdminTask.deleteChain('trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#TransportChannelService_1)', '[-deleteChannels true]')
- 使用 Jython 列表:
AdminTask.deleteChain('trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#TransportChannelService_1)')
AdminTask.deleteChain('trialChain1(cells/rohitbuildCell01/nodes/rohitbuildCellManager01/servers/dmgr |server.xml#TransportChannelService_1)', ['-deleteChannels', 'true'])
交互方式示例用法:
- 使用 Jacl:
$AdminTask deleteChain {-interactive}
- 使用 Jython 字符串:
AdminTask.deleteChain ('[-interactive]')
- 使用 Jython 列表:
AdminTask.deleteChain (['-interactive'])
listChainTemplates
listChainTemplates 命令显示可用于在此配置中创建链的模板列表。 所有模板都将传输通道的某个类型作为链中的最终传输通道。
目标对象
无
必需参数和返回值
- -acceptorFilter
- 此方法返回的模板都将指定类型的传输通道实例作为链中最终的传输通道。 (字符串,可选)
示例
批处理方式示例用法:
- 使用 Jacl:
$AdminTask listChainTemplates {}
$AdminTask listChainTemplates "-acceptorFilter WebContainerInboundChannel"
- 使用 Jython 字符串:
AdminTask.listChainTemplates()
AdminTask.listChainTemplates('[-acceptorFilter WebContainerInboundChannel]')
- 使用 Jython 列表:
AdminTask.listChainTemplates()
AdminTask.listChainTemplates(['-acceptorFilter', 'WebContainerInboundChannel'])
交互方式示例用法:
- 使用 Jacl:
$AdminTask listChainTemplates {-interactive}
- 使用 Jython 字符串:
AdminTask.listChainTemplates ('[-interactive]')
- 使用 Jython 列表:
AdminTask.listChainTemplates (['-interactive'])
listChains
listChains 命令列示在传输通道服务的特定实例下配置的所有链。
目标对象
在其下配置链的传输通道服务的实例。 (ObjectName,必需)
必需参数和返回值
- -acceptorFilter
- 此参数返回的链会将您指定类型的传输通道实例作为链中最终的传输通道。 (字符串,可选)
- -endPointFilter:
- 此参数返回的链将具有使用您指定的名称的端点的 TCP 入站通道。(字符串,可选)
示例
批处理方式示例用法:
- 使用 Jacl:
$AdminTask listChains (cells/rohitbuildCell01/nodes/ rohitbuildNode01/servers/server2|server.xml# TransportChannelService_1093445762328)
$AdminTask listChains (cells/rohitbuildCell01/nodes/ rohitbuildNode01/servers/server2|server.xml# TransportChannelService_1093445762328) {-acceptorFilter WebContainerInboundChannel}
$AdminTask listChains (cells/rohitbuildCell01/nodes/ rohitbuildNode01/servers/server2|server.xml# TransportChannelService_1093445762328) {-endPointFilter WC_adminhost}
- 使用 Jython 字符串:
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)')
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)', '[-acceptorFilter WebContainerInboundChannel]')
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)', '[-endPointFilter WC_adminhost]')
- 使用 Jython 列表:
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)')
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)', ['-acceptorFilter', 'WebContainerInboundChannel'])
AdminTask.listChains('(cells/rohitbuildCell01/nodes/rohitbuildNode01/servers/server2|server.xml #TransportChannelService_1093445762328)', ['-endPointFilter', 'WC_adminhost'])
交互方式示例用法:
- 使用 Jacl:
$AdminTask listChains {-interactive}
- 使用 Jython 字符串:
AdminTask.listChains ('[-interactive]')
- 使用 Jython 列表:
AdminTask.listChains (['-interactive'])