public class NServerEventDispatcher extends AbstractServerObject<ServerContext> implements NetMessageEvent.Source, UserAuthenticationEvent.Source, ClientConnectionEvent.Source, CoServerConnectionEvent.Source
Constructor and Description |
---|
NServerEventDispatcher(ServerContext serverCtx) |
Modifier and Type | Method and Description |
---|---|
void |
addClientConnectionListener(ClientConnectionEvent.Listener l) |
void |
addCoServerConnectionListener(CoServerConnectionEvent.Listener l) |
void |
addNetMessageListener(NetMessageEvent.Listener l) |
void |
addUserAuthenticationListener(UserAuthenticationEvent.Listener l) |
void |
close() |
void |
fireClientConnectionChanged(ClientConnectionEvent event) |
void |
fireCoServerConnection(CoServerConnectionEvent event) |
void |
fireNetMessageSent(NetMessage msg) |
void |
fireUserAuthentication(UserAuthenticationEvent event) |
void |
removeClientConnectionListener(ClientConnectionEvent.Listener l) |
void |
removeCoServerConnectionListener(CoServerConnectionEvent.Listener l) |
void |
removeNetMessageListener(NetMessageEvent.Listener l) |
void |
removeUserAuthenticationListener(UserAuthenticationEvent.Listener l) |
void |
start() |
checkPermission, getServerConfig, getServerContext, getStatisticManager, toString
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
public NServerEventDispatcher(ServerContext serverCtx)
public void start() throws java.lang.Exception
java.lang.Exception
public void close()
public void addUserAuthenticationListener(UserAuthenticationEvent.Listener l)
addUserAuthenticationListener
in interface UserAuthenticationEvent.Source
public void removeUserAuthenticationListener(UserAuthenticationEvent.Listener l)
removeUserAuthenticationListener
in interface UserAuthenticationEvent.Source
public void fireUserAuthentication(UserAuthenticationEvent event)
public void addClientConnectionListener(ClientConnectionEvent.Listener l)
addClientConnectionListener
in interface ClientConnectionEvent.Source
public void removeClientConnectionListener(ClientConnectionEvent.Listener l)
removeClientConnectionListener
in interface ClientConnectionEvent.Source
public void fireClientConnectionChanged(ClientConnectionEvent event)
public void addCoServerConnectionListener(CoServerConnectionEvent.Listener l)
addCoServerConnectionListener
in interface CoServerConnectionEvent.Source
public void removeCoServerConnectionListener(CoServerConnectionEvent.Listener l)
removeCoServerConnectionListener
in interface CoServerConnectionEvent.Source
public void fireCoServerConnection(CoServerConnectionEvent event)
public void addNetMessageListener(NetMessageEvent.Listener l)
addNetMessageListener
in interface NetMessageEvent.Source
public void removeNetMessageListener(NetMessageEvent.Listener l)
removeNetMessageListener
in interface NetMessageEvent.Source
public void fireNetMessageSent(NetMessage msg)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.