OmniSciDB  94e8789169
 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 2797 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 2810 of file ttypes.py.

2811  def __init__(self, num_gpu_hw=None, num_cpu_hw=None, num_gpu_allocated=None, start_gpu=None, host_name=None, gpu_info=None,):
2812  self.num_gpu_hw = num_gpu_hw
2813  self.num_cpu_hw = num_cpu_hw
2814  self.num_gpu_allocated = num_gpu_allocated
2815  self.start_gpu = start_gpu
2816  self.host_name = host_name
2817  self.gpu_info = gpu_info

Member Function Documentation

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

Definition at line 2911 of file ttypes.py.

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

Definition at line 2914 of file ttypes.py.

2915  def __ne__(self, other):
2916  return not (self == other)
2917 
def omnisci.thrift.ttypes.THardwareInfo.__repr__ (   self)

Definition at line 2906 of file ttypes.py.

2907  def __repr__(self):
2908  L = ['%s=%r' % (key, value)
2909  for key, value in self.__dict__.items()]
2910  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 2818 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.

2819  def read(self, iprot):
2820  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2821  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2822  return
2823  iprot.readStructBegin()
2824  while True:
2825  (fname, ftype, fid) = iprot.readFieldBegin()
2826  if ftype == TType.STOP:
2827  break
2828  if fid == 1:
2829  if ftype == TType.I16:
2830  self.num_gpu_hw = iprot.readI16()
2831  else:
2832  iprot.skip(ftype)
2833  elif fid == 2:
2834  if ftype == TType.I16:
2835  self.num_cpu_hw = iprot.readI16()
2836  else:
2837  iprot.skip(ftype)
2838  elif fid == 3:
2839  if ftype == TType.I16:
2840  self.num_gpu_allocated = iprot.readI16()
2841  else:
2842  iprot.skip(ftype)
2843  elif fid == 4:
2844  if ftype == TType.I16:
2845  self.start_gpu = iprot.readI16()
2846  else:
2847  iprot.skip(ftype)
2848  elif fid == 5:
2849  if ftype == TType.STRING:
2850  self.host_name = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
2851  else:
2852  iprot.skip(ftype)
2853  elif fid == 6:
2854  if ftype == TType.LIST:
2855  self.gpu_info = []
2856  (_etype101, _size98) = iprot.readListBegin()
2857  for _i102 in range(_size98):
2858  _elem103 = TGpuSpecification()
2859  _elem103.read(iprot)
2860  self.gpu_info.append(_elem103)
2861  iprot.readListEnd()
2862  else:
2863  iprot.skip(ftype)
2864  else:
2865  iprot.skip(ftype)
2866  iprot.readFieldEnd()
2867  iprot.readStructEnd()
def omnisci.thrift.ttypes.THardwareInfo.validate (   self)

Definition at line 2903 of file ttypes.py.

2904  def validate(self):
2905  return
def omnisci.thrift.ttypes.THardwareInfo.write (   self,
  oprot 
)

Definition at line 2868 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.

2869  def write(self, oprot):
2870  if oprot._fast_encode is not None and self.thrift_spec is not None:
2871  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2872  return
2873  oprot.writeStructBegin('THardwareInfo')
2874  if self.num_gpu_hw is not None:
2875  oprot.writeFieldBegin('num_gpu_hw', TType.I16, 1)
2876  oprot.writeI16(self.num_gpu_hw)
2877  oprot.writeFieldEnd()
2878  if self.num_cpu_hw is not None:
2879  oprot.writeFieldBegin('num_cpu_hw', TType.I16, 2)
2880  oprot.writeI16(self.num_cpu_hw)
2881  oprot.writeFieldEnd()
2882  if self.num_gpu_allocated is not None:
2883  oprot.writeFieldBegin('num_gpu_allocated', TType.I16, 3)
2884  oprot.writeI16(self.num_gpu_allocated)
2885  oprot.writeFieldEnd()
2886  if self.start_gpu is not None:
2887  oprot.writeFieldBegin('start_gpu', TType.I16, 4)
2888  oprot.writeI16(self.start_gpu)
2889  oprot.writeFieldEnd()
2890  if self.host_name is not None:
2891  oprot.writeFieldBegin('host_name', TType.STRING, 5)
2892  oprot.writeString(self.host_name.encode('utf-8') if sys.version_info[0] == 2 else self.host_name)
2893  oprot.writeFieldEnd()
2894  if self.gpu_info is not None:
2895  oprot.writeFieldBegin('gpu_info', TType.LIST, 6)
2896  oprot.writeListBegin(TType.STRUCT, len(self.gpu_info))
2897  for iter104 in self.gpu_info:
2898  iter104.write(oprot)
2899  oprot.writeListEnd()
2900  oprot.writeFieldEnd()
2901  oprot.writeFieldStop()
2902  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.THardwareInfo.__dict__
private

Definition at line 2912 of file ttypes.py.

omnisci.thrift.ttypes.THardwareInfo.gpu_info

Definition at line 2816 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 2815 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 2812 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 2813 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 2811 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 2814 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: