public abstract class AbstractRemotingServer extends AbstractConfigurableInstance implements RemotingServer
| 构造器和说明 |
|---|
AbstractRemotingServer(int port) |
AbstractRemotingServer(String ip,
int port) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract void |
doInit() |
protected abstract boolean |
doStart() |
protected abstract boolean |
doStop() |
void |
init()
init the server
|
String |
ip()
Get the ip of the server.
|
int |
port()
Get the port of the server.
|
boolean |
start()
Start the server.
|
boolean |
stop()
Stop the server.
|
conf, initWriteBufferWaterMark, netty_buffer_high_watermark, netty_buffer_low_watermark, switchesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterDefaultExecutor, registerProcessor, registerUserProcessorpublic AbstractRemotingServer(int port)
public AbstractRemotingServer(String ip, int port)
public void init()
RemotingServerinit 在接口中 RemotingServerpublic boolean start()
RemotingServerstart 在接口中 RemotingServerpublic boolean stop()
RemotingServerstop 在接口中 RemotingServerpublic String ip()
RemotingServerip 在接口中 RemotingServerpublic int port()
RemotingServerport 在接口中 RemotingServerprotected abstract void doInit()
protected abstract boolean doStart()
throws InterruptedException
protected abstract boolean doStop()
Copyright © 2021. All rights reserved.