HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
drce.Commands.Session Class Reference

wrapper for Session fields array of execute task More...

Inheritance diagram for drce.Commands.Session:
Collaboration diagram for drce.Commands.Session:

Public Member Functions

def __init__ (self, tmode, ctype=TYPE_HOST_SHELL, maxExecutionTime=0)
 
def add_evn_pair (self, param_name, param_value)
 

Public Attributes

 type
 
 port
 
 user
 
 password
 
 shell
 
 environment
 
 timeout
 
 tmode
 
 time_max
 
 home_directory
 
 cleanup
 

Static Public Attributes

int TMODE_SYNC = 1
 
int TMODE_ASYNC = 2
 
int TYPE_HOST_SHELL = 0
 
int TYPE_SSH = 1
 

Detailed Description

wrapper for Session fields array of execute task

Definition at line 32 of file Commands.py.

Constructor & Destructor Documentation

◆ __init__()

def drce.Commands.Session.__init__ (   self,
  tmode,
  ctype = TYPE_HOST_SHELL,
  maxExecutionTime = 0 
)

Definition at line 42 of file Commands.py.

42  def __init__(self, tmode, ctype=TYPE_HOST_SHELL, maxExecutionTime=0):
43  super(Session, self).__init__()
44 
45  self.type = ctype
46  self.port = 0
47  self.user = ""
48  self.password = ""
49  self.shell = ""
50  self.environment = {}
51  self.timeout = 0
52  self.tmode = tmode
53  self.time_max = maxExecutionTime
54  self.home_directory = ""
55  if tmode == self.TMODE_SYNC:
56  self.cleanup = consts.TERMINATE_DATA_DELETE
57  else:
58  self.cleanup = consts.TERMINATE_DATA_SAVE
59 
60 
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Function Documentation

◆ add_evn_pair()

def drce.Commands.Session.add_evn_pair (   self,
  param_name,
  param_value 
)

Definition at line 61 of file Commands.py.

61  def add_evn_pair(self, param_name, param_value):
62  self.environment[param_name] = param_value
63 
64 
65 

Member Data Documentation

◆ cleanup

drce.Commands.Session.cleanup

Definition at line 56 of file Commands.py.

◆ environment

drce.Commands.Session.environment

Definition at line 50 of file Commands.py.

◆ home_directory

drce.Commands.Session.home_directory

Definition at line 54 of file Commands.py.

◆ password

drce.Commands.Session.password

Definition at line 48 of file Commands.py.

◆ port

drce.Commands.Session.port

Definition at line 46 of file Commands.py.

◆ shell

drce.Commands.Session.shell

Definition at line 49 of file Commands.py.

◆ time_max

drce.Commands.Session.time_max

Definition at line 53 of file Commands.py.

◆ timeout

drce.Commands.Session.timeout

Definition at line 51 of file Commands.py.

◆ tmode

drce.Commands.Session.tmode

Definition at line 52 of file Commands.py.

◆ TMODE_ASYNC

int drce.Commands.Session.TMODE_ASYNC = 2
static

Definition at line 34 of file Commands.py.

◆ TMODE_SYNC

int drce.Commands.Session.TMODE_SYNC = 1
static

Definition at line 33 of file Commands.py.

◆ type

drce.Commands.Session.type

Definition at line 45 of file Commands.py.

◆ TYPE_HOST_SHELL

int drce.Commands.Session.TYPE_HOST_SHELL = 0
static

Definition at line 36 of file Commands.py.

◆ TYPE_SSH

int drce.Commands.Session.TYPE_SSH = 1
static

Definition at line 37 of file Commands.py.

◆ user

drce.Commands.Session.user

Definition at line 47 of file Commands.py.


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