Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

coherence/util/ServiceListener.hpp

00001 /*
00002 * ServiceListener.hpp
00003 *
00004 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
00005 *
00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
00007 * affiliates.
00008 *
00009 * This software is the confidential and proprietary information of Oracle
00010 * Corporation. You shall not disclose such confidential and proprietary
00011 * information and shall use it only in accordance with the terms of the
00012 * license agreement you entered into with Oracle.
00013 *
00014 * This notice may not be removed or altered.
00015 */
00016 #ifndef COH_SERVICE_LISTENER_HPP
00017 #define COH_SERVICE_LISTENER_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/util/EventListener.hpp"
00022 #include "coherence/util/ServiceEvent.hpp"
00023 
00024 COH_OPEN_NAMESPACE2(coherence,util)
00025 
00026 
00027 /**
00028 * The listener interface for receiving ServiceEvents.
00029 *
00030 * @see Service
00031 * @see ServiceEvent
00032 *
00033 * @author jh  2007.12.12
00034 */
00035 class COH_EXPORT ServiceListener
00036     : public interface_spec<ServiceListener,
00037         implements<EventListener> >
00038     {
00039     // ----- ServiceListener interface --------------------------------------
00040 
00041     public:
00042         /**
00043         * Invoked when a service is starting.
00044         *
00045         * @param vEvt  the ServiceEvent::service_starting event
00046         */
00047         virtual void serviceStarting(ServiceEvent::View vEvt) = 0;
00048 
00049         /**
00050         * Invoked when a service has started.
00051         *
00052         * @param vEvt  the ServiceEvent::service_started event
00053         */
00054         virtual void serviceStarted(ServiceEvent::View vEvt) = 0;
00055 
00056         /**
00057         * Invoked when a service is stopping.
00058         *
00059         * @param vEvt  the ServiceEvent::service_stopping event
00060         */
00061         virtual void serviceStopping(ServiceEvent::View vEvt) = 0;
00062 
00063         /**
00064         * Invoked when a service has stopped.
00065         *
00066         * @param vEvt  the ServiceEvent::service_stopped event
00067         */
00068         virtual void serviceStopped(ServiceEvent::View vEvt) = 0;
00069     };
00070 
00071 COH_CLOSE_NAMESPACE2
00072 
00073 #endif // COH_SERVICE_LISTENER_HPP
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.