Spring Integration

org.springframework.integration.syslog.config
Class SyslogReceivingChannelAdapterFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<SyslogReceivingChannelAdapterSupport>
      extended by 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

Nested Class Summary
static class SyslogReceivingChannelAdapterFactoryBean.Protocol
           
 
Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
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.
 
Method Summary
protected  SyslogReceivingChannelAdapterSupport createInstance()
           
 java.lang.Class<?> getObjectType()
           
 int getPhase()
           
 boolean isAutoStartup()
           
 boolean isRunning()
           
 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)
           
 
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
 

Constructor Detail

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.
Method Detail

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

Spring Integration