Codota Logo
ServerMessage$ServerInfo.getFreeMemory
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: jzyong/game-server

info.setWwwip(serverInfo.getWwwip());
info.onIoSessionConnect(session);
info.setFreeMemory(serverInfo.getFreeMemory());
info.setTotalMemory(serverInfo.getTotalMemory());
info.setVersion(serverInfo.getVersion());
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

setFreeMemory(other.getFreeMemory());
com.jzy.game.messageServerMessage$ServerInfogetFreeMemory

Javadoc

optional int32 freeMemory = 11;
 
空闲内存 

Popular methods of ServerMessage$ServerInfo

  • getId
    required int32 id = 1; 服务器ID
  • getIp
    optional string ip = 2; 内网地址
  • getMaxUserCount
    optional int32 maxUserCount = 7; 在线人数
  • getName
    optional string name = 9; 名字
  • 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表示内部开启
  • getTotalMemory
    optional int32 totalMemory = 12; 可用内存
  • getType
    optional int32 type = 3; 类型
  • getTotalMemory,
  • getType,
  • getVersion,
  • <init>,
  • getDefaultInstance,
  • getIpBytes,
  • getNameBytes,
  • getSerializedSize,
  • getUnknownFields

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now