OSM_ACT_TomcatAvailability Class Reference

This is to recover remote operating system data. More...

#include <osm_ag_tomcat.h>

Inheritance diagram for OSM_ACT_TomcatAvailability:

Inheritance graph
[legend]
Collaboration diagram for OSM_ACT_TomcatAvailability:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { OSM_MAX_ACTION_NAME_LEN = 8 }

Public Member Functions

int execute (const ACE_TCHAR *cmd_line, const int cmd_len, const int timeout, ACE_TCHAR *val_text, int &val_len, int &value)
int check_cmd_line (const ACE_TCHAR *cmd_line, const int cmd_len)
int is_name (const ACE_TCHAR *nm)
 Returns 1 if the name of the action is equal to the name in the parameter.
void set_name (const ACE_TCHAR *nm)
void instance (OSM_Instance_Base *ins)
const OSM_Instance_Baseinstance (void) const
void ev_parameters (const ACE_TCHAR *param)
const ACE_TCHAR * ev_parameters (void) const
const ACE_TCHAR * name (void) const

Detailed Description

This is to recover remote operating system data.

Definition at line 72 of file osm_ag_tomcat.h.


Member Function Documentation

int OSM_ACT_TomcatAvailability::execute ( const ACE_TCHAR *  cmd_line,
const int  cmd_len,
const int  timeout,
ACE_TCHAR *  val_text,
int &  val_len,
int &  value 
) [virtual]

Executes the action using the command line and returns the associated text and value.

Parameters:
cmd_line Input - Command line used to execute this action.
cmd_len Input - Command line length.
timeout Input - Wait timeout seconds before aborting execution.
val_text Output - Text of the resulting action.
val_len Output - Text length.
value Output - Final value of the action.
Return values:
-1 in case of error. 0 for success.

Reimplemented from OSM_ACT_ExecuteProcess.

Definition at line 476 of file osm_ag_tomcat.cpp.

References OSM_Instance_Tomcat::classpath(), OSM_ACT_ExecuteProcess::execute(), OSM_Instance_Tomcat::ip(), and OSM_Instance_Tomcat::port().

Here is the call graph for this function:

int OSM_ACT_ExecuteProcess::check_cmd_line ( const ACE_TCHAR *  cmd_line,
const int  cmd_len 
) [virtual, inherited]

Checks the command line. You should overwrite this method to handle issues like semantic and sintactic checking or security stuff.

Parameters:
cmd_line Input - Command line used to execute this action.
cmd_len Input - Command line length.
Return values:
-1 in case of error. 0 for success.

Reimplemented from OSM_Action_Base.

Reimplemented in OSM_ACT_HpuxProcessDown, OSM_ACT_HpuxFSUsed, OSM_ACT_Nslookup, OSM_ACT_LinuxProcessDown, and OSM_ACT_LinuxFSPUsed.

Definition at line 1137 of file osm_ag_insmanager.cpp.

void OSM_Action_Base::set_name ( const ACE_TCHAR *  nm  )  [inline, inherited]

Sets the name of the action.

Parameters:
nm Input - Name.

Definition at line 116 of file osm_ag_insmanager.h.

Referenced by OSM_Event::open().

void OSM_Action_Base::instance ( OSM_Instance_Base ins  )  [inline, inherited]

Sets the instance.

Parameters:
ins Input - Instance pointer.

Definition at line 126 of file osm_ag_insmanager.h.

const OSM_Instance_Base* OSM_Action_Base::instance ( void   )  const [inline, inherited]

Return a pointer to the instance.

Definition at line 134 of file osm_ag_insmanager.h.

void OSM_Action_Base::ev_parameters ( const ACE_TCHAR *  param  )  [inline, inherited]

Sets the parameters used in our Event config file.

Parameters:
param Input - Parameters (command line like).

Definition at line 143 of file osm_ag_insmanager.h.

Referenced by OSM_Event::open().

const ACE_TCHAR* OSM_Action_Base::ev_parameters ( void   )  const [inline, inherited]

Return pointer to parameters.

Definition at line 152 of file osm_ag_insmanager.h.

const ACE_TCHAR* OSM_Action_Base::name ( void   )  const [inline, inherited]

Return pointer to my name.

Definition at line 160 of file osm_ag_insmanager.h.


The documentation for this class was generated from the following files:
Generated on Thu Feb 21 18:39:34 2008 for Osmius by  doxygen 1.5.1