Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CacheIntf.C

Go to the documentation of this file.
00001 // Copyright (C) 2001, Compaq Computer Corporation
00002 // 
00003 // This file is part of Vesta.
00004 // 
00005 // Vesta is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 // 
00010 // Vesta is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with Vesta; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 // Last modified on Thu Nov  8 12:36:38 EST 2001 by ken@xorian.net
00020 //      modified on Wed Sep  2 12:47:56 PDT 1998 by heydon
00021 
00022 #include "CacheIntf.H"
00023 
00024 // Names of debugging levels
00025 static char *CacheIntf_DebugNamesArray[] = {
00026   "None", "StatusMsgs", "LeaseExp", "LogRecover", "LogFlush",
00027   "MPKFileFlush", "LogFlushEntries", "WeederOps", "AddEntryOp",
00028   "OtherOps", "WeederScans", "All"
00029 };
00030 
00031 char *CacheIntf::DebugName(int i) throw ()
00032 {
00033     if (i < 0 || i > CacheIntf::All) assert(false);
00034     return (CacheIntf_DebugNamesArray[i]);
00035 }
00036 
00037 const char *const CacheIntf::LookupResName(CacheIntf::LookupRes res)
00038   throw ()
00039 {
00040     static const char *const LookupResNameArray[] =
00041         { "Hit", "Miss", "FV Mismatch", "Bad Lookup Args" };
00042     return LookupResNameArray[res];
00043 }
00044 
00045 const char *const CacheIntf::AddEntryResName(CacheIntf::AddEntryRes res)
00046   throw ()
00047 {
00048     static const char *const AddEntryResNameArray[] =
00049         { "Entry Added", "No Lease", "Bad AddEntry Args" };
00050     return AddEntryResNameArray[res];
00051 }

Generated on Mon May 8 00:48:31 2006 for Vesta by  doxygen 1.4.2