|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.ip.me.api.pios.connection.Connection
This is the base class for all Connection implementations. All peripheral implementations must inherit from this class.
Connector
Field Summary | |
protected java.lang.String |
attributesFileName
The name of the driver attributes/property file. |
protected java.lang.String |
cfgFile
The name of the configuration file. |
protected boolean |
opened
Tells whether or not the connection is open. |
protected ConnectionParameters |
parameters
The connection parameters used to open the connection. |
Constructor Summary | |
protected |
Connection()
Creates a new Connection object. |
Method Summary | |
void |
close()
Closes this connection and releases any system resources associated with it. |
ConnectionParameters |
getParameters()
Retrieves the connection parameters used to open the connection. |
boolean |
isOpen()
Returns whether the connection is open or not. |
protected void |
open(ConnectionParameters parameters,
java.lang.String cfgFile)
Opens this connection creating any system resource needed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean opened
protected ConnectionParameters parameters
protected java.lang.String cfgFile
protected java.lang.String attributesFileName
DriverInfo.getName()
Constructor Detail |
protected Connection() throws PIOSException
PIOSException
- thrown if an error occurs while creating the
connection.Method Detail |
protected void open(ConnectionParameters parameters, java.lang.String cfgFile) throws PIOSException
parameters
- the ConnectionParameters object with the parameters values to open the connectioncfgFile
- the configuration file name
PIOSException
- thrown if an error occurs while opening the peripheral connection.
Also if the specified parameters are null or are not supported by the driver.public void close() throws PIOSException
PIOSException
- thrown if the method is unable to close the connection.public boolean isOpen()
true
if the connection is open;
false
otherwise.public final ConnectionParameters getParameters()
ConnectionParameters
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |