|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.mom.dest.amqp.LiveServerConnection
public class LiveServerConnection
A LiveServerConnection
keeps alive a connection to an AMQP server.
When the connection fails, a reconnection routine starts.
Constructor Summary | |
---|---|
LiveServerConnection()
Starts a connection with a default AMQP server. |
|
LiveServerConnection(com.rabbitmq.client.ConnectionFactory factory)
Starts a connection with a server accessible via the factory provided. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
2 LiveServerConnection are equals if they have the same address and
port, their connection state doesn't matter. |
com.rabbitmq.client.Connection |
getConnection()
|
com.rabbitmq.client.ConnectionFactory |
getConnectionFactory()
|
java.lang.String |
getHost()
|
int |
getPort()
|
java.lang.String |
getState()
|
java.lang.String |
getUserName()
|
int |
hashCode()
|
boolean |
isConnectionOpen()
|
void |
stopLiveConnection()
Stops maintaining the connection alive with the server. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LiveServerConnection()
public LiveServerConnection(com.rabbitmq.client.ConnectionFactory factory)
factory
- the factory used to access the server.Method Detail |
---|
public boolean isConnectionOpen()
public com.rabbitmq.client.Connection getConnection()
public com.rabbitmq.client.ConnectionFactory getConnectionFactory()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
LiveServerConnection
are equals if they have the same address and
port, their connection state doesn't matter.
equals
in class java.lang.Object
public void stopLiveConnection()
public java.lang.String getHost()
getHost
in interface LiveServerConnectionMBean
public int getPort()
getPort
in interface LiveServerConnectionMBean
public java.lang.String getUserName()
getUserName
in interface LiveServerConnectionMBean
public java.lang.String getState()
getState
in interface LiveServerConnectionMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |