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

  1 kumpf 1.1 //%2006////////////////////////////////////////////////////////////////////////
  2           //
  3           // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4           // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5           // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6           // IBM Corp.; EMC Corporation, The Open Group.
  7           // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8           // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9           // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10           // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11           // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12           // EMC Corporation; Symantec Corporation; The Open Group.
 13           //
 14           // Permission is hereby granted, free of charge, to any person obtaining a copy
 15           // of this software and associated documentation files (the "Software"), to
 16           // deal in the Software without restriction, including without limitation the
 17           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18           // sell copies of the Software, and to permit persons to whom the Software is
 19           // furnished to do so, subject to the following conditions:
 20           // 
 21           // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 kumpf 1.1 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29           //
 30           //==============================================================================
 31           //
 32           //%/////////////////////////////////////////////////////////////////////////////
 33           
 34           #ifndef Pegasus_ProviderManagerRouter_h
 35           #define Pegasus_ProviderManagerRouter_h
 36           
 37           #include <Pegasus/Common/Config.h>
 38           #include <Pegasus/Common/Message.h>
 39           #include <Pegasus/ProviderManagerService/Linkage.h>
 40           
 41           PEGASUS_NAMESPACE_BEGIN
 42           
 43 kumpf 1.1 class PEGASUS_PMS_LINKAGE ProviderManagerRouter
 44           {
 45           public:
 46               ProviderManagerRouter();
 47               virtual ~ProviderManagerRouter();
 48           
 49               /**
 50                   Process the specified message by routing it to the appropriate
 51                   ProviderManager.  Note: This operation may take a long time to
 52                   complete and should be called on a non-critical thread.
 53                */
 54               virtual Message* processMessage(Message* message) = 0;
 55           
 56               /**
 57                   Indicates whether any of the active ProviderManagers managed by this
 58                   ProviderManagerRouter has an active (e.g., loaded/initialized)
 59                   provider.  If no providers are active, this ProviderManagerRouter
 60                   may be destructed without harm.
 61                */
 62               virtual Boolean hasActiveProviders() = 0;
 63           
 64 kumpf 1.1     /**
 65                   Unload idle providers in all active ProviderManagers.
 66                   Note: This operation may take a long time to complete and should
 67                   be called on a non-critical thread.
 68                */
 69               virtual void unloadIdleProviders() = 0;
 70           
 71               /**
 72                   Sets the SubscriptionInitComplete flag indicating whether the Indication
 73                   Service has completed its initialization.
 74                */
 75               virtual void setSubscriptionInitComplete
 76                   (Boolean subscriptionInitComplete);
 77           
 78           protected:
 79               /**
 80                   Indicates whether the Indication Service has completed initialization.
 81                   During initialization, the Indication Service processes all active
 82                   subscriptions from the repository, sending Create Subscription requests
 83                   to the appropriate indication providers, and the providers'
 84                   enableIndications method must be called only after all the Create
 85 kumpf 1.1         Subscription requests have been processed.  Once Indication Service
 86                   initialization is complete, the Indication Service sends the Provider
 87                   Manager Service a Subscription Initialization Complete request message.
 88                   At that time, the enableIndications method must be called on each 
 89                   provider with current subscriptions.  Subsequently, the 
 90                   enableIndications method must be called only after the first 
 91                   subscription is created for a provider, and the disableIndications 
 92                   method must be called when the last subscription is deleted for a 
 93                   provider.
 94                */
 95               Boolean _subscriptionInitComplete;
 96           };
 97           
 98           PEGASUS_NAMESPACE_END
 99           
100           #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2