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

ShortIdBlockBogusRPC.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 //
00020 // ShortIdBlockBogusRPC.C
00021 // Last modified on Fri Apr 22 12:32:39 EDT 2005 by ken@xorian.net
00022 //      modified on Thu Jul 20 14:29:38 PDT 2000 by mann
00023 //
00024 // Glue code to link server and client in same address space instead
00025 // of doing RPC.
00026 //
00027 
00028 #include "ShortIdBlock.H"
00029 #include "ShortIdImpl.H"
00030 #include "VRWeed.H"
00031 #include <assert.h>
00032 
00033 ShortIdBlock*
00034 ShortIdBlock::acquire(bool leafflag)
00035   throw (SRPC::failure /*can't happen*/)
00036 {
00037     ShortIdBlock* sib = NEW(ShortIdBlock);
00038     AcquireShortIdBlock(*sib, leafflag, true);
00039     return sib;
00040 }
00041 
00042 bool
00043 ShortIdBlock::renew(ShortIdBlock* block)
00044   throw (SRPC::failure /*can't happen*/)
00045 {
00046     assert(false);  // should never be called
00047     return true;
00048 }
00049 
00050 void
00051 ShortIdBlock::release(ShortIdBlock* block)
00052   throw (SRPC::failure /*can't happen*/)
00053 {
00054     ReleaseShortIdBlock(*block, true);
00055 }
00056 
00057 int
00058 ShortIdBlock::keepDerived(ShortIdsFile ds, time_t dt, bool force)
00059   throw (SRPC::failure /*can't happen*/)
00060 {
00061     return KeepDerived(ds, dt, force);
00062 }
00063 
00064 void
00065 ShortIdBlock::checkpoint()
00066   throw (SRPC::failure /*can't happen*/)
00067 {
00068     Checkpoint();
00069 }
00070 
00071 void
00072 ShortIdBlock::getWeedingState(ShortIdsFile& ds, time_t& dt,
00073                               ShortIdsFile& ss, time_t& st,
00074                               bool& sourceWeedInProgress,
00075                               bool& deletionsInProgress,
00076                               bool& deletionsDone,
00077                               bool& checkpointInProgress)
00078   throw (SRPC::failure /*can't happen*/)
00079 {
00080     GetWeedingState(ds, dt, ss, st, sourceWeedInProgress,
00081                     deletionsInProgress, deletionsDone, checkpointInProgress);
00082 }

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