public class LocalRequestChannel extends Object implements RequestChannel, LocalRequestChannelMBean
| Modifier and Type | Field and Description |
|---|---|
private Date |
creationDate |
private org.objectweb.joram.mom.proxies.StandardConnectionContext |
ctx |
private org.objectweb.joram.shared.security.Identity |
identity |
static org.objectweb.util.monolog.api.Logger |
logger
logger
|
private FactoryParameters |
params |
private fr.dyade.aaa.agent.AgentId |
proxyId |
private long |
receivedCount |
private long |
sentCount |
| Constructor and Description |
|---|
LocalRequestChannel(FactoryParameters params,
org.objectweb.joram.shared.security.Identity identity)
Creates a local connection channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection and unregisters the MBean.
|
void |
closing() |
void |
connect() |
Date |
getCreationDate()
Gets connection creation date.
|
org.objectweb.joram.shared.security.Identity |
getIdentity() |
private String |
getMBeanName() |
long |
getReceivedCount()
Gets the number of replies received on the connection.
|
long |
getSentCount()
Gets the number of requests sent on the connection.
|
String |
getUserName()
Gets connected user's name.
|
org.objectweb.joram.shared.client.AbstractJmsReply |
receive() |
void |
send(org.objectweb.joram.shared.client.AbstractJmsRequest request) |
void |
setTimer(Timer timer) |
public static org.objectweb.util.monolog.api.Logger logger
private FactoryParameters params
private org.objectweb.joram.shared.security.Identity identity
private fr.dyade.aaa.agent.AgentId proxyId
private org.objectweb.joram.mom.proxies.StandardConnectionContext ctx
private Date creationDate
private long sentCount
private long receivedCount
public LocalRequestChannel(FactoryParameters params, org.objectweb.joram.shared.security.Identity identity)
params - Factory parameters.identity - jakarta.jms.JMSSecurityException - If the user identification is incorrect.jakarta.jms.IllegalStateException - If the server is not reachable.public void setTimer(Timer timer)
setTimer in interface RequestChannelpublic void connect()
throws Exception
connect in interface RequestChannelExceptionprivate String getMBeanName()
public void send(org.objectweb.joram.shared.client.AbstractJmsRequest request)
throws Exception
send in interface RequestChannelExceptionpublic org.objectweb.joram.shared.client.AbstractJmsReply receive()
throws Exception
receive in interface RequestChannelExceptionpublic void close()
LocalRequestChannelMBeanclose in interface RequestChannelclose in interface LocalRequestChannelMBeanpublic Date getCreationDate()
LocalRequestChannelMBeangetCreationDate in interface LocalRequestChannelMBeanpublic long getReceivedCount()
LocalRequestChannelMBeangetReceivedCount in interface LocalRequestChannelMBeanpublic long getSentCount()
LocalRequestChannelMBeangetSentCount in interface LocalRequestChannelMBeanpublic String getUserName()
LocalRequestChannelMBeangetUserName in interface LocalRequestChannelMBeanpublic void closing()
closing in interface RequestChannelpublic org.objectweb.joram.shared.security.Identity getIdentity()
getIdentity in interface RequestChannelCopyright © 2023 ScalAgent D.T.. All rights reserved.