Package prlsdkapi :: Class SrvConfig
[hide private]
[frames] | no frames]

Class SrvConfig

  object --+        
           |        
 prlsdk.Base --+    
               |    
prlsdk.BaseAsync --+
                   |
                  SrvConfig

Contains the host computer configuration information.

Instance Methods [hide private]
 
get_devices_count(self, device_type)
Determine the total number of devices of the specified type installed in the host machine.
 
get_device(self, device_type, index)
Return an object containing information about a device specified by device type.

Inherited from prlsdk.BaseAsync: __cmp__, __init__, __new__, __repr__, cancel, wait

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]
  __prefix__ = 'srvcfg'
  __ht__ = 268435458
Properties [hide private]
  ram_size
The amount of memory (RAM) available on the host, in megabytes.
  cpu_model
The model of CPU on the host.
  cpu_count
The number of CPUs on the host.
  cpu_speed
The host CPU speed, in megahertz.
  cpu_mode
The CPU mode (32 bit or 64 bit).
  os_version
The host OS version information.
  sound_default_enabled
Determines whether a sound device on the host is enabled or disabled.
  usb_supported
Determines if USB is supported on the host.
  floppy_devs
An iterator/sequence that allows to traverse through FDD device instances.
  hdd_devs
An iterator/sequence that allows to traverse through HDD device instances.
  optical_devs
An iterator/sequence that allows to traverse through optical disk device instances.
  parallel_ports
An iterator/sequence that allows to traverse through parallel port device instances.
  serial_ports
An iterator/sequence that allows to traverse through serial port device instances.
  sound_devs
An iterator/sequence that allows to traverse through sound device instances.
  usb_devs
An iterator/sequence that allows to traverse through USB device instances.
  net_adapters
An iterator/sequence that allows to traverse through net adapter device instances.

Inherited from prlsdk.BaseAsync: __expected_h_type__, __job__, finished, handle_type

Inherited from prlsdk.Base: __handle__

Inherited from object: __class__

Method Details [hide private]

get_devices_count(self, device_type)

 

Determine the total number of devices of the specified type installed in the host machine.

Parameters:
  • device_type - Device type. See consts.PDE_xxx for the available types.

get_device(self, device_type, index)

 

Return an object containing information about a device specified by device type.

Parameters:
  • device_type - The type of the device to return the information for. See consts.PDE_xxx for the available types.
  • index - The index identifying the device instance (beginning with 0). To determine the number of the devices of the specified type available in the host machine, use SrvConfig.get_devices_count.
Returns:
An instance of a class corresponding to the specified device type. You can search this documentation for available device classes based on SrvCfgDev, etc.

Property Details [hide private]

ram_size

The amount of memory (RAM) available on the host, in megabytes.

Get Method:
unreachable.srvcfg__get_ram_size(SDK, SrvConfig) - Returns host system RAM size in megabytes.

cpu_model

The model of CPU on the host.

Get Method:
unreachable.srvcfg__get_cpu_model(SDK, SrvConfig) - Returns server host CPU model.

cpu_count

The number of CPUs on the host.

Get Method:
unreachable.srvcfg__get_cpu_count(SDK, SrvConfig) - Returns host CPU count.

cpu_speed

The host CPU speed, in megahertz.

Get Method:
unreachable.srvcfg__get_cpu_speed(SDK, SrvConfig) - Returns host CPU speed.

cpu_mode

The CPU mode (32 bit or 64 bit).

Get Method:
unreachable.srvcfg__get_cpu_mode(SDK, SrvConfig) - Returns host CPU mode: 32 or 64.

os_version

The host OS version information. This is a dictionary with the following elements:

'type' : string - OS type.

'major' : int - Major version number.

'minor': int - Minor version number.

'sub_minor': int - Sub-minor version number.

'full': string - The full OS information as a single string.

Get Method:
unreachable.srvcfg__get_os_version(SDK, SrvConfig) - Returns dict that descrive os version.

sound_default_enabled

Determines whether a sound device on the host is enabled or disabled.

Get Method:
unreachable.srvcfg__get_sound_default_enabled(srv_cfg, SrvCfg) - Returns sign whether default sound device enabled at server host system.

usb_supported

Determines if USB is supported on the host.

Get Method:
unreachable.srvcfg__get_usb_supported(srv_cfg, SrvCfg) - Returns sign whether USB subsystem supported at server host system.

floppy_devs

An iterator/sequence that allows to traverse through FDD device instances. See SrvCfgDev.

Get Method:
unreachable(s)

hdd_devs

An iterator/sequence that allows to traverse through HDD device instances. See SrvCfgHdd.

Get Method:
unreachable(s)

optical_devs

An iterator/sequence that allows to traverse through optical disk device instances. See SrvCfgDev.

Get Method:
unreachable(s)

parallel_ports

An iterator/sequence that allows to traverse through parallel port device instances. See SrvCfgDev.

Get Method:
unreachable(s)

serial_ports

An iterator/sequence that allows to traverse through serial port device instances. See SrvCfgDev.

Get Method:
unreachable(s)

sound_devs

An iterator/sequence that allows to traverse through sound device instances. See SrvCfgDev.

Get Method:
unreachable(s)

usb_devs

An iterator/sequence that allows to traverse through USB device instances. See SrvCfgDev.

Get Method:
unreachable(s)

net_adapters

An iterator/sequence that allows to traverse through net adapter device instances. See SrvCfgNet.

Get Method:
unreachable(s)