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:40:11 EST 2001 by ken@xorian.net 00020 // modified on Tue Jan 21 13:43:15 PST 1997 by heydon 00021 00022 // ParCacheC -- the client module for interfacing with a partitioned 00023 // Vesta-2 cache server 00024 00025 #ifndef _PAR_CACHE_C_H 00026 #define _PAR_CACHE_C_H 00027 00028 #include <Basics.H> 00029 00030 /* For now, we only support connections to a single server. The "ParCache" 00031 spec describes how to distribute PK's across multiple servers. This 00032 interface is just a thin veneer for such a facility. The interface will 00033 likely change quite substantially if partitioned cache servers are ever 00034 implemented. */ 00035 00036 class ParCacheC { 00037 public: 00038 static Text *Locate() throw (); 00039 /* Return the name of the host on which the server is running. */ 00040 00041 static void SetServerHost(char *name = NULL) throw (); 00042 /* This method sets the name returned by subsequent calls of "Locate". 00043 By default, the server host name is NULL, which means that the server 00044 host is the value associated with the "[CacheServer]/Host" variable 00045 in the Vesta configuration file. */ 00046 }; 00047 00048 #endif // _PAR_CACHE_C_H