Commit 9b486724 authored by legoc's avatar legoc
Browse files

Added pid in Info

parent 07c072bf
......@@ -1172,8 +1172,9 @@ int Configuration::getStoppingTime() const {
///////////////////////////////////////////////////////////////////////////
// Info
Info::Info(const std::string& name, int id, State applicationState, State pastApplicationStates, const std::string& args) :
Info::Info(const std::string& name, int id, int pid, State applicationState, State pastApplicationStates, const std::string& args) :
m_id(id),
m_pid(pid),
m_applicationState(applicationState),
m_pastApplicationStates(pastApplicationStates),
m_args(args),
......@@ -1200,6 +1201,9 @@ const std::string& Info::getName() const {
return m_name;
}
int Info::getPid() const {
return m_pid;
}
std::string toString(cameo::application::State applicationStates) {
......
......@@ -479,16 +479,18 @@ class Info {
friend std::ostream& operator<<(std::ostream&, const Info&);
public:
Info(const std::string& name, int id, State applicationState, State pastApplicationStates, const std::string& args);
Info(const std::string& name, int id, int pid, State applicationState, State pastApplicationStates, const std::string& args);
int getId() const;
State getState() const;
State getPastStates() const;
const std::string& getArgs() const;
const std::string& getName() const;
int getPid() const;
private:
int m_id;
int m_pid;
State m_applicationState;
State m_pastApplicationStates;
std::string m_processState;
......
......@@ -297,6 +297,7 @@ std::vector<application::Info> Server::getApplicationInfos() const {
application::Info applicationInfo(info.name(),
info.id(),
info.pid(),
info.applicationstate(),
info.pastapplicationstates(),
info.args());
......
......@@ -113,6 +113,7 @@ message ApplicationInfo {
required int32 applicationState = 3;
required int32 pastApplicationStates = 4;
required string args = 5;
optional int64 pid = 6;
}
message ApplicationInfoListResponse {
......@@ -219,7 +220,7 @@ message Request {
message StartedUnmanagedCommand {
required string name = 1;
optional int32 pid = 2;
optional int64 pid = 2;
}
message TerminatedUnmanagedCommand {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment