Returns True if the %container has been killed
*/
boolean Kill_impl() ;
+/*!
+ Returns the hostname of the container
+*/
+ string getHostName();
+/*!
+ Returns the PID of the container
+*/
+ long getPID();
};
/*! \brief Interface of the %component
int argc , char* argv[] ) :
_numInstance(0)
{
+ _pid = (long)getpid();
ActSigIntHandler() ;
int flag )
: _numInstance(0)
{
+ _pid = (long)getpid();
string hostname = GetHostname();
SCRUTE(hostname);
return ;
}
}
+
+// Get the PID of the Container
+
+long Engines_Container_i::getPID() {
+ return(_pid);
+}
+
+// Get the hostName of the Container
+
+char* Engines_Container_i::getHostName() {
+ return((char*)(GetHostname().c_str()));
+}