|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mulesoft.adapter.ra.XIConfiguration
public class XIConfiguration
Type: XIConfiguration Semantic: XIConfiguration manages all the XI channel information. During the start up phase all channels for this adapter are read by using the AF AAM and CPA API. During the run time this information is kept up-to-date by registering a call back method at the XI AAM service. Please note that this class was changed heavily from 3.0 SP16 to SP17: The CPA callback mechanism was replaced by the AAM machanism and the CPA managers are used from the AAM directly. (ra implementation specific)
| Constructor Summary | |
|---|---|
XIConfiguration()
Creates a XI configuration object. |
|
XIConfiguration(String adapterType,
String adapterNamespace)
Creates a XI configuration object. |
|
| Method Summary | |
|---|---|
void |
channelAdded(com.sap.aii.af.service.cpa.Channel channel)
|
void |
channelRemoved(com.sap.aii.af.service.cpa.Channel channel)
|
void |
channelUpdated(com.sap.aii.af.service.cpa.Channel channel)
|
com.sap.aii.af.service.administration.api.monitoring.ChannelStatus |
getChannelStatus(com.sap.aii.af.service.cpa.Channel channel,
Locale locale)
The getChannelStatus() is called by the XI AF administration GUI's to visualize the
channel status of adapters. |
LinkedList<com.sap.aii.af.service.cpa.Channel> |
getCopy(com.sap.aii.af.service.cpa.Direction direction)
Get a copy of one of the channel lists for internal processings |
void |
init(SPIManagedConnectionFactory mcf)
Initializes the inbound and outbound channel lists and takes care of the XI CPA callback registration. |
String |
localizeString(String str,
Locale locale)
The implementation of the LocalizationCallback allows the AAM to translate the channel and process status string at a later point in time into the locale of the browser that the user currently uses. |
void |
stop()
Stops the automatic configuration update via CPA callback Remove the registration for PartyChangeCallBackHandlers, if any |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XIConfiguration()
public XIConfiguration(String adapterType,
String adapterNamespace)
adapterType - Adapter type as configured in the mcf property settings.adapterNamespace - Namespace for this adapter type as configured in the mcf property settings.| Method Detail |
|---|
public void channelAdded(com.sap.aii.af.service.cpa.Channel channel)
channelAdded in interface com.sap.aii.af.service.administration.api.cpa.ChannelLifecycleCallbackcom.sap.aii.af.service.administration.api.cpa#channelAdded(com.sap.aii.af.service.cpa.Channel)public void channelUpdated(com.sap.aii.af.service.cpa.Channel channel)
channelUpdated in interface com.sap.aii.af.service.administration.api.cpa.ChannelLifecycleCallbackcom.sap.aii.af.service.administration.api.cpa#channelUpdated(com.sap.aii.af.service.cpa.Channel)public void channelRemoved(com.sap.aii.af.service.cpa.Channel channel)
channelRemoved in interface com.sap.aii.af.service.administration.api.cpa.ChannelLifecycleCallbackcom.sap.aii.af.service.administration.api.cpa#channelRemoved(com.sap.aii.af.service.cpa.Channel)
public void init(SPIManagedConnectionFactory mcf)
throws javax.resource.ResourceException
mcf - MCF that has to be informed in case of channel updates
javax.resource.ResourceException - if the CPA lookup or registration fails
public void stop()
throws javax.resource.ResourceException
javax.resource.ResourceException
public LinkedList<com.sap.aii.af.service.cpa.Channel> getCopy(com.sap.aii.af.service.cpa.Direction direction)
throws javax.resource.ResourceException
direction - Determines whether inbound (sender) channels or outbound (receiver) channels will be returned
javax.resource.ResourceException - if the direction is invalid
public com.sap.aii.af.service.administration.api.monitoring.ChannelStatus getChannelStatus(com.sap.aii.af.service.cpa.Channel channel,
Locale locale)
throws com.sap.aii.af.service.administration.api.monitoring.ChannelUnknownException
getChannelStatus() is called by the XI AF administration GUI's to visualize the
channel status of adapters. The adapter might also propagate processing status information with
the AAM push method (using com.sap.aii.af.service.administration.api.monitoring.MonitoringManager).
Channel status can also be reported actively (via the push mechansim) but getChannelStatus() and
reportChannelStatus() are mutually exclusive. This sample here uses pull for channel status and
push for process status.
Starting with XI 3.0 SP17 the monitoring part was changed significantly since the previous
com.sap.aii.af.service.monitor.api.AdapterMonitor did allow to collect unstructured status such as
the status of the MCF, other sub-components and channels. With AAM, the channel and process status can be
reported in a well-defined way that allows to provide general additional service on top, like alerting or localized
status reports.
getChannelStatus in interface com.sap.aii.af.service.administration.api.monitoring.ChannelStatusCallbackchannel: - The channel for which the status is reportedlocale: - Localization of human readable strings
com.sap.aii.af.service.administration.api.monitoring.ChannelUnknownException
public String localizeString(String str,
Locale locale)
throws com.sap.aii.af.service.administration.api.i18n.LocalizationNotPossibleException
localizeString in interface com.sap.aii.af.service.administration.api.i18n.LocalizationCallbackcom.sap.aii.af.service.administration.api.i18n.LocalizationNotPossibleExceptionLocalizationCallback.localizeString(java.lang.String, java.util.Locale)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||