前提条件
IBM 相関規則の記述手順
IBM(R) の相関規則の式をコーディングする際、共通ベース・イベント・プロパティーの取得と更新を行う 2 つの事前定義メソッドが利用できます。 act_event 変数の getAttribute(property_name) メソッドは、 property_name で指定された共通ベース・イベント・プロパティーの値を取得します。たとえば、次のコードは、イベントの msg プロパティーを取得します。
act_event.getAttribute(msg);act_event 変数の set(property_name, "new_value") メソッドは、 property_name で指定された共通ベース・イベント・プロパティーの値を new_value に設定します。たとえば、次のコードは、イベントの severity プロパティーを更新します。
Short newSeverity = new Short("50"); act_event.set("severity", newSeverity);
次の表は、共通ベース・イベント・プロパティーと、 act_event 変数の getAttribute メソッドが戻すデータ型を一覧にしたものです。 act_event 変数の set メソッドで、この表にあるデータ型を使用してください。
共通ベース・イベントのプロパティー | act_event.getAttribute(property_name) によって戻される型 |
---|---|
contextDataElements[n] | org.eclipse.hyades.logging.events.cbe.ContextDataElement インターフェースを実装したオブジェクト |
contextDataElements[n].contextId | String |
contextDataElements[n].contextValue | String |
contextDataElements[n].name | String |
contextDataElements[n].type | String |
creationTime | String |
creationTimeAsLong | Long |
elapsedTime | Long |
extendedDataElements[n] | 適切な型のオブジェクト。
|
extendedDataElements[n]. | org.eclipse.hyades.logging.events.cbe.ExtendedDataElement インターフェースを実装したオブジェクト。 |
extensionName | String |
グローバル・インスタンス ID (globalInstanceId) | String |
ローカル・インスタンス ID (localInstanceId) | String |
msg | String |
msgDataElement | org.eclipse.hyades.logging.events.cbe.MsgDataElement インターフェースを実装したオブジェクトのインスタンス。 |
msgDataElement.msgCatalog | String |
msgDataElement.msgCatalogId | String |
msgDataElement.msgCatalogTokens[n] | String |
msgDataElement.msgCatalogType | String |
msgDataElement.msgId | String |
msgDataElement.msgIdType | String |
msgDataElement.msgLocale | String |
priority | Short |
repeatCount | Short |
reporterComponentId | org.eclipse.hyades.logging.events.cbe.ComponentIdentification インターフェースを実装したオブジェクトのインスタンス。 |
reporterComponentId.application | String |
reporterComponentId.component | String |
reporterComponentId.componentIdType | String |
reporterComponentId.componentType | String |
reporterComponentId.executionEnvironment | String |
reporterComponentId.instanceId | String |
reporterComponentId.location | String |
reporterComponentId.locationType | String |
reporterComponentId.processId | String |
reporterComponentId.subComponent | String |
reporterComponentId.threadId | String |
sequenceNumber | Long |
severity | Short |
situation | org.eclipse.hyades.logging.events.cbe.Situation インターフェースを実装したオブジェクトのインスタンス。 |
situation.availableSituation | org.eclipse.hyades.logging.events.cbe.AvailableSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.availableSituation.availabilityDisposition | String |
situation.availableSituation.operationDisposition | String |
situation.availableSituation.processingDisposition | String |
situation.availableSituation.reasoningScope | String |
situation.categoryName | String |
situation.configureSituation | org.eclipse.hyades.logging.events.cbe.ConfigureSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.configureSituation.reasoningScope | String |
situation.configureSituation.successDisposition | String |
situation.connectSituation | org.eclipse.hyades.logging.events.cbe.ConnectSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.connectSituation.reasoningScope | String |
situation.connectSituation.situationDisposition | String |
situation.connectSituation.successDisposition | String |
situation.createSituation | org.eclipse.hyades.logging.events.cbe.CreateSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.createSituation.reasoningScope | String |
situation.createSituation.successDisposition | String |
situation.dependencySituation | org.eclipse.hyades.logging.events.cbe.DependencySituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.dependencySituation.dependencyDisposition | String |
situation.dependencySituation.reasoningScope | String |
situation.destroySituation | org.eclipse.hyades.logging.events.cbe.DestroySituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.destroySituation.reasoningScope | String |
situation.destroySituation.successDisposition | String |
situation.featureSituation | org.eclipse.hyades.logging.events.cbe.FeatureSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.featureSituation.featureDisposition | String |
situation.featureSituation.reasoningScope | String |
situation.otherSituation | org.eclipse.hyades.logging.events.cbe.OtherSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.otherSituation.any | String |
situation.otherSituation.reasoningScope | String |
situation.reportSituation | org.eclipse.hyades.logging.events.cbe.ReportSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.reportSituation.reasoningScope | String |
situation.reportSituation.reportCategory | String |
situation.requestSituation | org.eclipse.hyades.logging.events.cbe.RequestSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.requestSituation.reasoningScope | String |
situation.requestSituation.situationQualifier | String |
situation.requestSituation.successDisposition | String |
situation.situationType | org.eclipse.hyades.logging.events.cbe.SituationType インターフェースを実装したオブジェクトのインスタンス。 |
situation.startSituation | org.eclipse.hyades.logging.events.cbe.StartSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.startSituation.reasoningScope | String |
situation.startSituation.situationQualifier | String |
situation.startSituation.successDisposition | String |
situation.stopSituation | org.eclipse.hyades.logging.events.cbe.StopSituation インターフェースを実装したオブジェクトのインスタンス。 |
situation.stopSituation.reasoningScope | String |
situation.stopSituation.situationQualifier | String |
situation.stopSituation.successDisposition | String |
sourceComponentId | org.eclipse.hyades.logging.events.cbe.ComponentIdentification インターフェースを実装したオブジェクトのインスタンス。 |
sourceComponentId.application | String |
sourceComponentId.component | String |
sourceComponentId.componentIdType | String |
sourceComponentId.componentType | String |
sourceComponentId.executionEnvironment | String |
sourceComponentId.instanceId | String |
sourceComponentId.location | String |
sourceComponentId.locationType | String |
sourceComponentId.processId | String |
sourceComponentId.subComponent | String |
sourceComponentId.threadId | String |
version | String |
(C) Copyright IBM Corporation 2006. All Rights Reserved.