00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ReplicaLocationIndexFactory_H
00011 #define ReplicaLocationIndexFactory_H 1
00012
00013 #include "EdgReplicaLocationIndex/ReplicaLocationIndex.h"
00014
00015 #include <string>
00016
00017 namespace EdgReplicaLocationIndex {
00018
00024 class ReplicaLocationIndexFactory {
00025 public:
00026
00032 static
00033 ReplicaLocationIndex* getReplicaLocationIndex(const std::string& url);
00034
00035 #ifdef WITH_WP2_SECURITY
00036 static
00037 ReplicaLocationIndex* getReplicaLocationIndex(const std::string& url,
00038 char *passphrase,
00039 char *credentials,
00040 char *cacertdir,
00041 char *rseedfile);
00042
00043 static
00044 ReplicaLocationIndex* getReplicaLocationIndex(const std::string& url,
00045 char *passphrase,
00046 char *credentials,
00047 char *cacertdir,
00048 char *rseedfile,
00049 char *role,
00050 char *policy,
00051 char *defaultRole,
00052 char *defaultPolicy);
00053 #endif
00054
00055 };
00056 };
00057
00058 #endif // ReplicaLocationIndexFactory_H
00059