SpillServerMon Class Reference

#include <SpillServerMon.h>

Inheritance diagram for SpillServerMon:
DbiTableRow

List of all members.

Public Member Functions

 SpillServerMon ()
 SpillServerMon (Int_t timestamp, Int_t spillstatus, Int_t spilltype, Int_t spilltimeND_sec, Int_t spilltimeND_nsec, Int_t spilltimeFD_sec, Int_t spilltimeFD_nsec, Int_t spilltimeerror, Int_t request_sec, Int_t windowopen_nsec, Int_t windowclose_nsec)
 SpillServerMon (const SpillServerMon &from)
 ~SpillServerMon ()
VldTimeStamp GetTimeStamp () const
Int_t GetTimeStamp_sec () const
Int_t GetTimeStamp_nsec () const
VldTimeStamp GetSpillTime () const
Int_t GetSpillTime_sec () const
Int_t GetSpillTime_nsec () const
Int_t GetSpillStatus () const
Int_t GetSpillType () const
VldTimeStamp GetSpillTimeND () const
Int_t GetSpillTimeND_sec () const
Int_t GetSpillTimeND_nsec () const
VldTimeStamp GetSpillTimeFD () const
Int_t GetSpillTimeFD_sec () const
Int_t GetSpillTimeFD_nsec () const
Int_t GetSpillTimeError () const
Int_t GetRequest_sec () const
Int_t GetWindowOpen_nsec () const
Int_t GetWindowClose_nsec () const
Bool_t CanL2Cache () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const

Private Attributes

Int_t fTime
Int_t fStatus
Int_t fType
Int_t fND_sec
Int_t fND_nsec
Int_t fFD_sec
Int_t fFD_nsec
Int_t fGpsError
Int_t fRequest_sec
Int_t fWindowOpen_nsec
Int_t fWindowClose_nsec

Detailed Description

Definition at line 10 of file SpillServerMon.h.


Constructor & Destructor Documentation

SpillServerMon::SpillServerMon (  ) 

Definition at line 18 of file SpillServerMon.cxx.

References fFD_nsec, fFD_sec, fGpsError, fND_nsec, fND_sec, fRequest_sec, fStatus, fTime, fType, fWindowClose_nsec, and fWindowOpen_nsec.

00019 {
00020   fTime=0;
00021   fStatus=0;
00022   fType=0;
00023   fND_sec=0;
00024   fND_nsec=0;
00025   fFD_sec=0;
00026   fFD_nsec=0;
00027   fGpsError=0;
00028   fRequest_sec=0;
00029   fWindowOpen_nsec=0;
00030   fWindowClose_nsec=0;
00031 }

SpillServerMon::SpillServerMon ( Int_t  timestamp,
Int_t  spillstatus,
Int_t  spilltype,
Int_t  spilltimeND_sec,
Int_t  spilltimeND_nsec,
Int_t  spilltimeFD_sec,
Int_t  spilltimeFD_nsec,
Int_t  spilltimeerror,
Int_t  request_sec,
Int_t  windowopen_nsec,
Int_t  windowclose_nsec 
)

Definition at line 33 of file SpillServerMon.cxx.

References fFD_nsec, fFD_sec, fGpsError, fND_nsec, fND_sec, fRequest_sec, fStatus, fTime, fType, fWindowClose_nsec, and fWindowOpen_nsec.

00044 {
00045   fTime=timestamp;
00046   fStatus=spillstatus;
00047   fType=spilltype;
00048   fND_sec=spilltimeND_sec;
00049   fND_nsec=spilltimeND_nsec;
00050   fFD_sec=spilltimeFD_sec;
00051   fFD_nsec=spilltimeFD_nsec;
00052   fGpsError=spilltimeerror;
00053   fRequest_sec=request_sec;
00054   fWindowOpen_nsec=windowopen_nsec;
00055   fWindowClose_nsec=windowclose_nsec;
00056 }

SpillServerMon::SpillServerMon ( const SpillServerMon from  ) 

Definition at line 58 of file SpillServerMon.cxx.

00058                                                          :
00059     DbiTableRow(from) 
00060 { 
00061   *this = from; 
00062 }
 

SpillServerMon::~SpillServerMon (  ) 

Definition at line 64 of file SpillServerMon.cxx.

00065 {
00066 
00067 }


Member Function Documentation

Bool_t SpillServerMon::CanL2Cache (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 38 of file SpillServerMon.h.

00038 { return kTRUE; }

virtual DbiTableRow* SpillServerMon::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 39 of file SpillServerMon.h.

00039 { return new SpillServerMon; }

void SpillServerMon::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 69 of file SpillServerMon.cxx.

References DbiRowStream::CurColName(), fFD_nsec, fFD_sec, fGpsError, fND_nsec, fND_sec, fRequest_sec, fStatus, fTime, fType, fWindowClose_nsec, fWindowOpen_nsec, DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00070 {
00071   if ( rs.TableName() == "SPILLSERVERMON" ) {
00072     rs >> fTime
00073        >> fStatus
00074        >> fType
00075        >> fND_sec
00076        >> fND_nsec
00077        >> fFD_sec
00078        >> fFD_nsec
00079        >> fGpsError
00080        >> fRequest_sec
00081        >> fWindowOpen_nsec
00082        >> fWindowClose_nsec;
00083   }
00084   else {
00085     Int_t numCol = rs.NumCols();
00086     for (Int_t curCol = 2; curCol <= numCol; ++curCol) {
00087       string colName = rs.CurColName();
00088       if( colName == "TIMESTAMP" ) rs >> fTime;
00089       else if ( colName == "SPILLSTATUS" ) rs >> fStatus;
00090       else if ( colName == "SPILLTYPE" ) rs >> fType;
00091       else if ( colName == "SPILLTIMEND_SEC" ) rs >> fND_sec;
00092       else if ( colName == "SPILLTIMEND_NANOSEC" ) rs >> fND_nsec;
00093       else if ( colName == "SPILLTIMEFD_SEC" ) rs >> fFD_sec;
00094       else if ( colName == "SPILLTIMEFD_NANOSEC" ) rs >> fFD_nsec;
00095       else if ( colName == "SPILLTIMEERROR" ) rs >> fGpsError;
00096       else if ( colName == "REQUEST_SEC" ) rs >> fRequest_sec;
00097       else if ( colName == "WINDOWOPEN_NANOSEC" ) rs >> fWindowOpen_nsec;
00098       else if ( colName == "WINDOWCLOSE_NANOSEC" ) rs >> fWindowClose_nsec;
00099       else {
00100         MSG("SpillServerMon",Msg::kDebug) << "Ignoring column " 
00101                                        << curCol 
00102                                        << "(" << colName << ")" << endl;
00103         rs.IncrementCurCol();
00104       }
00105     }
00106   }
00107 
00108 }

Int_t SpillServerMon::GetRequest_sec (  )  const [inline]

Definition at line 34 of file SpillServerMon.h.

References fRequest_sec.

Referenced by FillSpillServerMon::ReadFromDatabase().

00034 { return fRequest_sec; }

Int_t SpillServerMon::GetSpillStatus (  )  const [inline]

Definition at line 25 of file SpillServerMon.h.

References fStatus.

Referenced by FillSpillServerMon::ReadFromDatabase().

00025 { return fStatus; }

VldTimeStamp SpillServerMon::GetSpillTime (  )  const [inline]
Int_t SpillServerMon::GetSpillTime_nsec (  )  const [inline]

Definition at line 24 of file SpillServerMon.h.

References GetSpillTimeFD_nsec().

00024 { return this->GetSpillTimeFD_nsec(); }

Int_t SpillServerMon::GetSpillTime_sec (  )  const [inline]

Definition at line 23 of file SpillServerMon.h.

References GetSpillTimeFD_sec().

00023 { return this->GetSpillTimeFD_sec(); }

Int_t SpillServerMon::GetSpillTimeError (  )  const [inline]
VldTimeStamp SpillServerMon::GetSpillTimeFD (  )  const [inline]

Definition at line 30 of file SpillServerMon.h.

References fFD_nsec, and fFD_sec.

Referenced by GetSpillTime(), and Anp::FillHeader::Run().

00030 { return VldTimeStamp(fFD_sec,fFD_nsec); }

Int_t SpillServerMon::GetSpillTimeFD_nsec (  )  const [inline]

Definition at line 32 of file SpillServerMon.h.

References fFD_nsec.

Referenced by GetSpillTime_nsec(), and FillSpillServerMon::ReadFromDatabase().

00032 { return fFD_nsec; }

Int_t SpillServerMon::GetSpillTimeFD_sec (  )  const [inline]

Definition at line 31 of file SpillServerMon.h.

References fFD_sec.

Referenced by GetSpillTime_sec(), and FillSpillServerMon::ReadFromDatabase().

00031 { return fFD_sec; }

VldTimeStamp SpillServerMon::GetSpillTimeND (  )  const [inline]

Definition at line 27 of file SpillServerMon.h.

References fND_nsec, and fND_sec.

Referenced by Anp::FillHeader::Run().

00027 { return VldTimeStamp(fND_sec,fND_nsec); }

Int_t SpillServerMon::GetSpillTimeND_nsec (  )  const [inline]

Definition at line 29 of file SpillServerMon.h.

References fND_nsec.

Referenced by FillSpillServerMon::ReadFromDatabase().

00029 { return fND_nsec; }

Int_t SpillServerMon::GetSpillTimeND_sec (  )  const [inline]

Definition at line 28 of file SpillServerMon.h.

References fND_sec.

Referenced by FillSpillServerMon::ReadFromDatabase().

00028 { return fND_sec; }

Int_t SpillServerMon::GetSpillType (  )  const [inline]
VldTimeStamp SpillServerMon::GetTimeStamp (  )  const [inline]
Int_t SpillServerMon::GetTimeStamp_nsec (  )  const [inline]

Definition at line 21 of file SpillServerMon.h.

00021 { return 0; }

Int_t SpillServerMon::GetTimeStamp_sec (  )  const [inline]

Definition at line 20 of file SpillServerMon.h.

References fTime.

00020 { return fTime; }

Int_t SpillServerMon::GetWindowClose_nsec (  )  const [inline]

Definition at line 36 of file SpillServerMon.h.

References fWindowClose_nsec.

Referenced by FillSpillServerMon::ReadFromDatabase().

00036 { return fWindowClose_nsec; }

Int_t SpillServerMon::GetWindowOpen_nsec (  )  const [inline]

Definition at line 35 of file SpillServerMon.h.

References fWindowOpen_nsec.

Referenced by FillSpillServerMon::ReadFromDatabase().

00035 { return fWindowOpen_nsec; }

void SpillServerMon::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 110 of file SpillServerMon.cxx.

References fFD_nsec, fFD_sec, fGpsError, fND_nsec, fND_sec, fRequest_sec, fStatus, fTime, fType, fWindowClose_nsec, and fWindowOpen_nsec.

00111 {
00112   ors << fTime
00113       << fStatus
00114       << fType
00115       << fND_sec
00116       << fND_nsec
00117       << fFD_sec
00118       << fFD_nsec
00119       << fGpsError
00120       << fRequest_sec
00121       << fWindowOpen_nsec
00122       << fWindowClose_nsec;
00123 }


Member Data Documentation

Int_t SpillServerMon::fFD_nsec [private]

Definition at line 51 of file SpillServerMon.h.

Referenced by Fill(), GetSpillTimeFD(), GetSpillTimeFD_nsec(), SpillServerMon(), and Store().

Int_t SpillServerMon::fFD_sec [private]

Definition at line 50 of file SpillServerMon.h.

Referenced by Fill(), GetSpillTimeFD(), GetSpillTimeFD_sec(), SpillServerMon(), and Store().

Int_t SpillServerMon::fGpsError [private]

Definition at line 52 of file SpillServerMon.h.

Referenced by Fill(), GetSpillTimeError(), SpillServerMon(), and Store().

Int_t SpillServerMon::fND_nsec [private]

Definition at line 49 of file SpillServerMon.h.

Referenced by Fill(), GetSpillTimeND(), GetSpillTimeND_nsec(), SpillServerMon(), and Store().

Int_t SpillServerMon::fND_sec [private]

Definition at line 48 of file SpillServerMon.h.

Referenced by Fill(), GetSpillTimeND(), GetSpillTimeND_sec(), SpillServerMon(), and Store().

Definition at line 53 of file SpillServerMon.h.

Referenced by Fill(), GetRequest_sec(), SpillServerMon(), and Store().

Int_t SpillServerMon::fStatus [private]

Definition at line 46 of file SpillServerMon.h.

Referenced by Fill(), GetSpillStatus(), SpillServerMon(), and Store().

Int_t SpillServerMon::fTime [private]

Definition at line 45 of file SpillServerMon.h.

Referenced by Fill(), GetTimeStamp(), GetTimeStamp_sec(), SpillServerMon(), and Store().

Int_t SpillServerMon::fType [private]

Definition at line 47 of file SpillServerMon.h.

Referenced by Fill(), GetSpillType(), SpillServerMon(), and Store().

Definition at line 55 of file SpillServerMon.h.

Referenced by Fill(), GetWindowClose_nsec(), SpillServerMon(), and Store().

Definition at line 54 of file SpillServerMon.h.

Referenced by Fill(), GetWindowOpen_nsec(), SpillServerMon(), and Store().


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

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1