org.springframework.integration.syslog.config
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.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
Factory bean to create syslog inbound adapters (UDP or TCP).
- Since:
- 3.0
- Author:
- Gary Russell
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
logger |
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyslogReceivingChannelAdapterFactoryBean
public SyslogReceivingChannelAdapterFactoryBean(SyslogReceivingChannelAdapterFactoryBean.Protocol protocol)
- Instantiates a factory bean that creates a
UdpSyslogReceivingChannelAdapter
if the protocol is SyslogReceivingChannelAdapterFactoryBean.Protocol.udp
or a TcpSyslogReceivingChannelAdapter
if
the protocol is SyslogReceivingChannelAdapterFactoryBean.Protocol.tcp
.
- Parameters:
protocol
- The protocol.
setOutputChannel
public void setOutputChannel(MessageChannel outputChannel)
setAutoStartup
public void setAutoStartup(boolean autoStartup)
setErrorChannel
public void setErrorChannel(MessageChannel errorChannel)
setPhase
public void setPhase(int phase)
setSendTimeout
public void setSendTimeout(long sendTimeout)
setConnectionFactory
public void setConnectionFactory(AbstractServerConnectionFactory connectionFactory)
setUdpAdapter
public void setUdpAdapter(UnicastReceivingChannelAdapter udpAdapter)
setPort
public void setPort(int port)
setConverter
public void setConverter(MessageConverter converter)
start
public void start()
- Specified by:
start
in interface org.springframework.context.Lifecycle
stop
public void stop()
- Specified by:
stop
in interface org.springframework.context.Lifecycle
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface org.springframework.context.Lifecycle
getPhase
public int getPhase()
- Specified by:
getPhase
in interface org.springframework.context.Phased
setBeanName
public void setBeanName(java.lang.String name)
- Specified by:
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartup
in interface org.springframework.context.SmartLifecycle
stop
public void stop(java.lang.Runnable callback)
- Specified by:
stop
in interface org.springframework.context.SmartLifecycle
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean<SyslogReceivingChannelAdapterSupport>
- Specified by:
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
createInstance
protected SyslogReceivingChannelAdapterSupport createInstance()
throws java.lang.Exception
- Specified by:
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
- Throws:
java.lang.Exception