Package org.apache.openjpa.event
Class DynamicTCPRemoteCommitProvider
java.lang.Object
org.apache.openjpa.event.AbstractRemoteCommitProvider
org.apache.openjpa.event.TCPRemoteCommitProvider
org.apache.openjpa.event.DynamicTCPRemoteCommitProvider
- All Implemented Interfaces:
- RemoteCommitProvider,- Configurable,- Closeable
- Direct Known Subclasses:
- KubernetesTCPRemoteCommitProvider
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.openjpa.event.TCPRemoteCommitProviderTCPRemoteCommitProvider.HostAddress
- 
Field SummaryFields inherited from class org.apache.openjpa.event.TCPRemoteCommitProvider_addresses, _addressesLock, _port, s_locFields inherited from class org.apache.openjpa.event.AbstractRemoteCommitProvidereventManager, log
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSubclasses that need to perform actions inConfigurable.endConfiguration()must invoke this method.intfinal voidsetAddresses(String names) Sets the list of addresses of peers to which this provider will send events to.voidsetCacheDurationMillis(int _cacheDurationMillis) Methods inherited from class org.apache.openjpa.event.TCPRemoteCommitProviderbroadcast, close, getMaxIdle, getMaxTotal, getNumBroadcastThreads, getPort, getRecoveryTimeMillis, setMaxActive, setMaxIdle, setMaxTotal, setNumBroadcastThreads, setPort, setRecoveryTimeMillisMethods inherited from class org.apache.openjpa.event.AbstractRemoteCommitProviderfireEvent, setConfiguration, setRemoteCommitEventManager, startConfigurationMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.lib.conf.ConfigurablesetConfiguration, startConfiguration
- 
Constructor Details- 
DynamicTCPRemoteCommitProvider- Throws:
- UnknownHostException
 
 
- 
- 
Method Details- 
getCacheDurationMillispublic int getCacheDurationMillis()
- 
setCacheDurationMillispublic void setCacheDurationMillis(int _cacheDurationMillis) 
- 
setAddressesDescription copied from class:TCPRemoteCommitProviderSets the list of addresses of peers to which this provider will send events to. The peers are semicolon-separatednameslist in the form of "myhost1:portA;myhost2:portB".- Overrides:
- setAddressesin class- TCPRemoteCommitProvider
- Parameters:
- names- the list of addresses of peers to which this provider will send events to
- Throws:
- UnknownHostException- in case peer name cannot be resolved
 
- 
endConfigurationpublic void endConfiguration()Description copied from class:TCPRemoteCommitProviderSubclasses that need to perform actions inConfigurable.endConfiguration()must invoke this method.- Specified by:
- endConfigurationin interface- Configurable
- Overrides:
- endConfigurationin class- TCPRemoteCommitProvider
 
- 
fetchDynamicAddresses
 
-