SubscriptionService<GFAppCfgEvent>
, java.io.Closeable
, java.lang.AutoCloseable
public class GFApplicationConfigurationManager extends java.lang.Object implements SubscriptionService<GFAppCfgEvent>, java.io.Closeable
newBuilder()
.Modifier and Type | Class | Description |
---|---|---|
protected class |
GFApplicationConfigurationManager.GFAppCfgEventImpl |
Internal implementation of Genesys CME application configuration manager event.
|
protected class |
GFApplicationConfigurationManager.GFApplicationContextImpl |
|
static class |
GFApplicationConfigurationManager.ManagerBuilder |
Dedicated builder for basic implementation of application configuration manager.
|
static class |
GFApplicationConfigurationManager.ManagerState |
Modifier and Type | Field | Description |
---|---|---|
protected GCOMApplicationConfiguration |
appConfig |
|
protected GFApplicationConfigurationManager.GFApplicationContextImpl |
appContext |
|
protected LmsEventLogger |
lmsLogger |
|
protected LmsLoggerFactory |
lmsLoggerFactory |
|
protected LmsMessageConveyor |
lmsMessageConveyor |
|
protected WarmStandby |
theWarmStandby |
Modifier | Constructor | Description |
---|---|---|
protected |
GFApplicationConfigurationManager(java.lang.String appName,
IConfService confService,
WarmStandby warmStandby,
boolean doCSSubscribe,
boolean readTenantInfo,
boolean doCSDispose) |
The protected constructor is to be used from inside of the builder infrastructure.
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
void |
done() |
Deprecated.
|
protected void |
doSubscription() |
|
IGApplicationConfiguration |
getAppConfiguration() |
|
GFApplicationContext |
getAppContext() |
|
java.lang.String |
getAppName() |
|
protected AsyncInvoker |
getInvoker() |
|
protected GCOMApplicationConfiguration |
getNewConfig() |
|
GFApplicationConfigurationManager.ManagerState |
getState() |
|
protected void |
handleEvent(GFAppCfgEvent appEvent) |
|
protected void |
handleEvent(GFAppCfgEvent appEvent,
java.lang.Runnable task) |
|
protected void |
handleTask(java.lang.Runnable task) |
|
void |
init() |
|
void |
init(boolean waitForConfiguration) |
|
protected void |
initLmsFactory(LmsMessageConveyor lmsMessages) |
|
protected boolean |
isAppConnected(IGApplicationConfiguration appConfig,
int appDbid) |
|
protected boolean |
isAppConnected(IGApplicationConfiguration appConfig,
int appDbid,
boolean checkClusterNodes) |
|
protected boolean |
isCurrentApp(IGApplicationConfiguration appConfig,
int appDbid) |
|
protected boolean |
isCurrentHost(IGApplicationConfiguration appConfig,
int hostDbid) |
|
protected boolean |
isHostConnected(IGApplicationConfiguration appConfig,
int hostDbid) |
|
protected boolean |
isHostConnected(IGApplicationConfiguration appConfig,
int hostDbid,
boolean checkClusterNodes) |
|
static GFApplicationConfigurationManager.ManagerBuilder |
newBuilder() |
Provides builder for application configuration manager instance.
Look at the builder documentation for the details on its usage - GFApplicationConfigurationManager.ManagerBuilder . |
protected void |
readTheApplication() |
|
void |
refresh(boolean waitForConfiguration) |
|
void |
register(Action<GFAppCfgEvent> handler,
Predicate<GFAppCfgEvent> filter) |
Registers an action to be performed when a publishing event occurs.
|
void |
register(Subscriber<GFAppCfgEvent> subscriber) |
Registers a subscriber for notifications about publishing event.
|
void |
unregister(Action<GFAppCfgEvent> handler) |
Unregisters a subscriber from notifications about publishing activities.
|
void |
unregister(Subscriber<GFAppCfgEvent> subscriber) |
Unregisters a subscriber from notifications about publishing activities.
|
protected GFApplicationConfigurationManager.GFApplicationContextImpl appContext
protected GCOMApplicationConfiguration appConfig
protected LmsMessageConveyor lmsMessageConveyor
protected LmsLoggerFactory lmsLoggerFactory
protected LmsEventLogger lmsLogger
protected WarmStandby theWarmStandby
protected GFApplicationConfigurationManager(java.lang.String appName, IConfService confService, WarmStandby warmStandby, boolean doCSSubscribe, boolean readTenantInfo, boolean doCSDispose)
appName
- name of the application to manage its configuration.confService
- the configuration service reference.warmStandby
- the WarmStandbyService created on the confServices protocol instance.newBuilder()
protected void initLmsFactory(LmsMessageConveyor lmsMessages)
public static GFApplicationConfigurationManager.ManagerBuilder newBuilder()
GFApplicationConfigurationManager.ManagerBuilder
.public GFApplicationConfigurationManager.ManagerState getState()
public java.lang.String getAppName()
public GFApplicationContext getAppContext()
public IGApplicationConfiguration getAppConfiguration() throws ConfigurationException, java.lang.IllegalStateException, java.lang.InterruptedException
ConfigurationException
java.lang.IllegalStateException
java.lang.InterruptedException
public void init() throws ConfigurationException, java.lang.IllegalStateException
ConfigurationException
java.lang.IllegalStateException
public void init(boolean waitForConfiguration) throws ConfigurationException, java.lang.IllegalStateException
ConfigurationException
java.lang.IllegalStateException
public void refresh(boolean waitForConfiguration) throws java.lang.IllegalStateException
java.lang.IllegalStateException
@Deprecated public void done() throws ConfigurationException
ConfigurationException
close()
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
public void register(Subscriber<GFAppCfgEvent> subscriber)
SubscriptionService
register
in interface SubscriptionService<GFAppCfgEvent>
subscriber
- interface of subscriber object being registeredpublic void register(Action<GFAppCfgEvent> handler, Predicate<GFAppCfgEvent> filter)
SubscriptionService
register
in interface SubscriptionService<GFAppCfgEvent>
handler
- represents the method that performs an action on the specified object
when a publishing event occursfilter
- filter predicate that allows checking whether publishing event should
be processed or ignoredpublic void unregister(Subscriber<GFAppCfgEvent> subscriber)
SubscriptionService
unregister
in interface SubscriptionService<GFAppCfgEvent>
subscriber
- interface of subscriber object being unregisteredpublic void unregister(Action<GFAppCfgEvent> handler)
SubscriptionService
unregister
in interface SubscriptionService<GFAppCfgEvent>
handler
- Represents the method that performs an action on the specified object
when a publishing event occursprotected void readTheApplication() throws ConfigurationException
ConfigurationException
java.lang.IllegalArgumentException
java.lang.IllegalStateException
protected GCOMApplicationConfiguration getNewConfig()
protected boolean isCurrentApp(IGApplicationConfiguration appConfig, int appDbid)
protected boolean isCurrentHost(IGApplicationConfiguration appConfig, int hostDbid)
protected boolean isAppConnected(IGApplicationConfiguration appConfig, int appDbid, boolean checkClusterNodes)
protected boolean isAppConnected(IGApplicationConfiguration appConfig, int appDbid)
protected boolean isHostConnected(IGApplicationConfiguration appConfig, int hostDbid, boolean checkClusterNodes)
protected boolean isHostConnected(IGApplicationConfiguration appConfig, int hostDbid)
protected AsyncInvoker getInvoker()
protected void handleEvent(GFAppCfgEvent appEvent)
protected void handleEvent(GFAppCfgEvent appEvent, java.lang.Runnable task)
protected void handleTask(java.lang.Runnable task)
protected void doSubscription()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.