public class ZbusServer
extends org.zstacks.znet.RemotingServer
| Modifier and Type | Class and Description |
|---|---|
static class |
ZbusServer.ZbusServerConfig |
| Constructor and Description |
|---|
ZbusServer(int serverPort,
org.zstacks.znet.nio.Dispatcher dispatcher) |
ZbusServer(String serverHost,
int serverPort,
org.zstacks.znet.nio.Dispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
findHandlerKey(org.zstacks.znet.Message msg) |
String |
getServerAddress() |
static void |
main(String[] args) |
void |
onException(Throwable e,
org.zstacks.znet.nio.Session sess) |
void |
onSessionDestroyed(org.zstacks.znet.nio.Session sess) |
void |
setAdminToken(String adminToken) |
void |
setMessageStoreType(String messageStoreType) |
void |
setVerbose(boolean verbose) |
void |
start() |
void |
startTrackReport(String trackServerAddr) |
onMessage, registerGlobalHandler, registerHandlerpublic ZbusServer(int serverPort,
org.zstacks.znet.nio.Dispatcher dispatcher)
throws IOException
IOExceptionpublic ZbusServer(String serverHost, int serverPort, org.zstacks.znet.nio.Dispatcher dispatcher) throws IOException
IOExceptionpublic void setAdminToken(String adminToken)
public void start()
throws IOException
start in class org.zstacks.znet.RemotingServerIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.zstacks.znet.RemotingServerIOExceptionpublic void startTrackReport(String trackServerAddr)
public void setMessageStoreType(String messageStoreType)
public void onException(Throwable e, org.zstacks.znet.nio.Session sess) throws IOException
onException in class org.zstacks.znet.nio.IoAdaptorIOExceptionpublic void onSessionDestroyed(org.zstacks.znet.nio.Session sess)
throws IOException
onSessionDestroyed in class org.zstacks.znet.nio.IoAdaptorIOExceptionpublic String findHandlerKey(org.zstacks.znet.Message msg)
findHandlerKey in class org.zstacks.znet.RemotingServerpublic String getServerAddress()
public void setVerbose(boolean verbose)
Copyright © 2015. All rights reserved.