|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.gateway.AbstractGatewayComponentFactoryBean
public abstract class AbstractGatewayComponentFactoryBean
Base class for replication gateway components.
Field Summary | |
---|---|
protected Log |
logger
|
Constructor Summary | |
---|---|
AbstractGatewayComponentFactoryBean()
|
Method Summary | |
---|---|
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(com.gigaspaces.internal.dump.InternalDump dump)
|
void |
processingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance)
Invoked when a PUI is added. the implementation looks for a PUI with the specified name. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
Constructor Detail |
---|
public AbstractGatewayComponentFactoryBean()
Method Detail |
---|
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 BeanNameAware
public String getName()
getName
in interface com.gigaspaces.internal.dump.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 InitializingBean
Exception
protected abstract void afterPropertiesSetImpl(SecurityConfig securityConfig)
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
protected abstract void destroyImpl()
public void processingUnitInstanceAdded(ProcessingUnitInstance processingUnitInstance)
processingUnitInstanceAdded
in interface ProcessingUnitInstanceAddedEventListener
processingUnitInstance
- the added PUI.public void process(com.gigaspaces.internal.dump.InternalDump dump) throws com.gigaspaces.internal.dump.InternalDumpProcessorFailedException
process
in interface com.gigaspaces.internal.dump.InternalDumpProcessor
com.gigaspaces.internal.dump.InternalDumpProcessorFailedException
protected abstract String getGatewayComponentTypeName()
protected abstract String dumpState()
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |