Package org.openspaces.core.gateway
Class GatewaySinkFactoryBean
java.lang.Object
org.openspaces.core.gateway.AbstractGatewayComponentFactoryBean
org.openspaces.core.gateway.GatewaySinkFactoryBean
- All Implemented Interfaces:
InternalDumpProcessor,AdminEventListener,ProcessingUnitInstanceAddedEventListener,ClusterInfoAware,BeanLevelMergedPropertiesAware,InvocableService,ServiceDetailsProvider,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
public class GatewaySinkFactoryBean
extends AbstractGatewayComponentFactoryBean
implements org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, InvocableService, ServiceDetailsProvider
A sink factory bean for creating a
LocalClusterReplicationSink which represents a gateway
sink component.- Since:
- 8.0.3
- Author:
- idan
-
Field Summary
Fields inherited from class org.openspaces.core.gateway.AbstractGatewayComponentFactoryBean
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterPropertiesSetImpl(SecurityConfig securityConfig) protected voidprotected StringGets distributed transaction processing configuration for the Sink component.Gets the error handling configuration instance defined for the Sink component.protected StringGets the lookup timeout for finding the local cluster the Sink works against.booleanGets whether bootstrap is required for the Sink component.Retruns one or more service details that the service exposes.Gets the synchronization endpoint interceptor configuration for the sink component.Gets the transaction timeout for the operations made by the Sink against the local cluster.voidsetDistributedTransactionProcessingConfiguration(GatewaySinkDistributedTransactionProcessingConfigurationFactoryBean transactionProcessingConfiguration) Sets the distributed transaction processing configuration for the Sink component.voidsetErrorHandlingConfiguration(SinkErrorHandlingFactoryBean errorHandlingConfiguration) Sets the error handling configuration instance for the Sink component.voidsetGatewaySources(List<GatewaySource> gatewaySources) Sets the sink component's gateway replication sources.voidsetLocalSpaceLookupTimeout(Long lookupTimeout) Sets the lookup timeout for finding the local cluster the Sink works against.voidsetLocalSpaceUrl(String localSpaceUrl) Sets the local space URL the sink component operates against.voidsetRequiresBootstrap(boolean requiresBootstrap) Sets whether bootstrap is required for the Sink component.voidsetSyncEndpointInterceptorConfiguration(GatewaySinkSyncEndpointInterceptorFactoryBean syncEndpointInterceptorConfiguration) Sets the synchronization endpoint interceptor configuration for the sink component.voidsetTransactionTimeout(Long transactionTimeout) Sets the transaction timeout for the operations made by the Sink against the local cluster.Methods inherited from class org.openspaces.core.gateway.AbstractGatewayComponentFactoryBean
afterPropertiesSet, destroy, getCommunicationPort, getCustomJvmProperties, getDiscoveryPort, getGatewayLookups, getLocalGatewayName, getName, isRelocateIfWrongPorts, isStartEmbeddedLus, process, processingUnitInstanceAdded, setBeanName, setClusterInfo, setCommunicationPort, setCredentialsProvider, setCustomJvmProperties, setGatewayLookups, setLocalGatewayName, setMergedBeanLevelProperties, setRelocateIfWrongPorts, setSecurityConfig, setStartEmbeddedLus, setUserDetailsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.DisposableBean
destroyMethods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSetMethods inherited from interface com.gigaspaces.internal.dump.InternalDumpProcessor
getDumpFileReportLocation, setDumpFileReportLocation
-
Constructor Details
-
GatewaySinkFactoryBean
public GatewaySinkFactoryBean()
-
-
Method Details
-
getLocalSpaceUrl
- Returns:
- The local space URL the sink component operates against.
-
setLocalSpaceUrl
Sets the local space URL the sink component operates against.- Parameters:
localSpaceUrl- The local space URL.
-
getGatewaySources
- Returns:
- The sink component's gateway replication sources.
-
setGatewaySources
Sets the sink component's gateway replication sources.- Parameters:
gatewaySources- The gateway replication sources.
-
setRequiresBootstrap
public void setRequiresBootstrap(boolean requiresBootstrap) Sets whether bootstrap is required for the Sink component.- Parameters:
requiresBootstrap- true if bootstrap is required.
-
getRequiresBootstrap
public boolean getRequiresBootstrap()Gets whether bootstrap is required for the Sink component.- Returns:
- true if bootstrap is required.
-
setErrorHandlingConfiguration
Sets the error handling configuration instance for the Sink component.- Parameters:
errorHandlingConfiguration- The error handling configuration instance.
-
getErrorHandlingConfiguration
Gets the error handling configuration instance defined for the Sink component.- Returns:
- The error handling configuration instance.
-
getTransactionTimeout
Gets the transaction timeout for the operations made by the Sink against the local cluster.- Returns:
- The transaction timeout in milliseconds.
-
setTransactionTimeout
Sets the transaction timeout for the operations made by the Sink against the local cluster.- Parameters:
transactionTimeout- The transaction timeout in milliseconds.
-
setLocalSpaceLookupTimeout
Sets the lookup timeout for finding the local cluster the Sink works against.- Parameters:
lookupTimeout- The lookup timeout in milliseconds.
-
getLocalSpaceLookupTimeout
Gets the lookup timeout for finding the local cluster the Sink works against.- Returns:
- The lookup timeout in milliseconds.
-
getDistributedTransactionProcessingConfiguration
public GatewaySinkDistributedTransactionProcessingConfigurationFactoryBean getDistributedTransactionProcessingConfiguration()Gets distributed transaction processing configuration for the Sink component.- Returns:
- Distributed transaction processing configuration.
-
setDistributedTransactionProcessingConfiguration
public void setDistributedTransactionProcessingConfiguration(GatewaySinkDistributedTransactionProcessingConfigurationFactoryBean transactionProcessingConfiguration) Sets the distributed transaction processing configuration for the Sink component.- Parameters:
transactionProcessingConfiguration- The distributed transaction processing configuration to set.
-
getSyncEndpointInterceptorConfiguration
Gets the synchronization endpoint interceptor configuration for the sink component.- Returns:
- synchronization endpoint interceptor configuration.
-
setSyncEndpointInterceptorConfiguration
public void setSyncEndpointInterceptorConfiguration(GatewaySinkSyncEndpointInterceptorFactoryBean syncEndpointInterceptorConfiguration) Sets the synchronization endpoint interceptor configuration for the sink component.- Parameters:
syncEndpointInterceptorConfiguration- the syncEndpointInterceptorConfiguration to set
-
afterPropertiesSetImpl
- Specified by:
afterPropertiesSetImplin classAbstractGatewayComponentFactoryBean
-
destroyImpl
protected void destroyImpl()- Specified by:
destroyImplin classAbstractGatewayComponentFactoryBean
-
invoke
- Specified by:
invokein interfaceInvocableService
-
getServicesDetails
Description copied from interface:ServiceDetailsProviderRetruns one or more service details that the service exposes.- Specified by:
getServicesDetailsin interfaceServiceDetailsProvider
-
getGatewayComponentTypeName
- Specified by:
getGatewayComponentTypeNamein classAbstractGatewayComponentFactoryBean- Returns:
- The gateway component's type name.
-
dumpState
- Specified by:
dumpStatein classAbstractGatewayComponentFactoryBean
-