|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object livespace.elvin.client.ElvinClient
public class ElvinClient
Manages the shared client connection to an Elvin router for all OSGi services.
Field Summary | |
---|---|
protected livespace.elvin.client.ElvinClient.ElvinConnectThread |
connectionThread
|
protected org.osgi.framework.BundleContext |
context
|
protected boolean |
disableTcpDelay
|
protected Elvin |
elvin
|
protected org.osgi.framework.ServiceRegistration |
elvinRegistration
|
protected String |
elvinUrl
|
protected boolean |
running
|
protected Properties |
serviceConfig
|
Constructor Summary | |
---|---|
ElvinClient(Properties config,
org.osgi.framework.BundleContext context)
|
Method Summary | |
---|---|
protected void |
asyncConnect()
|
protected static int |
avisLogToDfc(int type)
|
protected void |
connect()
Connect to elvin. |
protected void |
disconnect()
Disconnect from elvin. |
Elvin |
getConnection()
The shared Elvin client connection. |
protected void |
initConnection()
|
protected void |
register()
Register this instance as the Elvin OSGi service. |
void |
start()
|
void |
stop()
|
protected void |
tryConnect()
Try to connect to elvin. |
protected void |
unregister()
Unregister this instance as the Elvin OSGi service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String elvinUrl
protected boolean disableTcpDelay
protected Elvin elvin
protected org.osgi.framework.BundleContext context
protected org.osgi.framework.ServiceRegistration elvinRegistration
protected livespace.elvin.client.ElvinClient.ElvinConnectThread connectionThread
protected Properties serviceConfig
protected boolean running
Constructor Detail |
---|
public ElvinClient(Properties config, org.osgi.framework.BundleContext context) throws ConfigurationException
ConfigurationException
Method Detail |
---|
protected static int avisLogToDfc(int type)
public void start()
public void stop()
protected void initConnection()
protected void tryConnect()
connect()
protected void asyncConnect()
protected void connect() throws IOException
IOException
- if the connection failed.tryConnect()
protected void disconnect()
public Elvin getConnection()
IElvinClient
getConnection
in interface IElvinClient
protected void register()
unregister()
protected void unregister()
register()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |