|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConnection
Connection interface to represent transport-level connections
| Method Summary | |
|---|---|
void |
addListener(IConnectionListener listener)
Add comm layer event listener |
java.lang.Object |
connect(ID targetID,
java.lang.Object data,
int timeout)
Connect to a remote process |
void |
disconnect()
Disconnect |
ID |
getLocalID()
Get local ID for this connection |
java.util.Map |
getProperties()
Get properties for this connection |
boolean |
isConnected()
|
boolean |
isStarted()
|
void |
removeListener(IConnectionListener listener)
remove comm layer event listener |
void |
start()
Start connection |
void |
stop()
Stop connection |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Method Detail |
|---|
java.lang.Object connect(ID targetID,
java.lang.Object data,
int timeout)
throws ECFException
targetID - the identity of the remote to connect to. Must not be null.data - any data to send with the connection request (e.g. password or
other authentication data)timeout - the timeout (in ms) for the connection to occur
ECFException - thrown if some problem with connectvoid disconnect()
boolean isConnected()
ID getLocalID()
void start()
void stop()
boolean isStarted()
java.util.Map getProperties()
void addListener(IConnectionListener listener)
listener - the listener to addvoid removeListener(IConnectionListener listener)
listener - the listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||