30 #ifndef COSMOS_CommandQueue_H    31 #define COSMOS_CommandQueue_H    53             int32_t 
Shell(
string command_line=
"", 
string outpath=
"", 
string inpath=
"", 
string errpath=
"");
    67             bool queue_changed = 
false;
    69             bool queue_blocked = 
false;
    76             size_t join_event_threads();
    91                 std::deque<Event>::iterator ii = events.begin();
   109                 std::list<Event>::iterator ii = commands.begin();
   132             int32_t save_commands(
string temp_dir, 
string name=
".queue");
   140             int32_t restore_commands(
string temp_dir, 
string name=
".queue");
   177             int32_t run_commands(
Agent *
agent, 
string nodename, 
double logdate_exec);
   186             int32_t add_command(
Event& c);
   195             int32_t del_command(
Event& c);
   204             int32_t del_command(
int pos);
   227 #endif // COSMOS_CommandQueue_H static string incoming_dir
Definition: agent_exec-2-0.cpp:143
Definition: agentclass.cpp:54
Event & get_event(int i)
Retrieve an Event by its position in the queue. 
Definition: command_queue.h:89
static double logdate_exec
Definition: agent_exec-2-0.cpp:77
Class to manage Event information. 
Definition: event.h:57
void sort()
Sort the Events in the queue by Event exectution time. 
Definition: command_queue.h:210
Event & get_command(int i)
Retrieve an Event by its position in the queue. 
Definition: command_queue.h:107
int i
Definition: rw_test.cpp:37
static string temp_dir
Definition: agent_exec-2-0.cpp:146
vector< std::thread > event_threads
Definition: command_queue.h:65
static Agent * agent
ensure the Agent constructor creates only one instance per process 
Definition: agent_001.cpp:45
Definition: agentclass.h:139
JSON Support definitions. 
Headers and definitions common to all COSMOS. 
string getTime()
Retrieves Event::mjd. 
Definition: event.h:131
string name
Definition: cubesat2obj.cpp:6
Agent Server and Client header file. 
std::deque< Event > events
Definition: command_queue.h:63
Class to manage information about a queue of Events. 
Definition: command_queue.h:57
size_t get_command_size()
Retrieve the size of the queue. 
Definition: command_queue.h:100
int32_t Shell(string command_line, string outpath, string inpath, string errpath)
Definition: command_queue.cpp:43
string nodename
Definition: agent_add_soh.cpp:54
std::ostream & operator<<(std::ostream &out, CommandQueue &cmdq)
Extraction operator. 
Definition: command_queue.cpp:547
size_t get_event_size()
Retrieve the size of the queue. 
Definition: command_queue.h:82
std::list< Event > commands
Definition: command_queue.h:61