This file is indexed.

/usr/include/arc/compute/TestACCControl.h is in nordugrid-arc-dev 4.2.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#ifndef __ARC_TESTACCCONTROL_H__
#define __ARC_TESTACCCONTROL_H__

/** \file
 * \brief Classes for controlling output of compute test plugins.
 */

#include <list>
#include <string>

#include <arc/compute/Endpoint.h>
#include <arc/Thread.h>
#include <arc/URL.h>
#include <arc/compute/EndpointQueryingStatus.h>
#include <arc/compute/ExecutionTarget.h>
#include <arc/compute/Job.h>
#include <arc/compute/JobState.h>
#include <arc/compute/SubmissionStatus.h>


namespace Arc {

/**
 * \defgroup testacccontrol Classes for controlling output of compute test plugins
 * The listed classes are used for controlling the behaviour of the test
 * plugins. A test plugin can be used for simulating, testing and checking how
 * the compute library behaves and react to different inputs from plugins. Also
 * the test plugins doesn't require a network connection in order to function.
 * 
 * Compute test plugins are available for the following plugin types:
 * \li BrokerPlugin 
 * \li JobControllerPlugin
 * \li JobDescriptionParserPlugin
 * \li SubmitterPlugin
 * \li ServiceEndpointRetrieverPlugin
 * \li TargetInformationRetrieverPlugin
 * \li JobListRetrieverPlugin
 * 
 * They can be loaded by using the associated plugin loader class.
 * 
 * \ingroup compute
 */

/**
 * \ingroup testacccontrol
 * \headerfile TestACCControl.h arc/compute/TestACCControl.h
 */
class BrokerPluginTestACCControl {
  public:
    static bool match;
    static bool less;
};

/**
 * \ingroup testacccontrol
 * \headerfile TestACCControl.h arc/compute/TestACCControl.h
 */
class JobDescriptionParserPluginTestACCControl {
  public:
    static bool parseStatus;
    static bool unparseStatus;
    static std::list<JobDescription> parsedJobDescriptions;
    static std::string unparsedString;
};

/**
 * \ingroup testacccontrol
 * \headerfile TestACCControl.h arc/compute/TestACCControl.h
 */
class JobControllerPluginTestACCControl {
  public:
    static bool cleanStatus;
    static bool cancelStatus;
    static bool renewStatus;
    static bool resumeStatus;
    static bool getJobDescriptionStatus;
    static std::string getJobDescriptionString;
    static bool resourceExist;
    static URL resourceURL;
    static URL createURL;
};

/**
 * \ingroup testacccontrol
 * \headerfile TestACCControl.h arc/compute/TestACCControl.h
 */
class SubmitterPluginTestACCControl {
  public:
    static SubmissionStatus submitStatus;
    static bool migrateStatus;
    static bool modifyStatus;
    static Job submitJob;
    static Job migrateJob;
};

/**
 * \ingroup testacccontrol
 * \headerfile TestACCControl.h arc/compute/TestACCControl.h
 */
class JobStateTEST : public JobState {
  public:
    JobStateTEST(JobState::StateType type_, const std::string& state_ = "TestState") {
      type = type_;
      state = state_;
    }
};

/**
 * \ingroup testacccontrol
 * \headerfile TestACCControl.h arc/compute/TestACCControl.h
 */
class JobListRetrieverPluginTESTControl {
public:
  static float delay;
  static std::list<Job> jobs;
  static EndpointQueryingStatus status;
};

/**
 * \ingroup testacccontrol
 * \headerfile TestACCControl.h arc/compute/TestACCControl.h
 */
class ServiceEndpointRetrieverPluginTESTControl {
public:
  static std::list<SimpleCondition*> condition;
  static std::list<EndpointQueryingStatus> status;
  static std::list< std::list<Endpoint> > endpoints;
};

/**
 * \ingroup testacccontrol
 * \headerfile TestACCControl.h arc/compute/TestACCControl.h
 */
class TargetInformationRetrieverPluginTESTControl {
public:
  static float delay;
  static std::list<ComputingServiceType> targets;
  static EndpointQueryingStatus status;
};

}

#endif // __ARC_TESTACCCONTROL_H__