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
| Modifier and Type | Class and Description |
|---|---|
static class |
SyslogReceivingChannelAdapterFactoryBean.Protocol |
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
protected SyslogReceivingChannelAdapterSupport |
createInstance() |
java.lang.Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setAutoStartup(boolean autoStartup) |
void |
setBeanName(java.lang.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 |
stop(java.lang.Runnable callback) |
public SyslogReceivingChannelAdapterFactoryBean(SyslogReceivingChannelAdapterFactoryBean.Protocol protocol)
UdpSyslogReceivingChannelAdapter
if the protocol is SyslogReceivingChannelAdapterFactoryBean.Protocol.udp or a TcpSyslogReceivingChannelAdapter if
the protocol is SyslogReceivingChannelAdapterFactoryBean.Protocol.tcp.protocol - The protocol.public void setOutputChannel(MessageChannel outputChannel)
public void setAutoStartup(boolean autoStartup)
public void setErrorChannel(MessageChannel errorChannel)
public void setPhase(int phase)
public void setSendTimeout(long sendTimeout)
public void setConnectionFactory(AbstractServerConnectionFactory connectionFactory)
public void setUdpAdapter(UnicastReceivingChannelAdapter udpAdapter)
public void setPort(int port)
public void setConverter(MessageConverter converter)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(java.lang.Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<SyslogReceivingChannelAdapterSupport>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>protected SyslogReceivingChannelAdapterSupport createInstance() throws java.lang.Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>java.lang.Exception