Class ClientSessionGroupMapping
- java.lang.Object
-
- org.apache.eventmesh.runtime.core.protocol.tcp.client.group.ClientSessionGroupMapping
-
public class ClientSessionGroupMapping extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ClientSessionGroupMapping(EventMeshTCPServer eventMeshTCPServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseSession(io.netty.channel.ChannelHandlerContext ctx)SessioncreateSession(org.apache.eventmesh.common.protocol.tcp.UserAgent user, io.netty.channel.ChannelHandlerContext ctx)java.util.concurrent.ConcurrentHashMap<java.lang.String,ClientGroupWrapper>getClientGroupMap()ClientGroupWrappergetClientGroupWrapper(java.lang.String sysId)EventMeshTCPServergetEventMeshTCPServer()SessiongetSession(io.netty.channel.ChannelHandlerContext ctx)SessiongetSession(java.net.InetSocketAddress address)java.util.concurrent.ConcurrentHashMap<java.net.InetSocketAddress,Session>getSessionMap()voidinit()java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>>prepareEventMeshClientDistributionData()java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>>prepareProxyClientDistributionData()voidreadySession(Session session)voidsetEventMeshTCPServer(EventMeshTCPServer eventMeshTCPServer)voidshutdown()voidstart()
-
-
-
Constructor Detail
-
ClientSessionGroupMapping
public ClientSessionGroupMapping(EventMeshTCPServer eventMeshTCPServer)
-
-
Method Detail
-
getEventMeshTCPServer
public EventMeshTCPServer getEventMeshTCPServer()
-
setEventMeshTCPServer
public void setEventMeshTCPServer(EventMeshTCPServer eventMeshTCPServer)
-
getClientGroupWrapper
public ClientGroupWrapper getClientGroupWrapper(java.lang.String sysId)
-
getSession
public Session getSession(io.netty.channel.ChannelHandlerContext ctx)
-
getSession
public Session getSession(java.net.InetSocketAddress address)
-
createSession
public Session createSession(org.apache.eventmesh.common.protocol.tcp.UserAgent user, io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
- Throws:
java.lang.Exception
-
readySession
public void readySession(Session session) throws java.lang.Exception
- Throws:
java.lang.Exception
-
closeSession
public void closeSession(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Throws:
java.lang.Exception
-
init
public void init() throws java.lang.Exception- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception- Throws:
java.lang.Exception
-
shutdown
public void shutdown() throws java.lang.Exception- Throws:
java.lang.Exception
-
getSessionMap
public java.util.concurrent.ConcurrentHashMap<java.net.InetSocketAddress,Session> getSessionMap()
-
getClientGroupMap
public java.util.concurrent.ConcurrentHashMap<java.lang.String,ClientGroupWrapper> getClientGroupMap()
-
prepareEventMeshClientDistributionData
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> prepareEventMeshClientDistributionData()
-
prepareProxyClientDistributionData
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> prepareProxyClientDistributionData()
-
-