|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.mdm.notification.EventDispatcherManager
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 |
public static EventDispatcherManager getInstance()
public static void refreshInstance()
public EventDispatcher getEventDispatcher(String serverName)
throws ConnectionException
getEventDispatcher(ServerSessionContext)
serverName - the server name
ConnectionException - if connection problem happens
public EventDispatcher getEventDispatcher(ServerSessionContext ctx)
throws ConnectionException
ctx - instance of ServerSessionContext that includes information about the server name and socket factory
ConnectionException - if connection problem happenspublic void terminateEventDispatcher(String serverName)
getEventDispatcher(ServerSessionContext)
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.public void terminateEventDispatcher(ServerSessionContext ctx)
ctx - instance of ServerSessionContext that includes information about the server name and socket factorypublic EventDispatcher[] getAllEventDispatchers()
public boolean containsEventDispatcher(String serverName)
containsEventDispatcher(ServerSessionContext)
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.
true if the specified EventDispatcher exist in the cache, otherwise falsepublic boolean containsEventDispatcher(ServerSessionContext ctx)
ctx - instance of ServerSessionContext that includes information about the server name and socket factory
true if the specified EventDispatcher exist in the cache, otherwise false
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.