Config Class Reference
[Config_mod]

class for config_mod

The class is handling the remote configuration requests More...

#include <config.h>

List of all members.

Public Member Functions

virtual int registerVar (ConfigVariable *cv)
 registerVar
int configAddCommand ()
int remoteCall (std::string variableName, std::string variableValue, std::string nodeList)

Static Public Member Functions

static int remoteconfig_command_fn (ShellClient &sc, void *data, int argc, char **argv)
static int requestHandler (void *data, ReadMarshalStream *msIn, WriteMarshalStream *msOut, const awds::NodeId &src)
 requestHandler
static int responseHandler (void *data, ReadMarshalStream *msIn, const awds::NodeId &src)
 responseHandler
static void requestCreator (void *data, WriteMarshalStream *msOut)
 requestCreator
static void finishedHandler (void *data)
 finishedHandler

Protected Types

typedef std::map< std::string,
ConfigVariable * > 
VariablesMap

Protected Attributes

VariablesMap remoteVariables
std::map< gea::AbsTime,
unsigned int > 
requests
std::map< gea::AbsTime,
std::string > 
response


Detailed Description

class for config_mod

The class is handling the remote configuration requests


Member Function Documentation

void Config::finishedHandler ( void *  data  )  [static]

finishedHandler

This function is the callback if the broadcast is complete

Parameters:
data the data Provided through the spp call

int Config::registerVar ( ConfigVariable *  cv  )  [virtual]

registerVar

This function registers the ConfigVariable at the Configuration class

Parameters:
cv the ConfigVariable
Returns:
statuscode

void Config::requestCreator ( void *  data,
WriteMarshalStream *  msOut 
) [static]

requestCreator

This function builds/marshals the message to be send to the awds Nodes

Parameters:
data the data to be processed
msOut the stream to write to

int Config::requestHandler ( void *  data,
ReadMarshalStream *  msIn,
WriteMarshalStream *  msOut,
const awds::NodeId src 
) [static]

requestHandler

This Function Handles the incoming requests reads from msIn und writes the outgoing message to msOut

Parameters:
data the data send through the SPP module
msIn the incoming marshalstream
msOut the outboing marshalstream
src the origin of the message
Returns:
statuscode

int Config::responseHandler ( void *  data,
ReadMarshalStream *  msIn,
const awds::NodeId src 
) [static]

responseHandler

This function handels the responses of the (remote) nodes

Parameters:
data the ConfigVariable
msIn the stream containing the message
src the Origin of the Message
Returns:
statuscode


The documentation for this class was generated from the following files:

Generated on Fri Mar 27 13:58:26 2009 for AWDS by  doxygen 1.5.8