| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RootIOTest::TestFileStatSvc::PollFileStatSvc Class Reference

Inheritance diagram for RootIOTest::TestFileStatSvc::PollFileStatSvc:
[legend]
Collaboration diagram for RootIOTest::TestFileStatSvc::PollFileStatSvc:
[legend]
List of all members.

Public Member Functions

def __init__
def initialize
def execute

Public Attributes

 fss
 closed
 opened

Private Member Functions

def _listify

Detailed Description

Definition at line 7 of file TestFileStatSvc.py.


Member Function Documentation

def RootIOTest::TestFileStatSvc::PollFileStatSvc::__init__ (   self,
  name = 'PollFileStatSvc' 
)

Definition at line 8 of file TestFileStatSvc.py.

00008                                              :
00009         GaudiAlgo.__init__(self,name)
00010         self.fss = None
00011         self.closed = []
00012         self.opened = []
00013         return
00014 
    def initialize(self):

def RootIOTest::TestFileStatSvc::PollFileStatSvc::initialize (   self  ) 

Definition at line 15 of file TestFileStatSvc.py.

00015                         :
00016         self.fss = self.svc('IRootIOFileStateSvc','RootIOFileStateSvc')
00017         return SUCCESS
00018 
    def _listify(self,vector):

def RootIOTest::TestFileStatSvc::PollFileStatSvc::_listify (   self,
  vector 
) [private]

Definition at line 19 of file TestFileStatSvc.py.

00019                              :
00020         l = []
00021         siz = vector.size()
00022         print siz
00023         for ind in range(siz):
00024             l.append(vector[ind])
00025         return l
00026 
    def execute(self):

def RootIOTest::TestFileStatSvc::PollFileStatSvc::execute (   self  ) 

Definition at line 27 of file TestFileStatSvc.py.

00027                      :
00028         closed = self._listify(self.fss.closedOutput())
00029         opened = self._listify(self.fss.openOutput())
00030 
00031         for fn in closed:
00032             if fn not in self.closed:
00033                 print 'Got new closed file:',fn
00034                 self.closed.append(fn)
00035                 pass
00036             continue
00037         
00038         for fn in opened:
00039             if fn not in self.opened:
00040                 print 'Got new opened file:',fn
00041                 pass
00042             continue
00043         self.opened = opened
00044 
00045         return SUCCESS
00046 
def configure(argv=None):


Member Data Documentation

RootIOTest::TestFileStatSvc::PollFileStatSvc::fss

Definition at line 10 of file TestFileStatSvc.py.

RootIOTest::TestFileStatSvc::PollFileStatSvc::closed

Definition at line 11 of file TestFileStatSvc.py.

RootIOTest::TestFileStatSvc::PollFileStatSvc::opened

Definition at line 12 of file TestFileStatSvc.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:58:43 2011 for RootIOTest by doxygen 1.4.7