OSM_ACT_LinuxTCPRetrans Class Reference

This action retrieves tcp_segments retransmited per second. More...

#include <osm_ag_linux.h>

Inheritance diagram for OSM_ACT_LinuxTCPRetrans:

Inheritance graph
[legend]
Collaboration diagram for OSM_ACT_LinuxTCPRetrans:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { OSM_MAX_ACTION_NAME_LEN = 8 }

Public Member Functions

 OSM_ACT_LinuxTCPRetrans ()
 Constructor.
int execute (const ACE_TCHAR *cmd_line, const int cmd_len, const int timeout, ACE_TCHAR *val_text, int &val_len, int &value)
int is_name (const ACE_TCHAR *nm)
 Returns 1 if the name of the action is equal to the name in the parameter.
virtual int check_cmd_line (const ACE_TCHAR *cmd_line, const int cmd_len)
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 action retrieves tcp_segments retransmited per second.

Definition at line 284 of file osm_ag_linux.h.


Member Function Documentation

int OSM_ACT_LinuxTCPRetrans::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.

Reimplement this way to get retransmissions.

Implements OSM_Action_Base.

Definition at line 970 of file osm_ag_linux.cpp.

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

Checks the command line. You should overwrite this method to handle issues like semantic and sintactic checking or security stuff. E.g. You could return error if your SQL string contains the words UPDATE, DELETE or INSERT.

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 in OSM_ACT_ExecuteProcess, OSM_ACT_ScanLog, OSM_ACT_HpuxNull, OSM_ACT_HpuxProcessDown, OSM_ACT_HpuxFSUsed, OSM_ACT_HTTPTextChecker, OSM_ACT_HTTPGet200, OSM_ACT_FTPGet220, OSM_ACT_TelnetGetStr, OSM_ACT_SSHGetSSH, OSM_ACT_SMTPGet220, OSM_ACT_POPGetOK, OSM_ACT_IMAPGetOK, OSM_ACT_Nslookup, OSM_ACT_LinuxNull, OSM_ACT_LinuxProcessDown, OSM_ACT_LinuxFSPUsed, OSM_ACT_SearchLog, OSM_ACT_MYSQLQuery, OSM_ACT_ORASQLQuery, and OSM_ACT_TomcatDeployed.

Definition at line 110 of file osm_ag_insmanager.h.

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:33 2008 for Osmius by  doxygen 1.5.1