Class TNodeResource

    • Field Detail

      • cpuCoreNum

        public int cpuCoreNum
      • maxMemory

        public long maxMemory
    • Constructor Detail

      • TNodeResource

        public TNodeResource()
      • TNodeResource

        public TNodeResource​(int cpuCoreNum,
                             long maxMemory)
      • TNodeResource

        public TNodeResource​(TNodeResource other)
        Performs a deep copy on other.
    • Method Detail

      • getCpuCoreNum

        public int getCpuCoreNum()
      • setCpuCoreNum

        public TNodeResource setCpuCoreNum​(int cpuCoreNum)
      • unsetCpuCoreNum

        public void unsetCpuCoreNum()
      • isSetCpuCoreNum

        public boolean isSetCpuCoreNum()
        Returns true if field cpuCoreNum is set (has been assigned a value) and false otherwise
      • setCpuCoreNumIsSet

        public void setCpuCoreNumIsSet​(boolean value)
      • getMaxMemory

        public long getMaxMemory()
      • setMaxMemory

        public TNodeResource setMaxMemory​(long maxMemory)
      • unsetMaxMemory

        public void unsetMaxMemory()
      • isSetMaxMemory

        public boolean isSetMaxMemory()
        Returns true if field maxMemory is set (has been assigned a value) and false otherwise
      • setMaxMemoryIsSet

        public void setMaxMemoryIsSet​(boolean value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • read

        public void read​(org.apache.thrift.protocol.TProtocol iprot)
                  throws org.apache.thrift.TException
        Specified by:
        read in interface org.apache.thrift.TSerializable
        Throws:
        org.apache.thrift.TException
      • write

        public void write​(org.apache.thrift.protocol.TProtocol oprot)
                   throws org.apache.thrift.TException
        Specified by:
        write in interface org.apache.thrift.TSerializable
        Throws:
        org.apache.thrift.TException
      • validate

        public void validate()
                      throws org.apache.thrift.TException
        Throws:
        org.apache.thrift.TException