00001
00002
00003
00004
00005
00006
00007
00008
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
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