Package Ganga :: Package GPIDev :: Package Lib :: Package Job :: Module JobTime' :: Class JobTime
[hide private]
[frames] | no frames]

Class JobTime

source code

          object --+        
                   |        
   Base.Objects.Node --+    
                       |    
Base.Objects.GangaObject --+
                           |
                          JobTime

This is a Ganga.GPI.JobTime implementation class. Refer to Ganga.GPI.JobTime.__doc__ for documentation.

Nested Classes [hide private]
  _proxyClass
Job timestamp access.

Inherited from Base.Objects.GangaObject: __metaclass__

Instance Methods [hide private]
 
__deepcopy__(self, memo) source code
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_timestamps_summary_print(self, value, verbosity_level)
Used to display timestamps when JobTime object is displayed.
source code
 
backend_final(self, format=None)
Method for obtaining 'backend_final' timestamp.
source code
 
backend_running(self, format=None)
Method for obtaining 'backend_running' timestamp.
source code
 
completing(self, format=None)
Method for obtaining 'completing' timestamp.
source code
 
details(self, subjob=None)
Obtains all timestamps available from the job's specific backend.
source code
 
display(self, format='%Y/%m/%d %H:%M:%S')
Displays existing timestamps in a table.
source code
 
duration(self, start, end)
Returns duration between two specified timestamps as timedelta object.
source code
 
final(self, format=None)
Method for obtaining 'final' timestamp.
source code
 
new(self, format=None)
Method for obtaining 'new' timestamp.
source code
 
newjob(self)
Timestamps job upon creation.
source code
 
printdetails(self, subjob=None)
Prints backend details to screen by calling details() and printing the returned dictionary.
source code
 
runtime(self)
Method which returns the 'runtime' of the specified job.
source code
 
sjStatList_return(self, status) source code
 
statetime(self, status, format=None)
General method for obtaining the specified timestamp in specified format.
source code
 
submissiontime(self)
Method which returns submission time of specified job.
source code
 
submitted(self, format=None)
Method for obtaining 'submitted' timestamp.
source code
 
submitting(self, format=None)
Method for obtaining 'submitting' timestamp.
source code
 
timenow(self, status)
Updates timestamps as job status changes.
source code
 
waittime(self)
Method which returns the waiting time of the specified job.
source code

Inherited from Base.Objects.GangaObject: __construct__, __getstate__, __setstate__, _attribute_filter__set__, _auto__init__, accept, getJobObject

Inherited from Base.Objects.Node: __copy__, __eq__, __ne__, clone, copyFrom, printSummaryTree, printTree

Inherited from Base.Objects.Node (private): _getParent, _getRoot, _setParent

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

Class Methods [hide private]

Inherited from Base.Objects.GangaObject (private): _declared_property

Class Variables [hide private]
  _category = 'jobtime'
  _exportmethods = ['display', 'new', 'submitting', 'submitted',...
  _name = 'JobTime'
  _schema = <Ganga.GPIDev.Schema.Schema.Schema instance at 0x18a...
  sj_statlist = []
  timestamps = <Ganga.GPIDev.Base.Objects.Descriptor object at 0...

Inherited from Base.Objects.GangaObject (private): _hidden, _registry

Inherited from Base.Objects.Node (private): _index_cache, _parent

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__deepcopy__(self, memo)

source code 
Overrides: Base.Objects.Node.__deepcopy__

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

details(self, subjob=None)

source code 
Obtains all timestamps available from the job's specific backend.

Subjob arguement: None  = default
                  'all' = gets details for ALL SUBJOBS. You have been warned.
                  int   = gets details for subjob number 'int'

No argument is required for a job with no subjobs.    

display(self, format='%Y/%m/%d %H:%M:%S')

source code 

Displays existing timestamps in a table.

Format can be specified by typing a string of the appropriate strftime() behaviour codes as the arguement. e.g. '%H:%M:%S' ==> 13:55:01

For a full list of codes see http://docs.python.org/library/datetime.html?#strftime-behavior

runtime(self)

source code 

Method which returns the 'runtime' of the specified job.

The runtime is calculated as the duration between the job entering the 'running' state and the job entering the 'completed' state.

submissiontime(self)

source code 

Method which returns submission time of specified job.

Calculation: sub_time = submitted - submitting.

waittime(self)

source code 

Method which returns the waiting time of the specified job.

The waiting time is calculated as the duration between the job entering the 'submitted' state and entering the 'running' state.


Class Variable Details [hide private]

_exportmethods

Value:
['display',
 'new',
 'submitting',
 'submitted',
 'backend_running',
 'backend_final',
 'completing',
 'final',
...

_schema

Value:
<Ganga.GPIDev.Schema.Schema.Schema instance at 0x18a0560>

timestamps

Value:
<Ganga.GPIDev.Base.Objects.Descriptor object at 0x189d850>