#include <coherence/net/Service.hpp>
Inherits Service.
Inherited by CacheService [virtual]
, InvocationService [virtual]
, and NameService [virtual]
.
Public Types | |
typedef spec::Handle | Handle |
Service Handle definition. | |
typedef spec::View | View |
Service View definition. | |
typedef spec::Holder | Holder |
Service Holder definition. | |
Public Member Functions | |
virtual ServiceInfo::View | getInfo () const =0 |
Return the ServiceInfo object for this Service. | |
virtual void | addMemberListener (MemberListener::Handle hListener)=0 |
Add a Member listener. | |
virtual void | removeMemberListener (MemberListener::Handle hListener)=0 |
Remove a Member listener. | |
virtual Object::Holder | getUserContext () const =0 |
Return the user context object associated with this Service. | |
virtual void | setUserContext (Object::Holder ohCtx)=0 |
Associate a user context object with this Service. | |
virtual Serializer::View | getSerializer () const =0 |
Return a Serializer used by this Service. | |
virtual void | setThreadGroup (ThreadGroup::Handle hGroup)=0 |
Specifies the ThreadGroup within which the Service thread will be created. | |
virtual ThreadGroup::Handle | getThreadGroup ()=0 |
Return the ThreadGroup for the Daemon. | |
virtual ThreadGroup::View | getThreadGroup () const =0 |
Return the ThreadGroup for the Daemon. |
virtual ServiceInfo::View getInfo | ( | ) | const [pure virtual] |
virtual void addMemberListener | ( | MemberListener::Handle | hListener | ) | [pure virtual] |
Add a Member listener.
MemberListeners will be invoked in the order in which they are registered.
hListener | the MemberListener to add |
virtual void removeMemberListener | ( | MemberListener::Handle | hListener | ) | [pure virtual] |
virtual Object::Holder getUserContext | ( | ) | const [pure virtual] |
virtual void setUserContext | ( | Object::Holder | ohCtx | ) | [pure virtual] |
virtual Serializer::View getSerializer | ( | ) | const [pure virtual] |
virtual void setThreadGroup | ( | ThreadGroup::Handle | hGroup | ) | [pure virtual] |
Specifies the ThreadGroup within which the Service thread will be created.
If not specified, the current Thread's ThreadGroup will be used.
This property can only be set at runtime, and must be configured before start() is invoked to cause the Service thread to be created within the specified ThreadGroup.
hGroup | the group to use |
virtual ThreadGroup::Handle getThreadGroup | ( | ) | [pure virtual] |
Return the ThreadGroup for the Daemon.
virtual ThreadGroup::View getThreadGroup | ( | ) | const [pure virtual] |
Return the ThreadGroup for the Daemon.