00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ReplicaMetadataCatalogFactory_H
00011 #define ReplicaMetadataCatalogFactory_H 1
00012
00013 #include "EdgReplicaMetadataCatalog/ReplicaMetadataCatalog.h"
00014
00015 #include <string>
00016
00017 namespace EdgReplicaMetadataCatalog {
00018
00025 class ReplicaMetadataCatalogFactory {
00026 public:
00027
00035 static ReplicaMetadataCatalog* getReplicaMetadataCatalog(const std::string& url,
00036 int timeOut=30);
00037
00038 #ifdef WITH_WP2_SECURITY
00039
00040 static ReplicaMetadataCatalog* getReplicaMetadataCatalog(const std::string& url,
00041 char *passphrase,
00042 char *credentials,
00043 char *cacertdir,
00044 char *rseedfile,
00045 int timeOut = 30);
00046
00047 static ReplicaMetadataCatalog* getReplicaMetadataCatalog(const std::string& url,
00048 char *passphrase,
00049 char *credentials,
00050 char *cacertdir,
00051 char *rseedfile,
00052 char *role,
00053 char *policy,
00054 char *defaultrole,
00055 char *defaultpolicy,
00056 int timeOut = 30);
00057 #endif
00058
00059 };
00060 };
00061
00062 #endif // ReplicaMetadataCatalogFactory_H
00063