(file) Return to DynamicListener.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / DynListener

  1 martin 1.5 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.6 //
  3 martin 1.5 // Licensed to The Open Group (TOG) under one or more contributor license
  4            // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5            // this work for additional information regarding copyright ownership.
  6            // Each contributor licenses this file to you under the OpenPegasus Open
  7            // Source License; you may not use this file except in compliance with the
  8            // License.
  9 martin 1.6 //
 10 martin 1.5 // Permission is hereby granted, free of charge, to any person obtaining a
 11            // copy of this software and associated documentation files (the "Software"),
 12            // to deal in the Software without restriction, including without limitation
 13            // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14            // and/or sell copies of the Software, and to permit persons to whom the
 15            // Software is furnished to do so, subject to the following conditions:
 16 martin 1.6 //
 17 martin 1.5 // The above copyright notice and this permission notice shall be included
 18            // in all copies or substantial portions of the Software.
 19 martin 1.6 //
 20 martin 1.5 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.6 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.5 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23            // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24            // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25            // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26            // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.6 //
 28 martin 1.5 //////////////////////////////////////////////////////////////////////////
 29 h.sterling 1.1 //
 30                //%/////////////////////////////////////////////////////////////////////////////
 31                
 32                #ifndef Pegasus_Dynamic_Listener_h
 33                #define Pegasus_Dynamic_Listener_h
 34                
 35                #include <Pegasus/Common/Config.h>
 36                #include <Pegasus/Common/String.h>
 37                #include <Pegasus/DynListener/Linkage.h>
 38                
 39                PEGASUS_NAMESPACE_BEGIN
 40                PEGASUS_USING_STD;
 41                
 42                class SSLContext;
 43                
 44                class PEGASUS_DYNLISTENER_LINKAGE DynamicListener
 45                {
 46                public:
 47                
 48                    static const Boolean DEFAULT_CONSUMER_UNLOAD;
 49 kumpf      1.7     static const Uint32 DEFAULT_IDLE_TIMEOUT;
 50 h.sterling 1.1     static const Boolean DEFAULT_FORCE_SHUTDOWN;
 51                    static const Uint32 DEFAULT_SHUTDOWN_TIMEOUT;
 52                
 53 kumpf      1.7     DynamicListener(Uint32 portNumber,
 54                                    const String& consumerDir,
 55 h.sterling 1.1                     const String& consumerConfigDir,
 56 kumpf      1.7                     Boolean enableConsumerUnload = DEFAULT_CONSUMER_UNLOAD,
 57                                    Uint32 consumerIdleTimeout = DEFAULT_IDLE_TIMEOUT,
 58 h.sterling 1.1                     Uint32 shutdownTimeout = DEFAULT_SHUTDOWN_TIMEOUT);
 59                
 60                #ifdef PEGASUS_HAS_SSL
 61 kumpf      1.7     DynamicListener(Uint32 portNumber,
 62 h.sterling 1.1                     const String& consumerDir,
 63                                    const String& consumerConfigDir,
 64 kumpf      1.7                     Boolean useSSL,
 65                                    const String& keyPath,
 66 h.sterling 1.1                     const String& certPath,
 67 kumpf      1.7                     Boolean enableConsumerUnload = DEFAULT_CONSUMER_UNLOAD,
 68                                    Uint32 consumerIdleTimeout = DEFAULT_IDLE_TIMEOUT,
 69 h.sterling 1.1                     Uint32 shutdownTimeout = DEFAULT_SHUTDOWN_TIMEOUT);
 70                
 71 kumpf      1.7     DynamicListener(Uint32 portNumber,
 72 h.sterling 1.1                     const String& consumerDir,
 73                                    const String& consumerConfigDir,
 74 kumpf      1.7                     Boolean useSSL,
 75 h.sterling 1.1                     SSLContext* sslContext,
 76 kumpf      1.7                     Boolean enableConsumerUnload = DEFAULT_CONSUMER_UNLOAD,
 77                                    Uint32 consumerIdleTimeout = DEFAULT_IDLE_TIMEOUT,
 78 h.sterling 1.1                     Uint32 shutdownTimeout = DEFAULT_SHUTDOWN_TIMEOUT);
 79                #endif
 80                
 81                    ~DynamicListener();
 82                
 83                    void start();
 84                
 85                    void stop(Boolean forceShutdown= DEFAULT_FORCE_SHUTDOWN);
 86                
 87                    Boolean isAlive();
 88                
 89 marek      1.4     Boolean addConsumer(
 90                                const String& consumerName,
 91                                const String& location = String::EMPTY);
 92 h.sterling 1.1 
 93                    Boolean removeConsumer(const String& consumerName);
 94                
 95                    Uint32 getPortNumber();
 96                
 97                    String getConsumerDir();
 98                
 99                    String getConsumerConfigDir();
100                
101                    void setEnableConsumerUnload(const Boolean enableConsumerUnload);
102                
103                    Boolean getEnableConsumerUnload();
104                
105 gs.keenan  1.2     void setIdleTimeout(Uint32 idleTimeout);
106 h.sterling 1.1 
107 kumpf      1.7     Uint32 getIdleTimeout();
108 h.sterling 1.1 
109                private:
110                    void* _rep;
111                
112                };
113                
114                PEGASUS_NAMESPACE_END
115                
116                #endif /* Pegasus_Dynamic_Listener_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2