public class TimeFilter extends AbstractFilter
TimeFilter
を参照してください。
なお、TimeRange要素は複数指定することが可能です。
loglevel要素によって、このフィルタで排除されたデータ受信イベントのログ出力を 制御することができます。 localevel要素には、off,debug,info,warn,error,fatalの各レベルを指定可能です。
<filter class="jp.co.sds_corp.transfer.filter.TimeFilter"> <TimeRange type="allow" from="06:00:00" to="21:00:00"/> <TimeRange type="deny" from="09:00:00" to="09:05:00"/> <TimeRange type="deny"> <From> <dayofweek>金</dayofweek> <time>18:00:00</time> </From> <To> <dayofweek>金</dayofweek> <time>18:00:00</time> </To> </TimeRange> <loglevel>off</loglevel> </filter>
コンストラクタと説明 |
---|
TimeFilter() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
init(jp.co.sds_corp.util.config.IConfiguration config)
指定された初期情報で初期化します。
|
boolean |
isTarget(ReceiveEvent e)
データがフィルタリングの対象であるかチェックする。
|
boolean |
isValid(ReceiveEvent e)
データのフィルタリングを行なう
|
String |
toString()
このフィルタの文字列表現を返します。
|
getLogLevel, putLog, setLogLevel, start, stop
getName, getStatus, getStatusString, isDebug, isInterrupted, isValid, saveConfig, setDebug, setInterrupt, setName, setStatus, setValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public void init(jp.co.sds_corp.util.config.IConfiguration config) throws Exception
init
インタフェース内 jp.co.sds_corp.util.config.IConfigurable
init
クラス内 AbstractFilter
config
- 初期情報Exception
public boolean isValid(ReceiveEvent e) throws Exception
isValid
インタフェース内 IFilter
isValid
クラス内 AbstractFilter
e
- データ受信イベントException
public boolean isTarget(ReceiveEvent e) throws Exception
isTarget
インタフェース内 IFilter
isTarget
クラス内 AbstractFilter
e
- データ受信イベントException
public String toString()
toString
クラス内 jp.co.sds_corp.util.daemon.AbstractService
Copyright © 2021 S.D.S Co.,Ltd.. All rights reserved.