S4U_Daemon.h
void releaseDaemonLock()
Unlock the daemon's lock.
Definition: S4U_Daemon.cpp:349
void setCleanlyTerminated()
Set the terminated status of the daemon/actor.
Definition: S4U_Daemon.cpp:315
bool hasCleanlyTerminated()
Returned the terminated status of the daemon/actor.
Definition: S4U_Daemon.cpp:308
void acquireDaemonLock()
Lock the daemon's lock.
Definition: S4U_Daemon.cpp:342
std::string process_name
The name of the daemon.
Definition: S4U_Daemon.h:43
std::string getName()
Retrieve the process name.
Definition: S4U_Daemon.cpp:324
LifeSaver * life_saver
The daemon's life saver.
Definition: S4U_Daemon.h:81
std::string mailbox_name
The name of the daemon's mailbox.
Definition: S4U_Daemon.h:45
bool isSetToAutoRestart()
Return the auto-restart status of the daemon.
Definition: S4U_Daemon.cpp:204
virtual void cleanup()
Cleanup function called when the daemon terminates (for whatever reason)
Definition: S4U_Daemon.cpp:109
void runMainMethod()
Method that run's the user-defined main method (that's called by the S4U actor class) ...
Definition: S4U_Daemon.cpp:211
std::string hostname
The name of the host on which the daemon is running.
Definition: S4U_Daemon.h:47
virtual ~S4U_Daemon()
Constructor (daemon without a mailbox)
Definition: S4U_Daemon.cpp:99
The S4U actor that's the foundation for the S4U_Daemon abstraction.
Definition: S4U_DaemonActor.h:35
S4U_Daemon(std::string hostname, std::string process_name_prefix, std::string mailbox_prefix)
Constructor (daemon with a mailbox)
Definition: S4U_Daemon.cpp:39
Simulation * simulation
a pointer to the simulation object
Definition: S4U_Daemon.h:84
A generic "running daemon" abstraction that serves as a basis for all simulated processes.
Definition: S4U_Daemon.h:32
void startDaemon(bool daemonized, bool auto_restart)
Start the daemon.
Definition: S4U_Daemon.cpp:145
void createLifeSaver(std::shared_ptr< S4U_Daemon > reference)
Create a life saver for the daemon.
Definition: S4U_Daemon.cpp:332
Definition: TerminalOutput.cpp:15