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

ReplicaLocationService.h

Go to the documentation of this file.
00001 /* -*- C++ -*-
00002  * LocalReplicaCatalog.cpp
00003  *
00004  * Copyright (c) 2002 CERN on behalf of the EU DataGrid.
00005  * For license conditions see LICENSE file or 
00006  * http://www.edg.org/license.html
00007  * 
00008  * $Id: ReplicaLocationService.h,v 1.7 2003/09/18 23:37:43 rado Exp $
00009  *
00010  */
00011 
00012 
00013 #ifndef ReplicaLocationService_H
00014 #define ReplicaLocationService_H
00015 
00016 #include "EdgReplicaLocationService/LocalReplicaCatalog.h"
00017 
00018 #include <string>
00019 
00020 namespace EdgReplicaLocationService
00021 {
00022 
00030   class ReplicaLocationService
00031   {
00032     public:
00033 
00041       static LocalReplicaCatalog*
00042       getLocalReplicaCatalog(const std::string& url,
00043                              int timeOut = 30);
00044 
00045 #ifdef WITH_WP2_SECURITY
00046       /* Decls of two factory methods for adding security parameters */
00047       static LocalReplicaCatalog*
00048       getLocalReplicaCatalog(const std::string& url,
00049                              char *passphrase,
00050                              char *credentials,
00051                              char *cacertdir,
00052                              char *rseedfile,
00053                              int timeOut = 30);
00054 
00055       static LocalReplicaCatalog*
00056       getLocalReplicaCatalog(const std::string& url,
00057                              char *passphrase,
00058                              char *credentials,
00059                              char *cacertdir,
00060                              char *rseedfile,
00061                              char *role,
00062                              char *policy,
00063                              char *defaultrole,
00064                              char *defaultpolicy,
00065                              int timeOut = 30);
00066 #endif
00067 
00068   };
00069 }
00070 
00071 #endif
00072 
The EU DataGrid Project. All rights reserved.