class CASL::Service

Base class for extra CASL Services

Inheritance:


Public Methods

[more]virtual void close() = 0
Called by CASL during service unloading.
[more]std::ostream& debugs()
[more]virtual ValueProxy doCommand(const char* command, Value* optParams)
command pattern interpeter
[more]std::ostream& errors()
[more]std::ostream& fatals()
[more]GradSoft::Logger& getLogger()
[more]virtual ValueProxy getProperty(const char* name)
get property, public API function.
[more]GradSoft::Thread::id_type getThreadId()
return id of thread, in which service is run; if service does not enter in run method yet, return -1
[more]std::ostream& infos()
[more]virtual void init(ServerContext*)
Called by CASL Deployment Container during Service Loading
[more]virtual const char* name() const = 0
Each service must provide name
[more]virtual bool requireThread()
it must be running in separate thread ?
[more]virtual void run()
if it need to run itself ?
[more]virtual void setProperty(const char* name, const char* value)
set property, called by CASL Engine.
[more]void waitRun()
If service must run in separate thread, wait for startup of this thread, otherwise - do nothing
[more]std::ostream& warnings()

Protected Methods

[more]NamedValues& getProperties()
return properties


Documentation

Base class for extra CASL Services
ovirtual const char* name() const = 0
Each service must provide name

ovirtual void init(ServerContext*)
Called by CASL Deployment Container during Service Loading

ovirtual void run()
if it need to run itself ?

ovirtual bool requireThread()
it must be running in separate thread ?

oGradSoft::Thread::id_type getThreadId()
return id of thread, in which service is run; if service does not enter in run method yet, return -1

ovoid waitRun()
If service must run in separate thread, wait for startup of this thread, otherwise - do nothing

ovirtual void close() = 0
Called by CASL during service unloading. (note, that it maust destroy itself)

ovirtual ValueProxy getProperty(const char* name)
get property, public API function.
Throws:
NamedValue::NameNotFound , if such property does not exists.
Parameters:
- name name of property
Returns:
s value of property

ovirtual void setProperty(const char* name, const char* value)
set property, called by CASL Engine. (note, that we pass memory ownership on name and value to owner).

ovirtual ValueProxy doCommand(const char* command, Value* optParams)
command pattern interpeter

oNamedValues& getProperties()
return properties

oGradSoft::Logger& getLogger()

ostd::ostream& debugs()

ostd::ostream& infos()

ostd::ostream& warnings()

ostd::ostream& errors()

ostd::ostream& fatals()


Direct child classes:
XMLService
SessionService
Friends:
class ServerContext
class RunServiceThread

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.