In file MonServer/MonServer.hh:

class MonServer ifndef DMTOFFLINE : private lmsg AppServer endif

Monitor data server.

Inheritance:


Public Methods

MonServer (const char* Process=0)
Construct a monitor data base and register the server with the name server
virtual ~MonServer (void)
Close the server.
bool dataServed (void) const
Test whether data have been defined for service
void processMsg (void)
Process a message from the monitor input port
void Attention (void)
Monitor attention handler.
void serveData (const char* Name, const void* iVal, const char* Comm=0)
Serve a power spectrum.
void setServerName (const char* Name)
Set the server name
int getDebug (void) const
Get the debug flag valus
void setDebug (int lvl)
Set the debug flag
const Dictionary& refDictionary (void) const
Return a reference to the served dictionary data

Inherited from AppServer:

Public Methods

void addHandler(MsgHeader::MsgType type, MsgHandler* handle)
error_type close(void)
error_type handleMessage(void)
error_type open(long flags)
error_type receive(MsgHeader& hdr, void* data, size_type length, double timeout)
error_type receive(MsgHeader& hdr, void* data, size_type length)
error_type reply(const MsgHeader& to, const Message& data)
error_type reply(const MsgHeader& to, const MsgHeader& rhdr, const void* data)
error_type send(const MsgHeader& hdr, const Message& msg)
error_type send(const MsgHeader& hdr, const void* data)
bool waitMsg(wtime_type time)
bool isOpen(void) const
bool isRegistered(void) const
wtime_type getTimeOut(void) const
error_type register_name(const char* server, NameProcs type=p_Any)
void setDomainName(const char* domain)
void setServerPort(const MsgAddr& addr)
void setTimeOut(wtime_type time)

Documentation

The monitor data server API allows the user to specify data elements to be served on demand to clients. The monitor server maintains a list of the data elements and their names.
MonServer(const char* Process=0)
Construct a monitor data base and register the server with the name server

virtual ~MonServer(void)
Close the server port and unregister its name.

bool dataServed(void) const
Test whether data have been defined for service

void processMsg(void)
Process a message from the monitor input port

void Attention(void)
Handle the attention interrupt delivered to a monitor.

void serveData(const char* Name, const void* iVal, const char* Comm=0)
Specify a power spectrum to be served on demand. The power spectrum data are converted to Single-precision float numbers before being sent to the client.
Parameters:
Name - Data name
fs - Pointer to data to be served.
Comm - Comment supplied with index.

void setServerName(const char* Name)
Set the server name

int getDebug(void) const
Get the debug flag valus

void setDebug(int lvl)
Set the debug flag

const Dictionary& refDictionary(void) const
Return a reference to the served dictionary data


This class has no child classes.
Author:
John Zweizig
Version:
1.1; Modified April 20, 2000

alphabetic index hierarchy of classes


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++