com.sap.mdm.notification
Class EventDispatcherManager

java.lang.Object
  extended bycom.sap.mdm.notification.EventDispatcherManager

public class EventDispatcherManager
extends Object

This class is memory cache for EventDispatcher instances. It supply users with convenient interface for retrieving and terminating the EventDispatcher.


Method Summary
 boolean containsEventDispatcher(ServerSessionContext ctx)
          Verifies if there is instance of EventDispatcher correspondent to the specified server
 boolean containsEventDispatcher(String serverName)
          Deprecated. replaced by containsEventDispatcher(ServerSessionContext)
 EventDispatcher[] getAllEventDispatchers()
          Returns all cached instances of EventDispatcher
 EventDispatcher getEventDispatcher(ServerSessionContext ctx)
          Returns the event dispatcher for the MDM server defined in the specified session context If such instance exist in the cache then it is returned, if not then a new instance is created and stored in the cache.
 EventDispatcher getEventDispatcher(String serverName)
          Deprecated. replaced by getEventDispatcher(ServerSessionContext)
static EventDispatcherManager getInstance()
          Returns the single instance of EventDispatcherManager class
static void refreshInstance()
          Deprecated.  
 void terminateEventDispatcher(ServerSessionContext ctx)
          Terminates an event dispatcher.
 void terminateEventDispatcher(String serverName)
          Deprecated. replaced by getEventDispatcher(ServerSessionContext)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EventDispatcherManager getInstance()
Returns the single instance of EventDispatcherManager class

Returns:
an instance of the EventDispatcherManager

refreshInstance

public static void refreshInstance()
Deprecated.  

Refresh instance of EventDispatcherManager


getEventDispatcher

public EventDispatcher getEventDispatcher(String serverName)
                                   throws ConnectionException
Deprecated. replaced by getEventDispatcher(ServerSessionContext)

Returns the instance of EventDispatcher correspondent to the specified server. If such instance exist in the cache then it is returned, if not then a new instance is created and stored in the cache.

Parameters:
serverName - the server name
Returns:
the instance of EventDispatcher
Throws:
ConnectionException - if connection problem happens

getEventDispatcher

public EventDispatcher getEventDispatcher(ServerSessionContext ctx)
                                   throws ConnectionException
Returns the event dispatcher for the MDM server defined in the specified session context If such instance exist in the cache then it is returned, if not then a new instance is created and stored in the cache.

Parameters:
ctx - instance of ServerSessionContext that includes information about the server name and socket factory
Returns:
the instance of EventDispatcher
Throws:
ConnectionException - if connection problem happens
Since:
7.1.07

terminateEventDispatcher

public void terminateEventDispatcher(String serverName)
Deprecated. replaced by getEventDispatcher(ServerSessionContext)

Terminates an event dispatcher.

Parameters:
serverName - the server name. If the host contains several installed MDS instances with different ports then fully qualified name should be specified. If only host name is specified then non-SSL default port will be used completion the name.

terminateEventDispatcher

public void terminateEventDispatcher(ServerSessionContext ctx)
Terminates an event dispatcher.

Parameters:
ctx - instance of ServerSessionContext that includes information about the server name and socket factory
Since:
7.1.07

getAllEventDispatchers

public EventDispatcher[] getAllEventDispatchers()
Returns all cached instances of EventDispatcher

Returns:
array of EventDispatcher

containsEventDispatcher

public boolean containsEventDispatcher(String serverName)
Deprecated. replaced by containsEventDispatcher(ServerSessionContext)

Verifies if there is instance of EventDispatcher correspondent to the specified server

Parameters:
serverName - the server name. If the host contains several installed MDS instances with different ports then fully qualified name should be specified. If only host name is specified then non-SSL default port will be used completion the name.
Returns:
true if the specified EventDispatcher exist in the cache, otherwise false

containsEventDispatcher

public boolean containsEventDispatcher(ServerSessionContext ctx)
Verifies if there is instance of EventDispatcher correspondent to the specified server

Parameters:
ctx - instance of ServerSessionContext that includes information about the server name and socket factory
Returns:
true if the specified EventDispatcher exist in the cache, otherwise false
Since:
7.1.07


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.