ing
This commit is contained in:
parent
177a01ba5a
commit
9566810bf5
|
@ -4,8 +4,6 @@ import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
|
||||||
|
|
||||||
import com.loafle.commons.server.Server;
|
import com.loafle.commons.server.Server;
|
||||||
|
|
||||||
import io.netty.bootstrap.ServerBootstrap;
|
import io.netty.bootstrap.ServerBootstrap;
|
||||||
|
@ -15,7 +13,6 @@ import io.netty.channel.ChannelFuture;
|
||||||
* ContainerServer
|
* ContainerServer
|
||||||
*/
|
*/
|
||||||
public class ContainerServer extends Server {
|
public class ContainerServer extends Server {
|
||||||
@Resource
|
|
||||||
private String pidFilePath;
|
private String pidFilePath;
|
||||||
|
|
||||||
private int portNumber;
|
private int portNumber;
|
||||||
|
@ -23,6 +20,10 @@ public class ContainerServer extends Server {
|
||||||
public ContainerServer() {
|
public ContainerServer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setPidFilePath(String pidFilePath) {
|
||||||
|
this.pidFilePath = pidFilePath;
|
||||||
|
}
|
||||||
|
|
||||||
protected ChannelFuture bind(ServerBootstrap serverBootstrap) throws Exception {
|
protected ChannelFuture bind(ServerBootstrap serverBootstrap) throws Exception {
|
||||||
ChannelFuture cf = null;
|
ChannelFuture cf = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user