|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.application.GFApplicationConfigurationManager
public class GFApplicationConfigurationManager
The Application Configuration Management component facade class.
It monitors given application configuration and configuration of its connected applications (servers), and notifies the application about changes of their properties in the Configuration Server. The application configuration manager instance may be created by using the builder -newBuilder()
.
ConfServiceFactory
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
protected GCOMApplicationConfiguration |
appConfig
|
protected GFApplicationConfigurationManager.GFApplicationContextImpl |
appContext
|
protected LmsEventLogger |
lmsLogger
|
protected LmsLoggerFactory |
lmsLoggerFactory
|
protected LmsMessageConveyor |
lmsMessageConveyor
|
protected java.util.concurrent.locks.Lock |
stateLock
|
protected WarmStandby |
theWarmStandby
|
Constructor Summary | |
---|---|
protected |
GFApplicationConfigurationManager(java.lang.String appName,
IConfService confService,
WarmStandby warmStandby,
boolean doCSSubscribe,
boolean doCSDispose)
Protected constructor to share some logic for the private constructor and constructor of eventual child classes. |
Method Summary | |
---|---|
void |
done()
|
protected void |
doSubscription()
|
GFApplicationContext |
getAppContext()
|
java.lang.String |
getAppName()
|
protected AsyncInvoker |
getInvoker()
|
protected GCOMApplicationConfiguration |
getNewConfig()
|
protected void |
handleEvent(GFAppCfgEvent appEvent)
|
protected void |
handleEvent(GFAppCfgEvent appEvent,
java.lang.Runnable task)
|
protected void |
handleTask(java.lang.Runnable task)
|
void |
init()
|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GFApplicationConfigurationManager.GFApplicationContextImpl appContext
protected final java.util.concurrent.locks.Lock stateLock
protected GCOMApplicationConfiguration appConfig
protected LmsMessageConveyor lmsMessageConveyor
protected LmsLoggerFactory lmsLoggerFactory
protected LmsEventLogger lmsLogger
protected WarmStandby theWarmStandby
Constructor Detail |
---|
protected GFApplicationConfigurationManager(java.lang.String appName, IConfService confService, WarmStandby warmStandby, boolean doCSSubscribe, 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.Method Detail |
---|
protected void initLmsFactory(LmsMessageConveyor lmsMessages)
public static GFApplicationConfigurationManager.ManagerBuilder newBuilder()
GFApplicationConfigurationManager.ManagerBuilder
.
public java.lang.String getAppName()
public GFApplicationContext getAppContext()
public void init() throws ConfigurationException
ConfigurationException
public void done() throws ConfigurationException
ConfigurationException
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()
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |