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, toStringgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringpublic NServerEventDispatcher(ServerContext serverCtx)
public void start()
throws java.lang.Exception
java.lang.Exceptionpublic void close()
public void addUserAuthenticationListener(UserAuthenticationEvent.Listener l)
addUserAuthenticationListener in interface UserAuthenticationEvent.Sourcepublic void removeUserAuthenticationListener(UserAuthenticationEvent.Listener l)
removeUserAuthenticationListener in interface UserAuthenticationEvent.Sourcepublic void fireUserAuthentication(UserAuthenticationEvent event)
public void addClientConnectionListener(ClientConnectionEvent.Listener l)
addClientConnectionListener in interface ClientConnectionEvent.Sourcepublic void removeClientConnectionListener(ClientConnectionEvent.Listener l)
removeClientConnectionListener in interface ClientConnectionEvent.Sourcepublic void fireClientConnectionChanged(ClientConnectionEvent event)
public void addCoServerConnectionListener(CoServerConnectionEvent.Listener l)
addCoServerConnectionListener in interface CoServerConnectionEvent.Sourcepublic void removeCoServerConnectionListener(CoServerConnectionEvent.Listener l)
removeCoServerConnectionListener in interface CoServerConnectionEvent.Sourcepublic void fireCoServerConnection(CoServerConnectionEvent event)
public void addNetMessageListener(NetMessageEvent.Listener l)
addNetMessageListener in interface NetMessageEvent.Sourcepublic void removeNetMessageListener(NetMessageEvent.Listener l)
removeNetMessageListener in interface NetMessageEvent.Sourcepublic void fireNetMessageSent(NetMessage msg)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.