public class ClientCacheFactoryBean extends CacheFactoryBean implements ApplicationListener<ContextRefreshedEvent>
FactoryBean は、Pivotal GemFire/Apache Geode ClientCache を作成するために使用されます。InetSocketAddressSE, GemFireCache、ClientCache、ClientCacheFactory、Pool、PoolManager、DistributedSystem、PdxSerializer, BeanFactory, ApplicationContext, ApplicationListener, ContextRefreshedEvent, CacheFactoryBean, ClientCacheConfigurer, ConnectionEndpoint, ConnectionEndpointListCacheFactoryBean.CacheFactoryInitializer<T>, CacheFactoryBean.DynamicRegionSupport, CacheFactoryBean.JndiDataSource| 修飾子と型 | フィールドと説明 |
|---|---|
protected static PoolResolver | DEFAULT_POOL_RESOLVER |
beanFactoryLocatorDEFAULT_SINGLETONOBJECT_TYPE_ATTRIBUTE| コンストラクターと説明 |
|---|
ClientCacheFactoryBean() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | addLocators(ConnectionEndpoint... locators) |
void | addLocators(IterableSE<ConnectionEndpoint> locators) |
void | addServers(ConnectionEndpoint... servers) |
void | addServers(IterableSE<ConnectionEndpoint> servers) |
protected void | applyCacheConfigurers() 複合 ClientCacheConfigurers をこの ClientCacheFactoryBean に適用します。 |
protected void | applyClientCacheConfigurers(ClientCacheConfigurer... clientCacheConfigurers) 指定された ClientCacheConfigurers の配列をこの ClientCacheFactoryBean に適用する null セーフな操作。 |
protected void | applyClientCacheConfigurers(IterableSE<ClientCacheConfigurer> clientCacheConfigurers) |
protected void | close(org.apache.geode.cache.GemFireCache cache)ClientCache を閉じて耐久性を維持するために使用される Null セーフな内部メソッド。 |
protected ObjectSE | configureFactory(ObjectSE factory)ClientCache を作成するために使用される ClientCacheFactory を構成します。 |
protected <T extends org.apache.geode.cache.GemFireCache> | createCache(ObjectSE factory) 提供されたファクトリを使用して新しい ClientCache インスタンスを作成します。 |
protected ObjectSE | createFactory(PropertiesSE gemfireProperties)ClientCache のインスタンスを構築、構成、初期化するために使用される、指定された Pivotal GemFire/Apache Geode PropertiesSE で初期化された ClientCacheFactory の新しいインスタンスを構築します。 |
protected <T extends org.apache.geode.cache.GemFireCache> | fetchCache()ClientCacheFactory から既存の ClientCache インスタンスを取得します。 |
ClientCacheConfigurer | getCompositeClientCacheConfigurer()Spring コンテナーの初期化時にこの ClientCacheFactoryBean に追加構成を適用するために使用される複合 ClientCacheConfigurer への参照を返します。 |
StringSE | getDurableClientId() このクライアントが永続的かどうかをサーバーに示す Pivotal GemFire システムプロパティ 'durable-client-id' の値を取得します。 |
IntegerSE | getDurableClientTimeout() 切断時に永続クライアントのイベントを追跡する期間をサーバーに指示する Pivotal GemFire システムプロパティ "durable-client-timeout" の値を取得します。 |
BooleanSE | getEnableAutoReconnect() 自動再接続設定の値を取得します。 |
IntegerSE | getFreeConnectionTimeout() |
LongSE | getIdleTimeout() |
BooleanSE | getKeepAlive() クライアントが自発的に切断したときに、タイムアウトの間、サーバーが永続クライアントのキューを維持するかどうかを指定するユーザー指定の値を取得します。 |
IntegerSE | getLoadConditioningInterval() |
protected ConnectionEndpointList | getLocators() |
IntegerSE | getMaxConnections() |
IntegerSE | getMinConnections() |
BooleanSE | getMultiUserAuthentication() |
ClassSE<? extends org.apache.geode.cache.GemFireCache> | getObjectType() |
LongSE | getPingInterval() |
org.apache.geode.cache.client.Pool | getPool() この ClientCache が Apache Geode クラスターへの接続を取得するために使用する Pool を取得します。 |
StringSE | getPoolName() |
@NonNull PoolResolver | getPoolResolver() |
BooleanSE | getPrSingleHopEnabled() |
IntegerSE | getReadTimeout() |
BooleanSE | getReadyForEvents()readyForEvents プロパティのユーザー指定の値を取得します。 |
IntegerSE | getRetryAttempts() |
StringSE | getServerGroup() |
protected ConnectionEndpointList | getServers() |
IntegerSE | getSocketBufferSize() |
IntegerSE | getSocketConnectTimeout() |
IntegerSE | getStatisticsInterval() |
IntegerSE | getSubscriptionAckInterval() |
BooleanSE | getSubscriptionEnabled() |
IntegerSE | getSubscriptionMessageTrackingTimeout() |
IntegerSE | getSubscriptionRedundancy() |
BooleanSE | getThreadLocalConnections() |
BooleanSE | getUseClusterConfiguration()use-shared-configuration Pivotal GemFire/Apache Geode 配布構成設定の状態を返します。 |
boolean | isKeepAlive() クライアントが自発的に切断したときに、タイムアウトの間、サーバーが永続クライアントのキューを維持するかどうかを決定します。 |
boolean | isReadyForEvents() この Pivotal GemFire キャッシュクライアントがイベントの準備ができているかどうかを判断します。 |
void | onApplicationEvent(ContextRefreshedEvent event) クライアントが非永続的である場合に、このキャッシュクライアントがイベントを受信する準備ができていることを Pivotal GemFire/Apache Geode クラスターに通知します。 |
protected PropertiesSE | resolveProperties()ClientCache を構成するために使用される Pivotal GemFire/Apache Geode PropertiesSE を解決します。 |
void | setClientCacheConfigurers(ClientCacheConfigurer... clientCacheConfigurers) アノテーションベースの構成を使用する場合に、この ClientCacheFactoryBean に追加の構成を適用するために使用される ClientCacheConfigurers の配列を設定する null セーフ操作。 |
void | setClientCacheConfigurers(ListSE<ClientCacheConfigurer> peerCacheConfigurers) アノテーションベースの構成を使用するときに、この ClientCacheFactoryBean に追加の構成を適用するために ClientCacheConfigurers の IterableSE を設定する null セーフ操作。 |
void | setDurableClientId(StringSE durableClientId)Pivotal GemFire システムプロパティ "durable-client-id" を設定して、このクライアントが永続的であることをサーバーに示します。 |
void | setDurableClientTimeout(IntegerSE durableClientTimeout)Pivotal GemFire システムプロパティ "durable-client-timeout" を設定し、切断時に永続クライアントのイベントを追跡する期間をサーバーに指示します。 |
void | setEnableAutoReconnect(BooleanSE enableAutoReconnect)Pivotal GemFire 8 で導入された自動再接続機能を有効にするかどうかを制御します。 |
void | setFreeConnectionTimeout(IntegerSE freeConnectionTimeout) |
void | setIdleTimeout(LongSE idleTimeout) |
void | setKeepAlive(BooleanSE keepAlive) クライアントが自発的に切断したときに、タイムアウトの間、サーバーが永続クライアントのキューを維持するかどうかを設定します。 |
void | setLoadConditioningInterval(IntegerSE loadConditioningInterval) |
void | setLocators(ConnectionEndpoint[] locators) |
void | setLocators(IterableSE<ConnectionEndpoint> locators) |
void | setMaxConnections(IntegerSE maxConnections) |
void | setMinConnections(IntegerSE minConnections) |
void | setMultiUserAuthentication(BooleanSE multiUserAuthentication) |
void | setPingInterval(LongSE pingInterval) |
void | setPool(org.apache.geode.cache.client.Pool pool)Apache Geode クラスターへの接続を取得するためにこの ClientCache によって使用される Pool を設定します。 |
void | setPoolName(StringSE poolName) |
void | setPoolResolver(PoolResolver poolResolver) |
void | setPrSingleHopEnabled(BooleanSE prSingleHopEnabled) |
void | setReadTimeout(IntegerSE readTimeout) |
void | setReadyForEvents(BooleanSE readyForEvents)readyForEvents プロパティを設定して、キャッシュクライアントが更新を受信する準備ができたことをサーバーに通知するかどうかを示します。 |
void | setRetryAttempts(IntegerSE retryAttempts) |
void | setServerGroup(StringSE serverGroup) |
void | setServers(ConnectionEndpoint[] servers) |
void | setServers(IterableSE<ConnectionEndpoint> servers) |
void | setSocketBufferSize(IntegerSE socketBufferSize) |
void | setSocketConnectTimeout(IntegerSE socketConnectTimeout) |
void | setStatisticsInterval(IntegerSE statisticsInterval) |
void | setSubscriptionAckInterval(IntegerSE subscriptionAckInterval) |
void | setSubscriptionEnabled(BooleanSE subscriptionEnabled) |
void | setSubscriptionMessageTrackingTimeout(IntegerSE subscriptionMessageTrackingTimeout) |
void | setSubscriptionRedundancy(IntegerSE subscriptionRedundancy) |
void | setThreadLocalConnections(BooleanSE threadLocalConnections) |
void | setUseClusterConfiguration(BooleanSE useClusterConfiguration)use-shared-configuration Pivotal GemFire/Apache Geode 配布構成設定の状態を設定します。 |
afterPropertiesSet, applyPeerCacheConfigurers, applyPeerCacheConfigurers, destroy, getBeanFactoryLocator, getCache, getCacheFactoryInitializer, getCacheXml, getCompositePeerCacheConfigurer, getCopyOnRead, getCriticalHeapPercentage, getCriticalOffHeapPercentage, getDynamicRegionSupport, getEvictionHeapPercentage, getEvictionOffHeapPercentage, getGatewayConflictResolver, getJndiDataSources, getLockLease, getLockTimeout, getMessageSyncInterval, getObject, getPdxDiskStoreName, getPdxIgnoreUnreadFields, getPdxPersistent, getPdxReadSerialized, getPdxSerializer, getPhase, getProperties, getSearchTimeout, getSecurityManager, getTransactionListeners, getTransactionWriter, initializeFactory, isClose, isUseBeanFactoryLocator, postProcess, postProcess, resolveCache, setAndGetProperties, setCache, setCacheFactoryInitializer, setCacheXml, setClose, setCopyOnRead, setCriticalHeapPercentage, setCriticalOffHeapPercentage, setDynamicRegionSupport, setEvictionHeapPercentage, setEvictionOffHeapPercentage, setGatewayConflictResolver, setJndiDataSources, setLockLease, setLockTimeout, setMessageSyncInterval, setPdxDiskStoreName, setPdxIgnoreUnreadFields, setPdxPersistent, setPdxReadSerialized, setPdxSerializer, setPeerCacheConfigurers, setPeerCacheConfigurers, setPhase, setProperties, setSearchTimeout, setSecurityManager, setTransactionListeners, setTransactionWriter, setUseBeanFactoryLocator, translateExceptionIfPossiblegetBeanClassLoader, getBeanFactory, getBeanName, getLog, isSingleton, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarning, logWarning, newLog, setBeanClassLoader, setBeanFactory, setBeanNamecloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected static final PoolResolver DEFAULT_POOL_RESOLVER
protected void applyCacheConfigurers()
ClientCacheConfigurers をこの ClientCacheFactoryBean に適用します。protected void applyClientCacheConfigurers(ClientCacheConfigurer... clientCacheConfigurers)
ClientCacheConfigurers の配列をこの ClientCacheFactoryBean に適用する null セーフな操作。clientCacheConfigurers - この ClientCacheFactoryBean に適用される ClientCacheConfigurers の配列。ClientCacheConfigurer, applyClientCacheConfigurers(Iterable)protected void applyClientCacheConfigurers(IterableSE<ClientCacheConfigurer> clientCacheConfigurers)
clientCacheConfigurers - この ClientCacheFactoryBean には IterableSE または ClientCacheConfigurers が適用されます。ClientCacheConfigurer, IterableSEprotected <T extends org.apache.geode.cache.GemFireCache> T fetchCache()
ClientCacheFactory から既存の ClientCache インスタンスを取得します。CacheFactoryBean の fetchCache T - GemFireCache のパラメーター化された ClassSE 型拡張。ClientCache インスタンス(使用可能な場合)。org.apache.geode.cache.CacheClosedException - 既存の ClientCache インスタンスが存在しない場合。ClientCacheFactory.getAnyInstance(), GemFireCache, CacheFactoryBean.getCache()protected PropertiesSE resolveProperties()
ClientCache を構成するために使用される Pivotal GemFire/Apache Geode PropertiesSE を解決します。CacheFactoryBean の resolveProperties ClientCache を構成するために使用される解決済みの Pivotal GemFire/Apache Geode PropertiesSE。DistributedSystem.getProperties(), getDistributedSystem()protected ObjectSE createFactory(PropertiesSE gemfireProperties)
ClientCache のインスタンスを構築、構成、初期化するために使用される、指定された Pivotal GemFire/Apache Geode PropertiesSE で初期化された ClientCacheFactory の新しいインスタンスを構築します。CacheFactoryBean の createFactory gemfireProperties - ClientCacheFactory が ClientCache を構成するために使用する PropertiesSE。PropertiesSE で初期化された ClientCacheFactory の新しいインスタンス。ClientCacheFactory, PropertiesSEprotected ObjectSE configureFactory(ObjectSE factory)
ClientCache を作成するために使用される ClientCacheFactory を構成します。ユーザーが指定した PDX オプションを設定します。ユーザーが指定したプールオプションを設定します。CacheFactoryBean の configureFactory factory - ClientCacheFactory は ClientCache を作成するために使用されます。ClientCacheFactory。configurePdx(ClientCacheFactory)protected <T extends org.apache.geode.cache.GemFireCache> T createCache(ObjectSE factory)
ClientCache インスタンスを作成します。CacheFactoryBean の createCache T - GemFireCache のパラメーター化された ClassSE 型拡張。factory - ClientCacheFactory のインスタンス。ClientCache の新しいインスタンス。ClientCacheFactory.create(), GemFireCachepublic void onApplicationEvent(ContextRefreshedEvent event)
ApplicationListener<ContextRefreshedEvent> 内の onApplicationEvent event - ApplicationContext がリフレッシュされると、ApplicationContextEvent が起動されます。ClientCache.readyForEvents(), isReadyForEvents(), fetchCache()protected void close(org.apache.geode.cache.GemFireCache cache)
ClientCache を閉じて耐久性を維持するために使用される Null セーフな内部メソッド。CacheFactoryBean の close cache - GemFireCache が終了します。ClientCache.close(boolean), isKeepAlive()public ClassSE<? extends org.apache.geode.cache.GemFireCache> getObjectType()
FactoryBean<org.apache.geode.cache.GemFireCache> 内の getObjectType CacheFactoryBean の getObjectType ClientCacheFactoryBean によって生成される GemFireCache の ClassSE 型。FactoryBean.getObjectType()public void addLocators(ConnectionEndpoint... locators)
public void addLocators(IterableSE<ConnectionEndpoint> locators)
public void addServers(ConnectionEndpoint... servers)
public void addServers(IterableSE<ConnectionEndpoint> servers)
public void setClientCacheConfigurers(ClientCacheConfigurer... clientCacheConfigurers)
ClientCacheFactoryBean に追加の構成を適用するために使用される ClientCacheConfigurers の配列を設定する null セーフ操作。clientCacheConfigurers - この ClientCacheFactoryBean に追加の構成を適用するために使用される ClientCacheConfigurers の配列。ClientCacheConfigurer, setClientCacheConfigurers(List)public void setClientCacheConfigurers(ListSE<ClientCacheConfigurer> peerCacheConfigurers)
ClientCacheFactoryBean に追加の構成を適用するために ClientCacheConfigurers の IterableSE を設定する null セーフ操作。peerCacheConfigurers - ClientCacheConfigurers の IterableSE は、この ClientCacheFactoryBean に追加の構成を適用するために使用されます。ClientCacheConfigurerpublic ClientCacheConfigurer getCompositeClientCacheConfigurer()
ClientCacheFactoryBean に追加構成を適用するために使用される複合 ClientCacheConfigurer への参照を返します。ClientCacheConfigurer。ClientCacheConfigurerpublic void setDurableClientId(StringSE durableClientId)
durableClientId - 永続的なクライアント ID を示す文字列値。public StringSE getDurableClientId()
public void setDurableClientTimeout(IntegerSE durableClientTimeout)
durableClientTimeout - サーバーが永続クライアントのキューを保持するタイムアウトを秒単位で示す整数値。public IntegerSE getDurableClientTimeout()
public final void setEnableAutoReconnect(BooleanSE enableAutoReconnect)
CacheFactoryBeanCacheFactoryBean の setEnableAutoReconnect enableAutoReconnect - 自動再接続機能を有効 / 無効にするブール値。public final BooleanSE getEnableAutoReconnect()
CacheFactoryBeanCacheFactoryBean の getEnableAutoReconnect public void setFreeConnectionTimeout(IntegerSE freeConnectionTimeout)
public IntegerSE getFreeConnectionTimeout()
public void setIdleTimeout(LongSE idleTimeout)
public LongSE getIdleTimeout()
public void setKeepAlive(BooleanSE keepAlive)
keepAlive - 永続クライアントのキューを存続させるようにサーバーに指示するブール値。public BooleanSE getKeepAlive()
public boolean isKeepAlive()
public void setLoadConditioningInterval(IntegerSE loadConditioningInterval)
public IntegerSE getLoadConditioningInterval()
public void setLocators(ConnectionEndpoint[] locators)
public void setLocators(IterableSE<ConnectionEndpoint> locators)
protected ConnectionEndpointList getLocators()
public void setMaxConnections(IntegerSE maxConnections)
public IntegerSE getMaxConnections()
public void setMinConnections(IntegerSE minConnections)
public IntegerSE getMinConnections()
public void setMultiUserAuthentication(BooleanSE multiUserAuthentication)
public BooleanSE getMultiUserAuthentication()
public void setPool(org.apache.geode.cache.client.Pool pool)
ClientCache によって使用される Pool を設定します。pool - この ClientCache が Apache Geode クラスターへの接続を取得するために使用する Pool。Poolpublic org.apache.geode.cache.client.Pool getPool()
ClientCache が Apache Geode クラスターへの接続を取得するために使用する Pool を取得します。ClientCache が Apache Geode クラスターへの接続を取得するために使用する Pool。Poolpublic void setPoolName(StringSE poolName)
poolName - この ClientCache が Apache Geode クラスターへの接続を取得するために使用する Pool の nameSE。public StringSE getPoolName()
ClientCache が Apache Geode クラスターへの接続を取得するために使用する Pool の nameSE。public void setPoolResolver(@Nullable PoolResolver poolResolver)
ClientCache が Pool オブジェクトを解決するために使用する PoolResolver を設定 (構成) します。Pool オブジェクトは、PoolResolver の実装に応じて、管理対象または管理対象外になります。poolResolver - 構成された Pool を解決するために使用される PoolResolver。PoolResolver@NonNull public @NonNull PoolResolver getPoolResolver()
PoolResolver。PoolResolver が構成されていない場合は、デフォルトの PoolManagerPoolResolver を返します。PoolResolver, PoolManagerPoolResolverpublic void setPingInterval(LongSE pingInterval)
public LongSE getPingInterval()
public void setPrSingleHopEnabled(BooleanSE prSingleHopEnabled)
public BooleanSE getPrSingleHopEnabled()
public void setReadTimeout(IntegerSE readTimeout)
public IntegerSE getReadTimeout()
public void setReadyForEvents(BooleanSE readyForEvents)
readyForEvents - この永続クライアントが更新を受信する準備ができていることをサーバーに通知するためのブールフラグを設定します。getReadyForEvents()public BooleanSE getReadyForEvents()
public boolean isReadyForEvents()
CacheUtils.isDurable(ClientCache), getReadyForEvents()public void setRetryAttempts(IntegerSE retryAttempts)
public IntegerSE getRetryAttempts()
public void setServerGroup(StringSE serverGroup)
public StringSE getServerGroup()
public void setServers(ConnectionEndpoint[] servers)
public void setServers(IterableSE<ConnectionEndpoint> servers)
protected ConnectionEndpointList getServers()
public void setSocketBufferSize(IntegerSE socketBufferSize)
public IntegerSE getSocketBufferSize()
public void setSocketConnectTimeout(IntegerSE socketConnectTimeout)
public IntegerSE getSocketConnectTimeout()
public void setStatisticsInterval(IntegerSE statisticsInterval)
public IntegerSE getStatisticsInterval()
public void setSubscriptionAckInterval(IntegerSE subscriptionAckInterval)
public IntegerSE getSubscriptionAckInterval()
public void setSubscriptionEnabled(BooleanSE subscriptionEnabled)
public BooleanSE getSubscriptionEnabled()
public void setSubscriptionMessageTrackingTimeout(IntegerSE subscriptionMessageTrackingTimeout)
public IntegerSE getSubscriptionMessageTrackingTimeout()
public void setSubscriptionRedundancy(IntegerSE subscriptionRedundancy)
public IntegerSE getSubscriptionRedundancy()
public void setThreadLocalConnections(BooleanSE threadLocalConnections)
public BooleanSE getThreadLocalConnections()
public final void setUseClusterConfiguration(BooleanSE useClusterConfiguration)
CacheFactoryBeanCacheFactoryBean の setUseClusterConfiguration useClusterConfiguration - use-shared-configuration Pivotal GemFire/Apache Geode 配布構成設定を設定するブール値。public final BooleanSE getUseClusterConfiguration()
CacheFactoryBeanCacheFactoryBean の getUseClusterConfiguration Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.