Package ClusterShell :: Package CLI :: Module Config :: Class ClushConfig
[hide private]
[frames] | no frames]

Class ClushConfig

source code


Config class for clush (specialized ConfigParser)

Instance Methods [hide private]
 
__init__(self, options, filename=None)
Initialize ClushConfig object from corresponding OptionParser options.
source code
 
_set_main(self, option, value)
Set given option/value pair in the Main section.
source code
 
_getx(self, xtype, section, option)
Return a value of specified type for the named option.
source code
 
getboolean(self, section, option)
Return a boolean value for the named option.
source code
 
getfloat(self, section, option)
Return a float value for the named option.
source code
 
getint(self, section, option)
Return an integer value for the named option.
source code
 
_get_optional(self, section, option)
Utility method to get a value for the named option, but do not raise an exception if the option doesn't exist.
source code

Inherited from ConfigParser.ConfigParser: get, items

Inherited from ConfigParser.ConfigParser (private): _interpolate, _interpolation_replace

Inherited from ConfigParser.RawConfigParser: add_section, defaults, has_option, has_section, options, optionxform, read, readfp, remove_option, remove_section, sections, set, write

Inherited from ConfigParser.RawConfigParser (private): _get, _read

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  main_defaults = {'color': 'auto', 'command_timeout': '0.000000...

Inherited from ConfigParser.ConfigParser (private): _KEYCRE

Inherited from ConfigParser.RawConfigParser: OPTCRE, OPTCRE_NV, SECTCRE

Inherited from ConfigParser.RawConfigParser (private): _boolean_states

Properties [hide private]
  verbosity
verbosity value as an integer
  fanout
fanout value as an integer
  connect_timeout
connect_timeout value as a float
  command_timeout
command_timeout value as a float
  ssh_user
ssh_user value as a string (optional)
  ssh_path
ssh_path value as a string (optional)
  ssh_options
ssh_options value as a string (optional)
  scp_path
scp_path value as a string (optional)
  scp_options
scp_options value as a string (optional)
  rsh_path
rsh_path value as a string (optional)
  rcp_path
rcp_path value as a string (optional)
  rsh_options
rsh_options value as a string (optional)
  color
color value as a string in (never, always, auto)
  node_count
node_count value as a boolean
  fd_max
max number of open files (soft rlimit)

Inherited from object: __class__

Method Details [hide private]

__init__(self, options, filename=None)
(Constructor)

source code 

Initialize ClushConfig object from corresponding OptionParser options.

Overrides: object.__init__

getboolean(self, section, option)

source code 

Return a boolean value for the named option.

Overrides: ConfigParser.RawConfigParser.getboolean

getfloat(self, section, option)

source code 

Return a float value for the named option.

Overrides: ConfigParser.RawConfigParser.getfloat

getint(self, section, option)

source code 

Return an integer value for the named option.

Overrides: ConfigParser.RawConfigParser.getint

Class Variable Details [hide private]

main_defaults

Value:
{'color': 'auto',
 'command_timeout': '0.000000',
 'connect_timeout': '10.000000',
 'fanout': '64',
 'fd_max': '8192',
 'history_size': '100',
 'node_count': 'yes',
 'verbosity': '1'}

Property Details [hide private]

verbosity

verbosity value as an integer

Get Method:
unreachable.verbosity(self) - verbosity value as an integer

fanout

fanout value as an integer

Get Method:
unreachable.fanout(self) - fanout value as an integer

connect_timeout

connect_timeout value as a float

Get Method:
unreachable.connect_timeout(self) - connect_timeout value as a float

command_timeout

command_timeout value as a float

Get Method:
unreachable.command_timeout(self) - command_timeout value as a float

ssh_user

ssh_user value as a string (optional)

Get Method:
unreachable.ssh_user(self) - ssh_user value as a string (optional)

ssh_path

ssh_path value as a string (optional)

Get Method:
unreachable.ssh_path(self) - ssh_path value as a string (optional)

ssh_options

ssh_options value as a string (optional)

Get Method:
unreachable.ssh_options(self) - ssh_options value as a string (optional)

scp_path

scp_path value as a string (optional)

Get Method:
unreachable.scp_path(self) - scp_path value as a string (optional)

scp_options

scp_options value as a string (optional)

Get Method:
unreachable.scp_options(self) - scp_options value as a string (optional)

rsh_path

rsh_path value as a string (optional)

Get Method:
unreachable.rsh_path(self) - rsh_path value as a string (optional)

rcp_path

rcp_path value as a string (optional)

Get Method:
unreachable.rcp_path(self) - rcp_path value as a string (optional)

rsh_options

rsh_options value as a string (optional)

Get Method:
unreachable.rsh_options(self) - rsh_options value as a string (optional)

color

color value as a string in (never, always, auto)

Get Method:
unreachable.color(self) - color value as a string in (never, always, auto)

node_count

node_count value as a boolean

Get Method:
unreachable.node_count(self) - node_count value as a boolean

fd_max

max number of open files (soft rlimit)

Get Method:
unreachable.fd_max(self) - max number of open files (soft rlimit)