|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ifeth.sehr.client.api.driver.SEHRConnection
The connection layer object from a client to a SEHR host...
This object is a container which carries the connection info through the different instances like listeners etc.
ConnectionInfo
Constructor Summary | |
SEHRConnection(ConnectionInfo coninfo)
|
Method Summary | |
boolean |
close()
Request close, but let the thread do it to prevent lost data on currently open db conenctions => thread runs a 'commit' lost transfers on active FTP transfer => thread waits until files are transfered |
ConnectionInfo |
getConnectionInfo()
Get the information about the connection |
java.lang.Object |
getInitiator()
Returns the Initiator associated with this connection For future use |
java.lang.Object |
getResponder()
Returns the Responder associated with this connection For future use |
boolean |
isOpen()
Returns 'true' if the SEHR connection is active, 'false' if a previous shutdown was requested, e.g. by a thread or an actionhandler. |
void |
setConnectionInfo(ConnectionInfo info)
Set an information about the connection |
java.lang.String |
toString()
For testing/debugging |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SEHRConnection(ConnectionInfo coninfo)
Method Detail |
public ConnectionInfo getConnectionInfo()
public void setConnectionInfo(ConnectionInfo info)
public java.lang.Object getInitiator()
For future use
public java.lang.Object getResponder()
For future use
public boolean close()
public boolean isOpen()
Use Case: Use this before invoking a connection to check if it makes sense to start a new connection :)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |