public abstract class AbstractGatewayComponentFactoryBean extends Object implements org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, ClusterInfoAware, ProcessingUnitInstanceAddedEventListener, BeanLevelMergedPropertiesAware, InternalDumpProcessor, org.springframework.beans.factory.BeanNameAware
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
AbstractGatewayComponentFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected abstract void |
afterPropertiesSetImpl(SecurityConfig securityConfig) |
void |
destroy() |
protected abstract void |
destroyImpl() |
protected abstract String |
dumpState() |
int |
getCommunicationPort() |
String |
getCustomJvmProperties() |
int |
getDiscoveryPort() |
protected abstract String |
getGatewayComponentTypeName() |
GatewayLookupsFactoryBean |
getGatewayLookups()
Gets a
GatewayLookupsFactoryBean instance which holds lookup information for the
component. |
String |
getLocalGatewayName() |
String |
getName() |
boolean |
isRelocateIfWrongPorts()
Gets whether this component containing processing unit instance should start and relocate it
self to a new GSC if the required ports for this processing unit in the currently deployed
GSC are wrong.
|
boolean |
isStartEmbeddedLus()
Gets whether the component will start an embedded LUS service upon its initialization.
|
void |
process(InternalDump dump) |
void |
processingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance)
Invoked when a PUI is added.
|
void |
setBeanName(String name) |
void |
setClusterInfo(ClusterInfo clusterInfo)
Sets the cluster information.
|
void |
setCommunicationPort(int communicationPort)
Sets the gateway component's communication port.
|
void |
setCredentialsProvider(CredentialsProvider credentialsProvider)
Initializes security configuration for this component with the provided
UserDetails
instance. |
void |
setCustomJvmProperties(String jvmProperties) |
void |
setGatewayLookups(GatewayLookupsFactoryBean gatewayLookups)
Sets the component's lookup information as a
GatewayLookupsFactoryBean instance. |
void |
setLocalGatewayName(String localGatewayName)
Sets the component's local gateway name used for identifying the component.
|
void |
setMergedBeanLevelProperties(Properties beanLevelProperties)
Sets the merged properties using
mergedProperties and the bean name that the bean implementing this interface is associated
with. |
void |
setRelocateIfWrongPorts(boolean relocateIfWrongPorts)
Sets whether this component containing processing unit instance should start and relocate it
self to a new GSC if the required ports for this processing unit in the currently deployed
GSC are wrong.
|
void |
setSecurityConfig(SecurityConfig securityConfig)
Sets the security configuration which holds login information for this component.
|
void |
setStartEmbeddedLus(boolean startEmbeddedLus)
Sets whether an embedded LUS service will be started upon the component's initialization.
|
void |
setUserDetails(UserDetails userDetails)
Initializes security configuration for this component with the provided
UserDetails
instance. |
public void setClusterInfo(ClusterInfo clusterInfo)
ClusterInfoAware
Note, the cluster information is obtained externally from the application context which
means that this feature need to be supported by specific containers (and is not supported by
plain Spring application context). This means that beans that implement ClusterInfoAware
should take into account the fact that the cluster info provided might be
null.
setClusterInfo
in interface ClusterInfoAware
clusterInfo
- The cluster information to be injectedpublic String getLocalGatewayName()
public void setLocalGatewayName(String localGatewayName)
localGatewayName
- The local gateway name.public GatewayLookupsFactoryBean getGatewayLookups()
GatewayLookupsFactoryBean
instance which holds lookup information for the
component.public void setGatewayLookups(GatewayLookupsFactoryBean gatewayLookups)
GatewayLookupsFactoryBean
instance.gatewayLookups
- Component's lookup information.public boolean isStartEmbeddedLus()
public void setStartEmbeddedLus(boolean startEmbeddedLus)
startEmbeddedLus
- true for starting a LUS service upon initialization, false
otherwise.public boolean isRelocateIfWrongPorts()
public void setRelocateIfWrongPorts(boolean relocateIfWrongPorts)
relocateIfWrongPorts
- true for self relocating, false otherwise.public void setCustomJvmProperties(String jvmProperties)
public String getCustomJvmProperties()
public int getCommunicationPort()
public int getDiscoveryPort()
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public String getName()
getName
in interface InternalDumpProcessor
public void setCommunicationPort(int communicationPort)
communicationPort
- The communication port.public void setSecurityConfig(SecurityConfig securityConfig)
securityConfig
- The security configuration to associate with this component.public void setUserDetails(UserDetails userDetails)
UserDetails
instance. For more information see setSecurityConfig(SecurityConfig)
.userDetails
- UserDetails
instance to initialize security config with.public void setCredentialsProvider(CredentialsProvider credentialsProvider)
UserDetails
instance. For more information see setSecurityConfig(SecurityConfig)
.credentialsProvider
- CredentialsProvider
instance to initialize security config
with.public void setMergedBeanLevelProperties(Properties beanLevelProperties)
BeanLevelMergedPropertiesAware
mergedProperties
and the bean name that the bean implementing this interface is associated
with.setMergedBeanLevelProperties
in interface BeanLevelMergedPropertiesAware
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected abstract void afterPropertiesSetImpl(SecurityConfig securityConfig)
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
protected abstract void destroyImpl()
public void processingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance)
processingUnitInstanceAdded
in interface ProcessingUnitInstanceAddedEventListener
processingUnitInstance
- the added PUI.public void process(InternalDump dump) throws InternalDumpProcessorFailedException
process
in interface InternalDumpProcessor
InternalDumpProcessorFailedException
protected abstract String getGatewayComponentTypeName()
protected abstract String dumpState()
Copyright © GigaSpaces.