Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

InfoServiceStub.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * InfoServiceStub.h
00004  *
00005  * Copyright (c) 2002 INFN, CERN on behalf of the EU DataGrid.
00006  * For license conditions see LICENSE file or 
00007  * http://www.edg.org/license.html
00008  * 
00009  */
00010 
00011 #ifndef EDGReplicaManager_InfoServiceStub_H
00012 #define EDGReplicaManager_InfoServiceStub_H 1
00013 
00014 /*
00015  * @author <a href="mailto:Peter.Kunszt@cern.ch">Peter Kunszt</a>
00016  */
00017 
00018 #include "EdgReplicaManager/InfoService.h"
00019 #include "EdgReplicaManager/Configuration.h"
00020 
00021 namespace EdgReplicaManager {
00022 
00024     class InfoServiceStub : public InfoService {
00025     public:
00026 
00030         InfoServiceStub(const std::string &vo, bool secure, const std::string &file )  throw ( ReplicaManagerException );
00031 
00034         ~InfoServiceStub();
00035 
00037         const std::vector<std::string>& getServiceURIs(const std::string &serviceType, 
00038                                                        const std::string &domain) 
00039             throw(InfoServiceException) ;
00040 
00042         std::string getCloseSE(const std::string& ceID) throw ( InfoServiceException ) ;
00043 
00044     private:
00045         std::string replaceColon(const std::string& s);
00046 
00047         std::string m_file;
00048         std::vector<std::string> m_buffer;
00049         Configuration* m_stub;
00050 
00051     };
00052 
00053 };
00054 
00055 #endif
The EU DataGrid Project. All rights reserved.