Detecção de propriedade de aplicativo estendido modelo
Microsoft.JEE.Templates.Application.Extended.Discovery.DataSource (DataSourceModuleType)
Um módulo de fonte de dados que executa uma detecção de MBean que detecta propriedades adicionais para um aplicativo existente.
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<DataSourceModuleType ID="Microsoft.JEE.Templates.Application.Extended.Discovery.DataSource" Accessibility="Public">
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="ClassId" type="xsd:string"/>
<xsd:element name="ApplicationServerId" type="xsd:string"/>
<xsd:element name="PrincipalName" type="xsd:string"/>
<xsd:element name="TargetApplicationName" type="xsd:string"/>
<xsd:element name="ApplicationName" type="xsd:string"/>
<xsd:element name="DisplayName" type="xsd:string"/>
<xsd:element name="ObjectName" type="xsd:string"/>
<xsd:element name="j2eeType" type="xsd:string"/>
<xsd:element name="IntervalSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
</OverrideableParameters>
<ModuleImplementation>
<Composite>
<MemberModules>
<DataSource TypeID="Microsoft.JEE.Templates.Specialized.Class.Discovery.DataSource" ID="Specializer">
<ClassId>$Config/ClassId$</ClassId>
<Expression>
<SimpleExpression>
<ValueExpression>
<Value>$Config/ApplicationName$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Config/TargetApplicationName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<InstanceSettings>
<Settings>
<!-- These properties are for the Application Server -->
<Setting>
<Name>$MPElement[Name="Microsoft.JEE.ApplicationServer.Instance"]/Id$</Name>
<Value>$Config/ApplicationServerId$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.JEE.ApplicationServer.Instance"]/HostName$</Name>
<Value>$Config/PrincipalName$</Value>
</Setting>
<!-- The following properties are defined for the Application-->
<Setting>
<Name>$MPElement[Name="Microsoft.JEE.Application"]/ApplicationName$</Name>
<Value>$Config/ApplicationName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.JEE.Application"]/j2eeType$</Name>
<Value>$Config/j2eeType$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Microsoft.JEE.Application"]/ObjectName$</Name>
<Value>$Config/ObjectName$</Value>
</Setting>
</Settings>
</InstanceSettings>
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
</DataSource>
</MemberModules>
<Composition>
<Node ID="Specializer"/>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.Discovery.Data</OutputType>
</DataSourceModuleType>