public abstract class ConfigurationAware extends java.lang.Object implements org.springframework.context.ApplicationListener<ConfigurationModifiedEvent>, org.springframework.shell.core.ExecutionProcessor
Configuration
の変更を監視するコンポーネントのユーティリティベースクラス。修飾子と型 | フィールドと説明 |
---|---|
protected org.slf4j.Logger | LOG |
コンストラクターと説明 |
---|
ConfigurationAware() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterReturningInvocation(org.springframework.shell.event.ParseResult invocationContext, java.lang.Object result) |
void | afterThrowingInvocation(org.springframework.shell.event.ParseResult invocationContext, java.lang.Throwable thrown) |
org.springframework.shell.event.ParseResult | beforeInvocation(org.springframework.shell.event.ParseResult invocationContext) |
protected abstract boolean | configurationChanged() 構成が変更された場合にコマンドを呼び出す前に呼び出されます。 |
protected java.lang.String | failedComponentName() |
org.apache.hadoop.conf.Configuration | getHadoopConfiguration() Hadoop 構成を取得します。 |
protected void | logUpdateError(java.lang.Exception ex) |
void | onApplicationEvent(ConfigurationModifiedEvent event) |
public void onApplicationEvent(ConfigurationModifiedEvent event)
org.springframework.context.ApplicationListener<ConfigurationModifiedEvent>
の onApplicationEvent
public org.springframework.shell.event.ParseResult beforeInvocation(org.springframework.shell.event.ParseResult invocationContext)
org.springframework.shell.core.ExecutionProcessor
の beforeInvocation
protected abstract boolean configurationChanged() throws java.lang.Exception
failedComponentName()
を通じて名前を適宜更新することが推奨されます。java.lang.Exception
- 無視され、次の呼び出しで再初期化が行われる failedComponentName()
, logUpdateError(Exception)
protected void logUpdateError(java.lang.Exception ex)
protected java.lang.String failedComponentName()
public void afterReturningInvocation(org.springframework.shell.event.ParseResult invocationContext, java.lang.Object result)
org.springframework.shell.core.ExecutionProcessor
の afterReturningInvocation
public void afterThrowingInvocation(org.springframework.shell.event.ParseResult invocationContext, java.lang.Throwable thrown)
org.springframework.shell.core.ExecutionProcessor
の afterThrowingInvocation
public org.apache.hadoop.conf.Configuration getHadoopConfiguration()