Service Class Reference

#include <coherence/net/Service.hpp>

Inherits Service.

Inherited by CacheService [virtual], and InvocationService [virtual].

List of all members.


Detailed Description

This Service interface represents a controllable service that operates in a clustered network environment.

Author:
jh 2007.12.20

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.

Member Function Documentation

virtual ServiceInfo::View getInfo (  )  const [pure virtual]

Return the ServiceInfo object for this Service.

Returns:
the ServiceInfo object

virtual void addMemberListener ( MemberListener::Handle  hListener  )  [pure virtual]

Add a Member listener.

Parameters:
hListener the MemberListener to add

virtual void removeMemberListener ( MemberListener::Handle  hListener  )  [pure virtual]

Remove a Member listener.

Parameters:
hListener the MemberListener to remove

virtual Object::Holder getUserContext (  )  const [pure virtual]

Return the user context object associated with this Service.

The data type and semantics of this context object are entirely application specific and are opaque to the Service itself.

Returns:
an associated user contex object or NULL if a context has not been set

virtual void setUserContext ( Object::Holder  ohCtx  )  [pure virtual]

Associate a user context object with this Service.

Parameters:
ohCtx a user context object

virtual Serializer::View getSerializer (  )  const [pure virtual]

Return a Serializer used by this Service.

Returns:
the Serializer object
Since:
Coherence 3.4


The documentation for this class was generated from the following file: Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.