AdminTask 物件的 ChannelFrameworkManagement 指令群組

您可以使用 Jython 或 Jacl Scripting 語言來配置安全。 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 指令會刪除現有鏈,並選擇性地刪除該鏈中的傳輸通道。

目標物件

要刪除的鏈結。 (物件名稱,必要)

必要的參數和回覆值

-deleteChannels
如果這個屬性的值是 true ,則會刪除指定鏈所使用的非共用傳輸通道。 (Boolean,選用)

範例

批次模式下的用法範例:

  • 使用 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'])