Class SyslogReceivingChannelAdapterFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
org.springframework.integration.syslog.config.SyslogReceivingChannelAdapterFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<SyslogReceivingChannelAdapterSupport>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationEventPublisherAware,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class SyslogReceivingChannelAdapterFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport> implements org.springframework.context.SmartLifecycle, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationEventPublisherAware
Factory bean to create syslog inbound adapters (UDP or TCP).
- Since:
- 3.0
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyslogReceivingChannelAdapterFactoryBean.Protocol -
Field Summary
-
Constructor Summary
Constructors Constructor Description SyslogReceivingChannelAdapterFactoryBean(SyslogReceivingChannelAdapterFactoryBean.Protocol protocol)Instantiates a factory bean that creates aUdpSyslogReceivingChannelAdapterif the protocol isSyslogReceivingChannelAdapterFactoryBean.Protocol.udpor aTcpSyslogReceivingChannelAdapterif the protocol isSyslogReceivingChannelAdapterFactoryBean.Protocol.tcp. -
Method Summary
Modifier and Type Method Description protected SyslogReceivingChannelAdapterSupportcreateInstance()java.lang.Class<?>getObjectType()intgetPhase()booleanisAutoStartup()booleanisRunning()voidsetApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)voidsetAutoStartup(boolean autoStartup)voidsetBeanName(java.lang.String name)voidsetConnectionFactory(org.springframework.integration.ip.tcp.connection.AbstractServerConnectionFactory connectionFactory)voidsetConverter(MessageConverter converter)voidsetErrorChannel(org.springframework.messaging.MessageChannel errorChannel)voidsetOutputChannel(org.springframework.messaging.MessageChannel outputChannel)voidsetPhase(int phase)voidsetPort(int port)voidsetSendTimeout(long sendTimeout)voidsetUdpAdapter(org.springframework.integration.ip.udp.UnicastReceivingChannelAdapter udpAdapter)voidstart()voidstop()voidstop(java.lang.Runnable callback)
-
Constructor Details
-
SyslogReceivingChannelAdapterFactoryBean
public SyslogReceivingChannelAdapterFactoryBean(SyslogReceivingChannelAdapterFactoryBean.Protocol protocol)Instantiates a factory bean that creates aUdpSyslogReceivingChannelAdapterif the protocol isSyslogReceivingChannelAdapterFactoryBean.Protocol.udpor aTcpSyslogReceivingChannelAdapterif the protocol isSyslogReceivingChannelAdapterFactoryBean.Protocol.tcp.- Parameters:
protocol- The protocol.
-
-
Method Details
-
setOutputChannel
public void setOutputChannel(org.springframework.messaging.MessageChannel outputChannel) -
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setErrorChannel
public void setErrorChannel(org.springframework.messaging.MessageChannel errorChannel) -
setPhase
public void setPhase(int phase) -
setSendTimeout
public void setSendTimeout(long sendTimeout) -
setConnectionFactory
public void setConnectionFactory(org.springframework.integration.ip.tcp.connection.AbstractServerConnectionFactory connectionFactory) -
setUdpAdapter
public void setUdpAdapter(org.springframework.integration.ip.udp.UnicastReceivingChannelAdapter udpAdapter) -
setPort
public void setPort(int port) -
setConverter
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)- Specified by:
setApplicationEventPublisherin interfaceorg.springframework.context.ApplicationEventPublisherAware
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
setBeanName
public void setBeanName(java.lang.String name)- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
isAutoStartup
public boolean isAutoStartup()- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
public void stop(java.lang.Runnable callback)- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
getObjectType
public java.lang.Class<?> getObjectType()- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<SyslogReceivingChannelAdapterSupport>- Specified by:
getObjectTypein classorg.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
-
createInstance
- Specified by:
createInstancein classorg.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
-