00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ReplicaOptimizationFactory_H
00012 #define ReplicaOptimizationFactory_H 1
00013
00014 #include "EdgReplicaOptimization/ReplicaOptimization.h"
00015
00016 #include <string>
00017
00018 namespace EdgReplicaOptimization {
00025 class ReplicaOptimizationFactory {
00026 public:
00027
00037 static
00038 ReplicaOptimization* getReplicaOptimization(const std::string& url,
00039 int timeOut=30
00040 #ifdef WITH_WP2_SECURITY
00041 ,char *passphrase = NULL,
00042 char *credentials = NULL,
00043 char *cacertdir = NULL,
00044 char *rseedfile = NULL,
00045 char *role = NULL,
00046 char *policy = NULL,
00047 char *defrole = NULL,
00048 char *defpolicy = NULL
00049 #endif
00050 );
00051 };
00052 }
00053
00054 #endif // OptimizationFactory_H
00055