00001 #ifndef __ARC_TESTACCCONTROL_H__
00002 #define __ARC_TESTACCCONTROL_H__
00003
00004 #include <list>
00005 #include <string>
00006
00007 #include <arc/client/Endpoint.h>
00008 #include <arc/URL.h>
00009 #include <arc/client/EndpointQueryingStatus.h>
00010 #include <arc/client/ExecutionTarget.h>
00011 #include <arc/client/Job.h>
00012 #include <arc/client/JobState.h>
00013
00014
00015 namespace Arc {
00016
00017 class BrokerPluginTestACCControl {
00018 public:
00019 static bool match;
00020 static bool less;
00021 };
00022
00023 class JobDescriptionParserTestACCControl {
00024 public:
00025 static bool parseStatus;
00026 static bool unparseStatus;
00027 static std::list<JobDescription> parsedJobDescriptions;
00028 static std::string unparsedString;
00029 };
00030
00031 class JobControllerPluginTestACCControl {
00032 public:
00033 static bool cleanStatus;
00034 static bool cancelStatus;
00035 static bool renewStatus;
00036 static bool resumeStatus;
00037 static bool getJobDescriptionStatus;
00038 static std::string getJobDescriptionString;
00039 static bool resourceExist;
00040 static URL resourceURL;
00041 static URL createURL;
00042 };
00043
00044 class SubmitterPluginTestACCControl {
00045 public:
00046 static bool submitStatus;
00047 static bool migrateStatus;
00048 static bool modifyStatus;
00049 static Job submitJob;
00050 static Job migrateJob;
00051 };
00052
00053 class JobStateTEST : public JobState {
00054 public:
00055 JobStateTEST(JobState::StateType type_, const std::string& state_ = "TestState") {
00056 type = type_;
00057 state = state_;
00058 }
00059 };
00060
00061 class JobListRetrieverPluginTESTControl {
00062 public:
00063 static float delay;
00064 static std::list<Job> jobs;
00065 static EndpointQueryingStatus status;
00066 };
00067
00068 class ServiceEndpointRetrieverPluginTESTControl {
00069 public:
00070 static float delay;
00071 static EndpointQueryingStatus status;
00072 static std::list<Endpoint> endpoints;
00073 };
00074
00075 class TargetInformationRetrieverPluginTESTControl {
00076 public:
00077 static float delay;
00078 static std::list<ComputingServiceType> targets;
00079 static EndpointQueryingStatus status;
00080 };
00081
00082 }
00083
00084 #endif // __ARC_TESTACCCONTROL_H__