クラス SyslogReceivingChannelAdapterSupport
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.syslog.inbound.SyslogReceivingChannelAdapterSupport
- 実装済みのインターフェース一覧:
Aware、BeanFactoryAware、BeanNameAware、DisposableBean、InitializingBean、SmartInitializingSingleton、ApplicationContextAware、ApplicationEventPublisherAware、Lifecycle、Phased、SmartLifecycle、ComponentSourceAware、ExpressionCapable、MessageProducer、IntegrationPattern、NamedComponent、IntegrationInboundManagement、IntegrationManagement、ManageableLifecycle、ManageableSmartLifecycle、TrackableComponent
public abstract class SyslogReceivingChannelAdapterSupport
extends MessageProducerSupport
implements ApplicationEventPublisherAware
受信チャネルアダプターの基本サポートクラス。デフォルトのポートは 514 です。
- 導入:
- 3.0
- 作成者:
- Gary Russell, Ngoc Nhan, Artem Bilan
ネストされたクラスの概要
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
フィールドクラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたフィールド
lifecycleLockクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明protected voidconvertAndSend(Message<?> message) protected ApplicationEventPublisherprotected intgetPort()protected voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidsetApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) voidsetConverter(MessageConverter converter) 基になる UDP/TCP メッセージのバイト配列ペイロードを、デコードされたペイロードとヘッダーを含む Spring Integration メッセージに変換するMessageConverter。デフォルトはDefaultMessageConverterです。voidsetPort(int port) アダプターがリッスンするポートを設定します。デフォルトは 514 です。RFC は TCP の既知のポートを指定していないことに注意してください。514 は UDP のよく知られたポートです。クラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getComponentType, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getRequiredOutputChannel, isObserved, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisherクラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたメソッド
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopクラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
destroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedTypeインターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentNameインターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable
フィールドの詳細
DEFAULT_PORT
protected static final int DEFAULT_PORT- 関連事項:
コンストラクターの詳細
SyslogReceivingChannelAdapterSupport
public SyslogReceivingChannelAdapterSupport()
メソッドの詳細
setApplicationEventPublisher
- 次で指定:
- インターフェース
ApplicationEventPublisherAwareのsetApplicationEventPublisher
getApplicationEventPublisher
getPort
protected int getPort()- 戻り値:
- このアダプターがリッスンするポート。
setPort
public void setPort(int port) アダプターがリッスンするポートを設定します。デフォルトは 514 です。RFC は TCP の既知のポートを指定していないことに注意してください。514 は UDP のよく知られたポートです。多くの管理者は TCP にも 514 を使用しています。TCP の詳細については RFC-6587 を、UDP の詳細については RFC-3164/5424 を参照してください。- パラメーター:
port- ポート。
setConverter
基になる UDP/TCP メッセージのバイト配列ペイロードを、デコードされたペイロードとヘッダーを含む Spring Integration メッセージに変換するMessageConverter。デフォルトはDefaultMessageConverterです。- パラメーター:
converter- コンバーター。
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupportサブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupportのonInit
convertAndSend