com.sap.mdm.net
Interface SimpleConnection

All Superinterfaces:
ConnectionAccessor

public interface SimpleConnection
extends ConnectionAccessor

This interface defines methods and properties for a simple connection. A connection is the medium used to communicate with the MDM server.

All connections are associated with a connection source. A connection source is simply an identifier for grouping logically related connections. Connection source is mainly use for server notifications.

See Also:
ConnectionPoolFactory, SimpleConnectionFactory

Method Summary
 void close()
          Closes the connection to the MDM server.
 String getConnectionSource()
          Returns the connection source identifier.
 String getHostname()
          Returns the host name where the MDM server is running.
 String getIdentity()
          Returns the name/identifier of the connection.
 int getPort()
          Returns the port number used to communicate with the MDM server.
 boolean isReady()
          Indicates whether the connection is ready for use.
 
Methods inherited from interface com.sap.mdm.net.ConnectionAccessor
releaseConnection, reserveConnection, reserveConnection
 

Method Detail

getHostname

public String getHostname()
Returns the host name where the MDM server is running.

Returns:
the host name

getPort

public int getPort()
Returns the port number used to communicate with the MDM server.

Returns:
the port number

getIdentity

public String getIdentity()
Returns the name/identifier of the connection.

Returns:
the connection identifier

isReady

public boolean isReady()
Indicates whether the connection is ready for use.

Returns:
the connection status

getConnectionSource

public String getConnectionSource()
Returns the connection source identifier. The connection source identifier groups a set of connections as logically related.

Returns:
the connection source identifier

close

public void close()
Closes the connection to the MDM server. Subsequence uses of this connection will throw an exception.



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.