Base class for extra CASL Services
Inheritance:
Public Methods
-
virtual void close() = 0
- Called by CASL during service unloading.
-
std::ostream& debugs()
-
virtual ValueProxy doCommand(const char* command, Value* optParams)
- command pattern interpeter
-
std::ostream& errors()
-
std::ostream& fatals()
-
GradSoft::Logger& getLogger()
-
virtual ValueProxy getProperty(const char* name)
- get property, public API function.
-
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
-
std::ostream& infos()
-
virtual void init(ServerContext*)
- Called by CASL Deployment Container during Service Loading
-
virtual const char* name() const = 0
- Each service must provide name
-
virtual bool requireThread()
- it must be running in separate thread ?
-
virtual void run()
- if it need to run itself ?
-
virtual void setProperty(const char* name, const char* value)
- set property, called by CASL Engine.
-
void waitRun()
- If service must run in separate thread, wait for startup of this thread, otherwise - do nothing
-
std::ostream& warnings()
Protected Methods
-
NamedValues& getProperties()
- return properties
Documentation
Base class for extra CASL Services
virtual const char* name() const = 0
-
Each service must provide name
virtual void init(ServerContext*)
-
Called by CASL Deployment Container during Service Loading
virtual void run()
-
if it need to run itself ?
virtual bool requireThread()
-
it must be running in separate thread ?
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
void waitRun()
-
If service must run in separate thread, wait for startup of
this thread, otherwise - do nothing
virtual void close() = 0
-
Called by CASL during service unloading.
(note, that it maust destroy itself)
virtual 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
virtual 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).
virtual ValueProxy doCommand(const char* command, Value* optParams)
-
command pattern interpeter
NamedValues& getProperties()
-
return properties
GradSoft::Logger& getLogger()
std::ostream& debugs()
std::ostream& infos()
std::ostream& warnings()
std::ostream& errors()
std::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++.