OmniSciDB  340b00dbf6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.THardwareInfo Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.THardwareInfo:
+ Collaboration diagram for omnisci.thrift.ttypes.THardwareInfo:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 num_gpu_hw
 
 num_cpu_hw
 
 num_gpu_allocated
 
 start_gpu
 
 host_name
 
 gpu_info
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - num_gpu_hw
 - num_cpu_hw
 - num_gpu_allocated
 - start_gpu
 - host_name
 - gpu_info

Definition at line 2917 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.THardwareInfo.__init__ (   self,
  num_gpu_hw = None,
  num_cpu_hw = None,
  num_gpu_allocated = None,
  start_gpu = None,
  host_name = None,
  gpu_info = None 
)

Definition at line 2930 of file ttypes.py.

2931  def __init__(self, num_gpu_hw=None, num_cpu_hw=None, num_gpu_allocated=None, start_gpu=None, host_name=None, gpu_info=None,):
2932  self.num_gpu_hw = num_gpu_hw
2933  self.num_cpu_hw = num_cpu_hw
2934  self.num_gpu_allocated = num_gpu_allocated
2935  self.start_gpu = start_gpu
2936  self.host_name = host_name
2937  self.gpu_info = gpu_info

Member Function Documentation

def omnisci.thrift.ttypes.THardwareInfo.__eq__ (   self,
  other 
)

Definition at line 3031 of file ttypes.py.

3032  def __eq__(self, other):
3033  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.THardwareInfo.__ne__ (   self,
  other 
)

Definition at line 3034 of file ttypes.py.

3035  def __ne__(self, other):
3036  return not (self == other)
3037 
def omnisci.thrift.ttypes.THardwareInfo.__repr__ (   self)

Definition at line 3026 of file ttypes.py.

3027  def __repr__(self):
3028  L = ['%s=%r' % (key, value)
3029  for key, value in self.__dict__.items()]
3030  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def omnisci.thrift.ttypes.THardwareInfo.read (   self,
  iprot 
)

Definition at line 2938 of file ttypes.py.

References omnisci.thrift.ttypes.THardwareInfo.gpu_info, com.omnisci.jdbc.Connection_enums.host_name, omnisci.thrift.ttypes.TServerStatus.host_name, omnisci.thrift.ttypes.THardwareInfo.host_name, omnisci.thrift.ttypes.THardwareInfo.num_cpu_hw, omnisci.thrift.ttypes.THardwareInfo.num_gpu_allocated, omnisci.thrift.ttypes.THardwareInfo.num_gpu_hw, and omnisci.thrift.ttypes.THardwareInfo.start_gpu.

2939  def read(self, iprot):
2940  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2941  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2942  return
2943  iprot.readStructBegin()
2944  while True:
2945  (fname, ftype, fid) = iprot.readFieldBegin()
2946  if ftype == TType.STOP:
2947  break
2948  if fid == 1:
2949  if ftype == TType.I16:
2950  self.num_gpu_hw = iprot.readI16()
2951  else:
2952  iprot.skip(ftype)
2953  elif fid == 2:
2954  if ftype == TType.I16:
2955  self.num_cpu_hw = iprot.readI16()
2956  else:
2957  iprot.skip(ftype)
2958  elif fid == 3:
2959  if ftype == TType.I16:
2960  self.num_gpu_allocated = iprot.readI16()
2961  else:
2962  iprot.skip(ftype)
2963  elif fid == 4:
2964  if ftype == TType.I16:
2965  self.start_gpu = iprot.readI16()
2966  else:
2967  iprot.skip(ftype)
2968  elif fid == 5:
2969  if ftype == TType.STRING:
2970  self.host_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
2971  else:
2972  iprot.skip(ftype)
2973  elif fid == 6:
2974  if ftype == TType.LIST:
2975  self.gpu_info = []
2976  (_etype101, _size98) = iprot.readListBegin()
2977  for _i102 in range(_size98):
2978  _elem103 = TGpuSpecification()
2979  _elem103.read(iprot)
2980  self.gpu_info.append(_elem103)
2981  iprot.readListEnd()
2982  else:
2983  iprot.skip(ftype)
2984  else:
2985  iprot.skip(ftype)
2986  iprot.readFieldEnd()
2987  iprot.readStructEnd()
def omnisci.thrift.ttypes.THardwareInfo.validate (   self)

Definition at line 3023 of file ttypes.py.

3024  def validate(self):
3025  return
def omnisci.thrift.ttypes.THardwareInfo.write (   self,
  oprot 
)

Definition at line 2988 of file ttypes.py.

References omnisci.thrift.ttypes.THardwareInfo.gpu_info, com.omnisci.jdbc.Connection_enums.host_name, omnisci.thrift.ttypes.TServerStatus.host_name, omnisci.thrift.ttypes.THardwareInfo.host_name, omnisci.thrift.ttypes.THardwareInfo.num_cpu_hw, omnisci.thrift.ttypes.THardwareInfo.num_gpu_allocated, omnisci.thrift.ttypes.THardwareInfo.num_gpu_hw, and omnisci.thrift.ttypes.THardwareInfo.start_gpu.

2989  def write(self, oprot):
2990  if oprot._fast_encode is not None and self.thrift_spec is not None:
2991  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2992  return
2993  oprot.writeStructBegin('THardwareInfo')
2994  if self.num_gpu_hw is not None:
2995  oprot.writeFieldBegin('num_gpu_hw', TType.I16, 1)
2996  oprot.writeI16(self.num_gpu_hw)
2997  oprot.writeFieldEnd()
2998  if self.num_cpu_hw is not None:
2999  oprot.writeFieldBegin('num_cpu_hw', TType.I16, 2)
3000  oprot.writeI16(self.num_cpu_hw)
3001  oprot.writeFieldEnd()
3002  if self.num_gpu_allocated is not None:
3003  oprot.writeFieldBegin('num_gpu_allocated', TType.I16, 3)
3004  oprot.writeI16(self.num_gpu_allocated)
3005  oprot.writeFieldEnd()
3006  if self.start_gpu is not None:
3007  oprot.writeFieldBegin('start_gpu', TType.I16, 4)
3008  oprot.writeI16(self.start_gpu)
3009  oprot.writeFieldEnd()
3010  if self.host_name is not None:
3011  oprot.writeFieldBegin('host_name', TType.STRING, 5)
3012  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
3013  oprot.writeFieldEnd()
3014  if self.gpu_info is not None:
3015  oprot.writeFieldBegin('gpu_info', TType.LIST, 6)
3016  oprot.writeListBegin(TType.STRUCT, len(self.gpu_info))
3017  for iter104 in self.gpu_info:
3018  iter104.write(oprot)
3019  oprot.writeListEnd()
3020  oprot.writeFieldEnd()
3021  oprot.writeFieldStop()
3022  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.THardwareInfo.__dict__
private

Definition at line 3032 of file ttypes.py.

omnisci.thrift.ttypes.THardwareInfo.gpu_info

Definition at line 2936 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.THardwareInfo.read(), and omnisci.thrift.ttypes.THardwareInfo.write().

omnisci.thrift.ttypes.THardwareInfo.host_name

Definition at line 2935 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.THardwareInfo.read(), omnisci.thrift.ttypes.TNodeMemoryInfo.read(), omnisci.thrift.ttypes.THardwareInfo.write(), and omnisci.thrift.ttypes.TNodeMemoryInfo.write().

omnisci.thrift.ttypes.THardwareInfo.num_cpu_hw

Definition at line 2932 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.THardwareInfo.read(), and omnisci.thrift.ttypes.THardwareInfo.write().

omnisci.thrift.ttypes.THardwareInfo.num_gpu_allocated

Definition at line 2933 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.THardwareInfo.read(), and omnisci.thrift.ttypes.THardwareInfo.write().

omnisci.thrift.ttypes.THardwareInfo.num_gpu_hw

Definition at line 2931 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.THardwareInfo.read(), and omnisci.thrift.ttypes.THardwareInfo.write().

omnisci.thrift.ttypes.THardwareInfo.start_gpu

Definition at line 2934 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.THardwareInfo.read(), and omnisci.thrift.ttypes.THardwareInfo.write().


The documentation for this class was generated from the following file: