congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ServerMessage$ServerInfo.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
com.jzy.game.message.ServerMessage$ServerInfo

Best Java code snippets using com.jzy.game.message.ServerMessage$ServerInfo.getName (Showing top 7 results out of 315)

origin: jzyong/game-server

server.setOnline(info.getOnline());
server.setMaxUserCount(info.getMaxUserCount());
server.setName(info.getName());
server.setHttpPort(server.getHttpPort());
server.setState(info.getState());
origin: jzyong/game-server

info.setIp(serverInfo.getIp());
info.setMaxUserCount(serverInfo.getMaxUserCount());
info.setName(serverInfo.getName());
info.setOnline(serverInfo.getOnline());
info.setPort(serverInfo.getPort());
origin: jzyong/game-server

/**
 * 更新大厅服务器信息
 * 
 * @param info
 */
public void updateHallServerInfo(ServerMessage.ServerInfo info) {
  ServerInfo serverInfo = serverMap.get(info.getId());
  if (serverInfo == null) {
    serverInfo = getServerInfo(info);
    addTcpClient(serverInfo, NetPort.GATE_GAME_PORT, new MutilConHallHandler(serverInfo, this)); 
  } else {
    serverInfo.setIp(info.getIp());
    serverInfo.setId(info.getId());
    serverInfo.setPort(info.getPort());
    serverInfo.setState(info.getState());
    serverInfo.setOnline(info.getOnline());
    serverInfo.setMaxUserCount(info.getMaxUserCount());
    serverInfo.setName(info.getName());
    serverInfo.setHttpPort(info.getHttpport());
    serverInfo.setWwwip(info.getWwwip());
  }
  serverMap.put(info.getId(), serverInfo);
}
origin: jzyong/game-server

/**
 * 更新可用网关服务器信息
 * 
 * @param info
 */
public void updateGateServerInfo(ServerMessage.ServerInfo info) {
  ServerInfo serverInfo = getBydr2GateClient().getServers().get(info.getId());
  if (serverInfo == null) {
    serverInfo = getServerInfo(info);
    if(getBydr2GateClient() instanceof Bydr2GateClient){
      Bydr2GateClient service=(Bydr2GateClient)getBydr2GateClient();
      service.addTcpClient(serverInfo, NetPort.GATE_GAME_PORT,service.new MutilConHallHandler(serverInfo, service)); // TODO 暂时,网关服有多个tcp端口
    }else{
      getBydr2GateClient().addTcpClient(serverInfo,  NetPort.GATE_GAME_PORT);
    }
  } else {
    serverInfo.setIp(info.getIp());
    serverInfo.setId(info.getId());
    serverInfo.setPort(info.getPort());
    serverInfo.setState(info.getState());
    serverInfo.setOnline(info.getOnline());
    serverInfo.setMaxUserCount(info.getMaxUserCount());
    serverInfo.setName(info.getName());
    serverInfo.setHttpPort(info.getHttpport());
    serverInfo.setWwwip(info.getWwwip());
  }
  getBydr2GateClient().getServers().put(info.getId(), serverInfo);
}
origin: jzyong/game-server

/**
 * 消息转换
 * @author JiangZhiYong
 * @QQ 359135103
 * 2017年8月29日 下午2:21:52
 * @param info
 * @return
 */
private ServerInfo getServerInfo(ServerMessage.ServerInfo info) {
  ServerInfo serverInfo = new ServerInfo();
  serverInfo.setIp(info.getIp());
  serverInfo.setId(info.getId());
  serverInfo.setPort(info.getPort());
  serverInfo.setState(info.getState());
  serverInfo.setOnline(info.getOnline());
  serverInfo.setMaxUserCount(info.getMaxUserCount());
  serverInfo.setName(info.getName());
  serverInfo.setHttpPort(info.getHttpport());
  serverInfo.setWwwip(info.getWwwip());
  serverInfo.setFreeMemory(info.getFreeMemory());
  serverInfo.setTotalMemory(info.getTotalMemory());
  serverInfo.setVersion(info.getVersion());
  return serverInfo;
}
origin: jzyong/game-server

/**
 * <code>optional string name = 9;</code>
 *
 * <pre>
 *名字 
 * </pre>
 */
public Builder clearName() {
 bitField0_ = (bitField0_ & ~0x00000100);
 name_ = getDefaultInstance().getName();
 onChanged();
 return this;
}
/**
origin: jzyong/game-server

private ServerInfo getServerInfo(ServerMessage.ServerInfo info) {
  ServerInfo serverInfo = new ServerInfo();
  serverInfo.setIp(info.getIp());
  serverInfo.setId(info.getId());
  serverInfo.setPort(info.getPort());
  serverInfo.setState(info.getState());
  serverInfo.setOnline(info.getOnline());
  serverInfo.setMaxUserCount(info.getMaxUserCount());
  serverInfo.setName(info.getName());
  serverInfo.setHttpPort(info.getHttpport());
  serverInfo.setWwwip(info.getWwwip());
  return serverInfo;
}
com.jzy.game.messageServerMessage$ServerInfogetName

Javadoc

optional string name = 9;
 
名字  

Popular methods of ServerMessage$ServerInfo

  • getId
    required int32 id = 1; 服务器ID
  • getIp
    optional string ip = 2; 内网地址
  • getMaxUserCount
    optional int32 maxUserCount = 7; 在线人数
  • getOnline
    optional int32 online = 6; 在线人数
  • getPort
    optional int32 port = 4; 端口
  • getWwwip
    optional string wwwip = 10; 外网地址
  • newBuilder
  • getHttpport
    optional int32 httpport = 8; http端口
  • getState
    optional int32 state = 5; 状态 -1表示维护;0表示准备开启;1表示正常,2表示不显示,3表示内部开启
  • getFreeMemory
    optional int32 freeMemory = 11; 空闲内存
  • getTotalMemory
    optional int32 totalMemory = 12; 可用内存
  • getType
    optional int32 type = 3; 类型
  • getTotalMemory,
  • getType,
  • getVersion,
  • <init>,
  • getDefaultInstance,
  • getIpBytes,
  • getNameBytes,
  • getSerializedSize,
  • getUnknownFields

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Notification (javax.management)
  • JComboBox (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now