^1640696316099
@
sname
ServerActions
slabel
ServerActions
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
sdescription
<p>服务器相关的有关动作。</p>
snotXmlAttribute
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  actions
    @/@actions/@Exec
    sname
    executeSSH
    scloseSession
    true
    srunBackground
    false
    scommand
    var:command
    sinterpretationType
    Self
    sattributeTemplate
    false
    schildsAttributeTemplate
    false
    svarScope
    Local
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    screateLocalVarScope
    false
    ssaveReturn
    true
    sreturnVarName
    lsContent
    sdisableGlobalContext
    false
    sdescriptors
    xworker.jsch.Exec
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    Exec
      @/@actions/@Exec/@AppSession
      sname
      AppSession
      sserver
      var:server
      sdescriptors
      xworker.jsch.Exec/@AppSession
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      AppSession
  @/@ExecuteSSHScripts
  sname
  ExecuteSSHScript
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.SelfAction
  smany
  true
  seditCols
  2
  sinitialization
  false
  sgroup
  xworker.app.server
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>执行SSH脚本。</p>

<p><strong>服务器过滤</strong></p>

<p>&nbsp;&nbsp;&nbsp; 只有状态为1，操作系统为linux ,且有管理的地址和端口，且用户名/密码不为空的服务器才会被执行。</p>

<p><strong>选择服务器</strong></p>

<ul>
	<li>默认执行所有服务器。</li>
	<li>如果指定了服务器标识或服务器分组标识，那么会执行二者指定的服务器，并且服务器列表会合并，每个服务器只会执行一次。</li>
</ul>

<p><strong>事件：</strong></p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;通过actions（动作）子节点可以添加事件，如果执行的事件，那么在执行时会被触发。</p>

<ul>
	<li><strong>onSuccess</strong><br />
	如果一个服务器执行成功时触发，参数：server（数据对象）、command（字符串）和result（字符串，执行结果）。<br />
	&nbsp;</li>
	<li><strong>onException</strong><br />
	如果一个服务器执行时发生异常时触发，参数：server（数据对象）、command（字符串）和exception（异常）。<br />
	&nbsp;</li>
	<li><strong>onFinish</strong><br />
	全部执行完毕时触发，参数无。</li>
</ul>

<p><strong>可以重写的方法：</strong></p>

<ul>
	<li><strong>getCommand</strong><br />
	返回要执行的SSH脚本命令。<br />
	&nbsp;</li>
	<li><strong>getServers</strong><br />
	获取要执行的服务器列表。</li>
</ul>

<p><strong>返回值：</strong>null，没有返回值。</p>
#$@text#$@
  snotXmlAttribute
  false
  sth_createIndex
  true
  sth_registThing
  child|xworker.lang.actions.Actions
  sth_registMyChilds
  false
  sth_mark
  false
  sid
  ExecuteSSHScripts
    @/@ExecuteSSHScripts/@actions
    sname
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    actions
      @/@ExecuteSSHScripts/@actions/@run
      sname
      run
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.app.server.actions.ServerActions
      smethodName
      run
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      run
      @/@ExecuteSSHScripts/@actions/@getCommand
      sname
      getCommand
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.app.server.actions.ServerActions
      smethodName
      getCommand
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      getCommand
      @/@ExecuteSSHScripts/@actions/@getServers
      sname
      getServers
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.app.server.actions.ServerActions
      smethodName
      getServers
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      getServers
      @/@ExecuteSSHScripts/@actions/@onSuccess
      sname
      onSuccess
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.app.server.actions.ServerActions
      smethodName
      onSuccess
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      onSuccess
      @/@ExecuteSSHScripts/@actions/@onException
      sname
      onException
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.app.server.actions.ServerActions
      smethodName
      onException
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      onException
      @/@ExecuteSSHScripts/@actions/@onFinish
      sname
      onFinish
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.app.server.actions.ServerActions
      smethodName
      onFinish
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sdescriptors
      xworker.lang.actions.Actions/@JavaAction
      sinheritDescription
      false
      sth_createIndex
      false
      sth_registMyChilds
      false
      sth_mark
      false
      sid
      onFinish
    @/@ExecuteSSHScripts/@name
    sname
    name
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    name
    @/@ExecuteSSHScripts/@label
    sname
    label
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    label
    @/@ExecuteSSHScripts/@serverId
    sname
    serverId
    sinputtype
    openWindow
    ssize
    60
    sshowLabel
    true
    sinputattrs
    xworker.swt.dataObject.AttributeDataObjectSelector/@shell|attributeName=id,winHeight=-1,multi=true,winWidth=-1,valueMapping=name%3AserverName,dataObject=xworker.app.server.dataobjects.Server
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    serverId
    @/@ExecuteSSHScripts/@serverName
    sname
    serverName
    sinputtype
    label
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    serverName
    @/@ExecuteSSHScripts/@serverGroupId
    sname
    serverGroupId
    sinputtype
    openWindow
    ssize
    60
    sshowLabel
    true
    sinputattrs
    xworker.swt.dataObject.AttributeDataObjectSelector/@shell|attributeName=id,winHeight=-1,winWidth=-1,valueMapping=name%3AserverGorupName,dataObject=xworker.app.server.dataobjects.ServerGroup
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    serverGroupId
    @/@ExecuteSSHScripts/@serverGorupName
    sname
    serverGorupName
    sinputtype
    label
    ssize
    60
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    serverGorupName
    @/@ExecuteSSHScripts/@command
    sname
    command
    sinputtype
    textarea
    sshowLabel
    true
    sinputattrs
    codeName=ssh codeType=ssh wrap=false fillBoth=true cols= rows=
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    command
    @/@ExecuteSSHScripts/@finshOnException
    sname
    finshOnException
    sinputtype
    truefalse
    sshowLabel
    true
    sreadOnly
    false
    sdefault
    false
    sinheritDescription
    false
    sdescription
    <p>如果发生异常，那么未执行的服务器是否也中断不执行。</p>
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    finshOnException
    @/@ExecuteSSHScripts/@description
    sname
    description
    sinputtype
    html
    sshowLabel
    true
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    snotXmlAttribute
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_mark
    false
    sid
    description
    @/@ExecuteSSHScripts/@actions1
    sname
    actions
    slabel
    Actions
    sdescriptors
    xworker.lang.MetaDescriptor2/@thing
    sextends
    xworker.lang.actions.Actions
    szh_label
    动作
    sid
    actions1
      @/@ExecuteSSHScripts/@actions1/@name
      sname
      name
      sdescriptors
      xworker.lang.MetaDescriptor2/@attribute
      sid
      name
