亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? configentry.java

?? 與 unix 上相似的syslog daemon, 沒有 log4j 複雜
?? JAVA
字號:
package com.ice.syslogd;import java.util.*;import com.ice.syslog.SyslogDefs;public classConfigEntry	{	public static final String		RCS_ID = "$Id: ConfigEntry.java,v 1.2 1998/07/29 02:15:09 time Exp $";	public static final String		RCS_REV = "$Revision: 1.2 $";	public static final String		RCS_NAME = "$Name:  $";	private static final int[] repeatBackoff =		{ 15, 30, 60, 180, 600, 3600 };	private boolean			hasMatch;	private boolean			notMatch;	private SyslogMatch		matcher;	private SyslogAction	action;	private int[]			facilities;	private String[]		parameters;	private int				backOffIdx;	private int				repeatCount;	private Date			repeatTimeout;	private Date			prevTime;	private SyslogMessage	prevMsg;	public	ConfigEntry()		{		this.matcher = null;		this.hasMatch = false;		this.notMatch = false;				this.facilities =			new int[ SyslogDefs.LOG_NFACILITIES ];		this.action = null;		this.parameters = null;		this.backOffIdx = 0;		this.repeatCount = 0;		this.prevTime = null;		this.prevMsg = null;		}	public void	setAction( SyslogAction action )		{		this.action = action;		}	public boolean	afterRepeatTimeout( Date now )		{		return now.after( this.repeatTimeout );		}	public Date	getRepeatTimeout( Date now )		{		return this.repeatTimeout;		}	public void	setFacilityLevel( int facility, int level )		{		this.facilities[ facility ] = level;		}	public void	setMatchExpr( String expr )		{		this.hasMatch = true;		this.notMatch = false;		if ( expr.startsWith( "!" ) )			{			this.notMatch = true;			expr = expr.substring(1);			}		this.matcher = new SyslogMatch();		try { this.matcher.compile( expr ); }		catch ( MatchCompileException ex )			{			this.matcher = null;			this.hasMatch = false;			this.notMatch = false;			}		}	private boolean	matchMessage( String message )		{		boolean result = false;		if ( this.hasMatch && this.matcher != null )			{			result = this.matcher.matchMessage( message );			if ( this.notMatch )				{				result = ! result;				}			}		return result;		}	public void	openAction()		{		if ( this.action != null )			{			this.action.openAction();			}		}	public void	closeAction()		{		if ( this.action != null )			{			this.action.closeAction();			}		}	public void	registerActionDisplay( String name, SyslogDisplayInterface display )		{		if ( this.action != null )			{			this.action.registerActionDisplay( name, display );			}		}	private SyslogMessage	createRepeatMsg( SyslogMessage logMsg, Date now )		{		SyslogMessage repeatMsg =			(SyslogMessage)logMsg.clone();		long repSecs =			( now.getTime()				- this.prevTime.getTime() )					/ 1000;		repeatMsg.isRepeat = true;		repeatMsg.matchVars = null;		repeatMsg.message =			"msg repeated " + this.repeatCount			+ " times in " + repSecs + " seconds.";		return repeatMsg;		}		public void	incrementBackOff()		{		if ( ConfigEntry.repeatBackoff.length				> ( this.backOffIdx + 1 ) )			{			this.backOffIdx++;			}		}	public void	computeRepeatTimer( Date now )		{		Calendar cal = Calendar.getInstance();		cal.setTime( now );		cal.add			( Calendar.SECOND,				this.repeatBackoff[ this.backOffIdx ] );				this.repeatTimeout = cal.getTime();		} 	public synchronized void	checkRepeatTimeout( Date now )		{		if ( this.prevMsg != null				&& this.repeatCount > 0 )			{			if ( now.after( this.repeatTimeout ) )				{				SyslogMessage repeatMsg;				if ( this.repeatCount == 1 )					repeatMsg = this.prevMsg;				else					repeatMsg =						this.createRepeatMsg( this.prevMsg, now );				this.invokeMessageAction( repeatMsg );				this.prevMsg = null;				this.repeatCount = 0;				this.backOffIdx = 0;				}			}		}	/*	 *	 * @return True, if the message should be processed.	 *         otherwise, False, indicating a repeat.	 */	public synchronized boolean	checkForRepeats( SyslogMessage logMsg )		{		boolean result = true;		boolean newMsg = true;		Date	now = new Date();		SyslogMessage repeatMsg = null;		if ( this.prevMsg != null				&& this.prevMsg.message.length()					== logMsg.message.length()				&& this.prevMsg.hostName.equals( logMsg.hostName )				&& this.prevMsg.message.equals( logMsg.message ) )			{			result = false;			newMsg = false;			if ( this.repeatCount > 0 )				{				this.repeatCount++;				if ( now.after( this.repeatTimeout ) )					{					result = true;										repeatMsg = this.createRepeatMsg( logMsg, now );					this.invokeMessageAction( repeatMsg );					this.computeRepeatTimer( now );					this.incrementBackOff();										this.prevTime = now;					this.repeatCount = 0;					}				}			else				{				this.repeatCount++;				this.computeRepeatTimer( now );				}			}		if ( newMsg )			{			if ( this.repeatCount > 0 )				{				repeatMsg = this.createRepeatMsg( logMsg, now );				this.invokeMessageAction( repeatMsg );				}			this.backOffIdx = 0;			this.prevTime = now;			this.repeatCount = 0;			}		this.prevMsg = logMsg;		return result;		}	public void	invokeMessageAction( SyslogMessage logMsg )		{		if ( this.action.isThreaded() )			{			ActionThread thread =				new ActionThread( this.action, logMsg );			thread.start();			}		else			{			this.action.processMessage( logMsg );			}		}	public void	processMessage( SyslogMessage logMsg )		{		boolean		processIt = true;		if ( facilities[ logMsg.facility ] >= logMsg.priority				&& this.action != null && this.action.isOpen() )			{			if ( this.hasMatch )				{				processIt = this.matchMessage( logMsg.message );				}			if ( processIt )				{				if ( this.checkForRepeats( logMsg ) )					{					logMsg.matchVars = null;					if ( this.hasMatch && ! this.notMatch )						{						logMsg.matchVars =							this.matcher.getMatchVariables();						}					this.invokeMessageAction( logMsg );					}				}			}		}	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国内精品伊人久久久久av一坑| 亚洲美女区一区| 欧美电影精品一区二区| 欧美剧在线免费观看网站 | 欧美在线视频你懂得| 白白色亚洲国产精品| 色综合天天综合网天天狠天天| 91在线视频官网| 欧美日韩国产首页| 日韩欧美国产wwwww| 国产欧美日韩久久| 亚洲永久免费av| 麻豆久久久久久| 色婷婷亚洲婷婷| 日韩一本二本av| 亚洲欧美一区二区三区久本道91 | 国产成人精品一区二| 92精品国产成人观看免费| 在线观看av一区| 精品日韩成人av| 亚洲一二三区不卡| 国产精品亚洲一区二区三区妖精| 成人免费毛片app| 精品国产自在久精品国产| 成人免费在线观看入口| 久久se精品一区精品二区| 色综合天天综合网国产成人综合天| 欧美影片第一页| 国产精品三级av| 国产精品亚洲一区二区三区在线| 欧美日韩国产免费一区二区 | 免费成人av在线| 在线一区二区三区做爰视频网站| 久久先锋影音av鲁色资源| 亚洲精品伦理在线| 99久久精品国产毛片| 国产亚洲一区字幕| 成人av网站在线观看| 蜜臀99久久精品久久久久久软件| 国精品**一区二区三区在线蜜桃| 欧美丝袜丝交足nylons| 国产精品国模大尺度视频| 国产高清精品在线| 国产欧美日韩麻豆91| 国产高清久久久| 国产精品美女久久久久久久久久久| 国产激情偷乱视频一区二区三区| 亚洲精品一区二区三区福利| 久99久精品视频免费观看| 精品久久久久久久久久久久久久久久久 | 制服丝袜中文字幕亚洲| 一级做a爱片久久| 欧美日本在线视频| 青青草视频一区| 久久久亚洲欧洲日产国码αv| 精品无码三级在线观看视频| 国产女同互慰高潮91漫画| av一区二区三区四区| 亚洲一区二区三区四区在线 | 日本成人在线不卡视频| 日韩精品一区二区三区四区视频 | 日本一区二区三级电影在线观看| 成人晚上爱看视频| 天天综合网天天综合色| 国产亚洲成av人在线观看导航 | 亚洲欧美怡红院| 91麻豆精品国产| 成人短视频下载| 久久精品99国产国产精| 成人欧美一区二区三区白人| 欧美图区在线视频| av在线不卡免费看| 国产一区二区久久| 日本aⅴ亚洲精品中文乱码| 欧美国产欧美综合| 精品国产网站在线观看| 欧美视频在线观看一区二区| 成人黄色小视频| 国产 日韩 欧美大片| 国产精品资源在线观看| 蜜臀va亚洲va欧美va天堂 | 欧美午夜精品久久久| 99精品视频中文字幕| 国产精品一区二区免费不卡| 国产精品久久福利| 久久久三级国产网站| 欧美一区二区三区四区高清| 欧美性猛片aaaaaaa做受| 不卡一区二区中文字幕| 波多野结衣91| 成人动漫中文字幕| 91啪九色porn原创视频在线观看| 成人动漫在线一区| 91在线porny国产在线看| 色综合久久久久综合| 欧美这里有精品| 欧美男女性生活在线直播观看| 欧美日韩aaa| 久久天天做天天爱综合色| 99精品国产99久久久久久白柏| 亚洲成人久久影院| 亚洲在线免费播放| 麻豆精品在线播放| 成a人片亚洲日本久久| 欧美中文字幕亚洲一区二区va在线 | 麻豆精品国产91久久久久久| 国产精品一区在线| 色哟哟国产精品| 日韩精品中文字幕在线不卡尤物 | 久久99国产精品免费| a级高清视频欧美日韩| 91麻豆精品国产91久久久资源速度 | 精品国产1区2区3区| 亚洲日本一区二区三区| 激情偷乱视频一区二区三区| 日本精品一区二区三区高清| 69精品人人人人| 亚洲美女区一区| caoporn国产一区二区| 久久精品视频网| 免费亚洲电影在线| 欧美性色欧美a在线播放| 国产精品国产馆在线真实露脸| 日韩成人一级片| 欧美午夜精品一区二区三区| 国产精品麻豆欧美日韩ww| 奇米影视在线99精品| 欧美日韩一区二区不卡| 亚洲人成网站精品片在线观看 | 久久久久久97三级| 经典三级视频一区| 久久久综合网站| 国产麻豆视频精品| 国产三级精品在线| 成人一区二区三区视频在线观看| 久久久精品中文字幕麻豆发布| 韩国一区二区在线观看| 久久久久国产精品麻豆ai换脸| 国内成人自拍视频| 久久精品夜色噜噜亚洲a∨| 精油按摩中文字幕久久| 国产片一区二区| 色综合一区二区| 日韩在线一二三区| 欧美精品一区二区三区视频| 成人美女视频在线观看18| 成人免费一区二区三区视频| 在线亚洲欧美专区二区| 日韩一区欧美二区| 国产亚洲女人久久久久毛片| 99re热这里只有精品免费视频| 亚洲1区2区3区4区| 精品国产乱码久久久久久影片| 成人福利电影精品一区二区在线观看| 国产精品毛片大码女人| 91精品国产综合久久久久久久 | 中文在线免费一区三区高中清不卡| 99re在线精品| 国产白丝精品91爽爽久久| 亚洲免费成人av| 国产亚洲精品福利| 日韩午夜精品视频| 欧美色网站导航| 成人影视亚洲图片在线| 紧缚捆绑精品一区二区| 日韩精彩视频在线观看| 亚洲色欲色欲www| 国产欧美一区视频| 欧美tickle裸体挠脚心vk| 欧美日韩国产高清一区二区三区| 国产98色在线|日韩| 国产精品12区| 经典三级一区二区| 麻豆成人免费电影| 色婷婷激情综合| 久久99精品视频| 久久91精品国产91久久小草 | 波多野洁衣一区| 99久久免费精品| 91免费看`日韩一区二区| 国产精品一区二区免费不卡 | 久久久久国产精品麻豆ai换脸| 欧美va亚洲va在线观看蝴蝶网| 日韩精品在线一区| 26uuu色噜噜精品一区| 久久久精品综合| 国产精品伦一区| 亚洲图片自拍偷拍| 日日夜夜免费精品| 国产乱子伦一区二区三区国色天香| 激情综合网激情| 高清不卡一二三区| 精品视频在线看| 久久免费精品国产久精品久久久久 | 久久久三级国产网站| 国产精品国产三级国产普通话99 | 国产欧美精品区一区二区三区| 最新日韩av在线| 麻豆久久久久久| 在线视频亚洲一区|