Class SyslogReceivingChannelAdapterFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
org.springframework.integration.syslog.config.SyslogReceivingChannelAdapterFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,BeanNameAware
,DisposableBean
,FactoryBean<SyslogReceivingChannelAdapterSupport>
,InitializingBean
,ApplicationEventPublisherAware
,Lifecycle
,Phased
,SmartLifecycle
public class SyslogReceivingChannelAdapterFactoryBean
extends AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
implements SmartLifecycle, BeanNameAware, ApplicationEventPublisherAware
Factory bean to create syslog inbound adapters (UDP or TCP).
- Since:
- 3.0
- Author:
- Gary Russell, Artem Bilan
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorDescriptionSyslogReceivingChannelAdapterFactoryBean
(SyslogReceivingChannelAdapterFactoryBean.Protocol protocol) Instantiates a factory bean that creates aUdpSyslogReceivingChannelAdapter
if the protocol isSyslogReceivingChannelAdapterFactoryBean.Protocol.udp
or aTcpSyslogReceivingChannelAdapter
if the protocol isSyslogReceivingChannelAdapterFactoryBean.Protocol.tcp
. -
Method Summary
Modifier and TypeMethodDescriptionprotected SyslogReceivingChannelAdapterSupport
Class<?>
int
getPhase()
boolean
boolean
void
setApplicationEventPublisher
(ApplicationEventPublisher applicationEventPublisher) void
setAutoStartup
(boolean autoStartup) void
setBeanName
(String name) void
setConnectionFactory
(AbstractServerConnectionFactory connectionFactory) void
setConverter
(MessageConverter converter) void
setErrorChannel
(MessageChannel errorChannel) void
setOutputChannel
(MessageChannel outputChannel) void
setPhase
(int phase) void
setPort
(int port) void
setSendTimeout
(long sendTimeout) void
setUdpAdapter
(UnicastReceivingChannelAdapter udpAdapter) void
start()
void
stop()
void
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
SyslogReceivingChannelAdapterFactoryBean
public SyslogReceivingChannelAdapterFactoryBean(SyslogReceivingChannelAdapterFactoryBean.Protocol protocol) Instantiates a factory bean that creates aUdpSyslogReceivingChannelAdapter
if the protocol isSyslogReceivingChannelAdapterFactoryBean.Protocol.udp
or aTcpSyslogReceivingChannelAdapter
if the protocol isSyslogReceivingChannelAdapterFactoryBean.Protocol.tcp
.- Parameters:
protocol
- The protocol.
-
-
Method Details
-
setOutputChannel
-
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setErrorChannel
-
setPhase
public void setPhase(int phase) -
setSendTimeout
public void setSendTimeout(long sendTimeout) -
setConnectionFactory
-
setUdpAdapter
-
setPort
public void setPort(int port) -
setConverter
-
setApplicationEventPublisher
- Specified by:
setApplicationEventPublisher
in interfaceApplicationEventPublisherAware
-
start
public void start() -
stop
public void stop() -
isRunning
public boolean isRunning() -
getPhase
public int getPhase()- Specified by:
getPhase
in interfacePhased
- Specified by:
getPhase
in interfaceSmartLifecycle
-
setBeanName
- Specified by:
setBeanName
in interfaceBeanNameAware
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartup
in interfaceSmartLifecycle
-
stop
- Specified by:
stop
in interfaceSmartLifecycle
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<SyslogReceivingChannelAdapterSupport>
- Specified by:
getObjectType
in classAbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
-
createInstance
- Specified by:
createInstance
in classAbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
-