com.sap.aii.af.service.administration.api.monitoring

Class ChannelStatusFactory

java.lang.Object
  extended by com.sap.aii.af.service.administration.api.monitoring.ChannelStatusFactory

public class ChannelStatusFactory
extends Object

A factory for ChannelStatus instances. Use this to create the channel status container objects to be returned from the ChannelStatusCallback registered with the Adapter Framework.

Usage:

 ChannelStatusFactory.getInstance().getChannelStatus(channel, state, message)
 

See Also:
ChannelStatusCallback, ChannelStatus

Method Summary
 ChannelStatus createChannelStatus(Channel channel, ChannelState state, String message)
          Creates a new ChannelStatus instance representing the runtime status of an adapter channel.
static ChannelStatusFactory getInstance()
          Retrieves an instance of this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ChannelStatusFactory getInstance()
Retrieves an instance of this factory.

Returns:
the ChannelStatusFactory instance

createChannelStatus

public ChannelStatus createChannelStatus(Channel channel,
                                         ChannelState state,
                                         String message)
Creates a new ChannelStatus instance representing the runtime status of an adapter channel.

Parameters:
channel - the channel identified by this status
state - the channel's ChannelState
message - a message describing the channel's state
Returns:
the ChannelStatus instance
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.af.svc.facade api BC-XI


Copyright 2011 SAP AG Complete Copyright Notice