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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? crontabentrybean.java

?? jcrontab是一個定時器開源項目包 目前提供存取文件或數據庫, 把執行結果寄發 email, 簡單地設置在 Tomcat, Resin, Jetty 及 JBoss 之上, 更是可以取代 cron
?? JAVA
字號:
/** *  This file is part of the jcrontab package *  Copyright (C) 2001-2003 Israel Olalla * *  This library is free software; you can redistribute it and/or *  modify it under the terms of the GNU Lesser General Public *  License as published by the Free Software Foundation; either *  version 2 of the License, or (at your option) any later version. * *  This library is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU *  Lesser General Public License for more details. * *  You should have received a copy of the GNU Lesser General Public *  License along with this library; if not, write to the Free *  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, *  MA 02111-1307, USA * *  For questions, suggestions: * *  iolalla@yahoo.com * */ package org.jcrontab.data;import java.io.PrintWriter;import java.io.Serializable;import java.io.StringWriter;import java.io.Writer;import java.util.Calendar;import java.util.Date;import org.jcrontab.CrontabBean;/** CrontabEntryBeans represents each entry into * crontab "DataSource" usually a file. * This Bean allows jcrontab to interact with * the information from CrontabEntry * @author $Author: iolalla $ * @version $Revision: 1.44 $ */public class CrontabEntryBean implements Serializable {        private int id = -1;        private boolean runInBusinessDays = true;        private String seconds = "0";    private String hours = "*";    private String minutes = "*";    private String months = "*";    private String daysOfWeek = "*";    private String daysOfMonth = "*";    private String years = "*";    private Date startDate;    private Date endDate;	    private String className;    private String methodName = "";    private String[] extraInfo;    private boolean bextraInfo = false;    private String description;                    private boolean[] bHours;    private boolean[] bSeconds;    private boolean[] bMinutes;    private boolean[] bMonths;    private boolean[] bDaysOfWeek;    private boolean[] bDaysOfMonth;    private boolean[] bYears;        	/** Id setter	 * @param id this integer identifies the CrontabEntryBean	 */        	public void setId(int id){		this.id = id;	}	/** ClassName Setter	 * @param className This is the name of the class to execute	 */        	public void setClassName(String className){		this.className = className;	}	/** MethodName setter	 * @param methodName the name of the method to execute	 */        	public void setMethodName(String methodName){		this.methodName = methodName;	}	/** Extra info setter	 * @param extraInfo this array represents the parameters passed to the	 * task	 */        	public void setExtraInfo(String[] extraInfo){		this.extraInfo = extraInfo;        this.bextraInfo = true;	}		/** Hours setter	 * @param hours The hours to execute the Class,	 * the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]	 */        	public void setHours(String hours){		this.hours = hours;	}	/** Minutes setter	 * @param minutes The minutes to execute the Class,	 * the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]	 */      	public void setMinutes(String minutes){		this.minutes = minutes;	}	/** Seconds setter	 * @param seconds The seconds to execute the Class,	 * the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]	 */      	public void setSeconds(String seconds){		this.seconds = seconds;	}	/** Months setter	 * @param months The Monts to execute the Class,	 * the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]	 */  	public void setMonths(String months){		this.months = months;	}	/** Days of Week	 * @param daysOfWeek The days of the week	 */      public void setDaysOfWeek(String daysOfWeek){		this.daysOfWeek = daysOfWeek;	}	/** Days of Month setter	 * @param daysOfMonth The days of the month	 */  	public void setDaysOfMonth(String daysOfMonth){		this.daysOfMonth = daysOfMonth;	}    /** Years Setter     * @param years to be executed this task     */    public void setYears(String years) {        this.years = years;    }	/** Hours setter	 * @param hours The hours to execute the Class,	 * the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]	 */        	public void setBHours(boolean[] bHours){		this.bHours = bHours;	}	/** Minutes setter	 * @param minutes The minutes to execute the Class,	 * the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]	 */      	public void setBMinutes(boolean[] bMinutes){		this.bMinutes = bMinutes;	}	/** Months setter	 * @param months The Monts to execute the Class,	 * the values can take are [ * , 2-4 , 2,3,4,5 , 3/5]	 */  	public void setBMonths(boolean[] bMonths){		this.bMonths = bMonths;	}	/** Days of Week	 * @param bdaysOfWeek The days of the week	 */      public void setBDaysOfWeek(boolean[] bDaysOfWeek){		this.bDaysOfWeek = bDaysOfWeek;	}	/** Days of Month setter	 * @param bdaysOfMonth The days of the month	 */  	public void setBDaysOfMonth(boolean[] bDaysOfMonth){		this.bDaysOfMonth = bDaysOfMonth;	}    /** Seconds setter	 * @param bSeconds Of ecah minute	 */  	public void setBSeconds(boolean[] bSeconds){		this.bSeconds = bSeconds;	}    /** Years setter	 * @param bYears Of ecah century	 */      public void setBYears(boolean[] bYears){        this.bYears = bYears;    }	/** bextraInfo setter	 * @param daysOfMonth There are 	 */  	public void setBExtraInfo(boolean bextraInfo) {	this.bextraInfo = bextraInfo;	}	/**Description setter	 * @param description The desciption 	 */	public void setDescription(String description) {		this.description = description;	}         /**runInBusinessDays setter     * @param true if shouldRun only in Business Days false otherwise     */     public void setBusinessDays(boolean runInBusinessDays) {          this.runInBusinessDays = runInBusinessDays;     }     /**startDate setter     * @param the starting date of this Task     */     public void setStartDate(Date startDate) {          this.startDate = startDate;     }     /**endDate setter     * @param the ending date of this Task     */     public void setEndDate(Date endDate) {          this.endDate = endDate;     }    /** Id getter    * @return the Id of this CrontabBean    */            public int getId(){		return id;	}     /** Class Name getter     * @return the Class's Name of this CrontabBean     */      	public String getClassName(){		return className;	}    /** Method Name getter     * @return the Method's Name of this CrontabBean     */      	public String getMethodName(){		return methodName;	}    /** Extra Info getter     * @return the extraInfo of this CrontabBean     */      	public String[] getExtraInfo(){		return extraInfo;	}    /** Hours getter     * @return the hours of this CrontabBean     */          public String getHours(){		return hours;	}	/** Minutes getter	 * @return the minutes of this CrontabBean	 */          public String getMinutes(){		return minutes;	}    /** Minutes getter	 * @return the minutes of this CrontabBean	 */          public String getSeconds(){		return seconds;	}	/** Months getter	 * @return the months of this CrontabBean	 */          public String getMonths(){		return months;	}	/** Hours booleans getter	 * @return boolean[] The hours to execute the Class,	 */        	public boolean[] getBHours(){		return bHours;	}	/** Minutes getter	 * @return boolean[] The minutes to execute the Class,	 */      	public boolean[] getBMinutes(){		return bMinutes;	}	/** Months Boolean getter	 * @return months The Months to execute the Class,	 */  	public boolean[] getBMonths(){		return bMonths;	}	/** Getter Days of Week	 * @return daysOfWeek The days of the week	 */      public boolean[] getBDaysOfWeek(){		return bDaysOfWeek;	}	/** Days of Month getter	 * @return daysOfMonth The days of the month	 */  	public boolean[] getBDaysOfMonth(){		return bDaysOfMonth;	}    	/** Days of Month setter	 * @return daysOfMonth The days of the month	 */  	public boolean[] getBSeconds(){		return bSeconds;	}    	/** bYears getter	 * @return bYears Of ecah century	 */      	public boolean[] getBYears(){        	return bYears;    	}	/** Returns true if theres extra info false otherwise.	 * @return extraInfo	 */   	public boolean getBExtraInfo() {		return bextraInfo;	}	/** Days of week getter	 * @return the Days of week of this CrontabBean	 */          public String getDaysOfWeek(){		return daysOfWeek;	}	/** Days of Month getter	 * @return the Id of this CrontabBean	 */          public String getDaysOfMonth(){		return daysOfMonth;	}    /** Year getter     * @return the year of this CrontabEntryBean     */    public String getYear() {	return years;	    }	/** Description getter	 * @return the Description of this CrontabBean 	 */          public String getDescription(){		return description;	}        /**runOnlyInBusinessDays getter     * @return true if shouldRun only in Business Days false otherwise     */     public boolean getBusinessDays() {         return runInBusinessDays;     }    /**startDate setter     * @param the starting date of this Task     */     public Date getStartDate() {          return startDate;     }     /**endDate setter     * @param the ending date of this Task     */     public Date getEndDate() {          return endDate;     }   /** Represents the CrotnabEntryBean in ASCII format    * @return the returning string    */        	public String toString(){        try {            CrontabParser cp = new CrontabParser();        	return cp.unmarshall(this);        } catch (Exception e) {            return e.toString();        }	}   /** Represents the CrotnabEntryBean in XML format    * @return the returning XML    */        	public String toXML(){	        StringWriter stringWriter = new StringWriter();       		PrintWriter printWriter = new PrintWriter(stringWriter, true);        	toXML(printWriter);        	return stringWriter.toString();	}   /** Returns the XML that represents this Crontab EntryBean    * @param pw The printWritter to write the XML    */        	public void toXML(PrintWriter pw) {		pw.println("<crontabentry id=\""+ id + "\">");        pw.println("<seconds>" + seconds + "</seconds> ");		pw.println("<minutes>" + minutes + "</minutes> ");        pw.println("<hours>" + hours + "</hours> ");        pw.println("<daysofmonth>" + daysOfMonth + "</daysofmonth> ");		pw.println("<months>" + months + "</months> ");		pw.println("<daysofweek>" + daysOfWeek + "</daysofweek> ");        pw.println("<years>" + years + "</years> ");        pw.println("<bussinesdays>" + runInBusinessDays +"</bussinesdays> " );        pw.println("<startDate>" + startDate +"</startDate> " );        pw.println("<endDate>" + endDate +"</endDate> " );        pw.println("<class>" + className + "</class> ");		pw.println("<method>" + methodName + "</method> "); 		if (bextraInfo) {               			for (int i = 0; i < extraInfo.length ; i++) {			pw.println("<parameters order = \"" + i + "\" >");			pw.println(extraInfo[i] + " </parameters>");			}        	}                pw.println("<description>" + description + "</description> ");		pw.println("</crontabentry>");	}         /**      * This method is here to wrap other two avaiable equals     * @param obj Object to compare with the time table entry     * @return true if the time table entry matchs with the Object given     *     false otherwise     */            public boolean equals(Object obj) {        if (obj instanceof Calendar ) {            return equalsCalendar((Calendar)obj);        } else if (obj instanceof CrontabEntryBean) {            return equalCrontabEntryBean((CrontabEntryBean)obj);        } else {            return false;        }    }     /**      * Helps to do the castings in a more simple way.     * @param obj Object to cast to CrontabEntryBean     * @return The resulting array of CrontabEntryBean     */        public static CrontabEntryBean[] toArray(Object[] obj) {        CrontabEntryBean[] ceb = new CrontabEntryBean[obj.length];        for (int i = 0; i < obj.length ; i++) {            ceb[i] = (CrontabEntryBean)obj[i];        }        return ceb;    }    /**      * Returns true if the time table entry matchs with the calendar given     * @param cal Calendar to compare with the time table entry     * @return true if the time table entry matchs with the calendar given     */    	private boolean equalsCalendar(Calendar cal) {        // IMPORTANT: Day of week and day of month in Calendar begin in        // 1, not in 0. Thats why we decrement them        return (            bSeconds[cal.get(Calendar.SECOND)] &&            bHours[cal.get(Calendar.HOUR_OF_DAY)] &&            bMinutes[cal.get(Calendar.MINUTE)] &&            bMonths[cal.get(Calendar.MONTH)] &&            bDaysOfWeek[cal.get(Calendar.DAY_OF_WEEK)-1] &&            bDaysOfMonth[cal.get(Calendar.DAY_OF_MONTH)-1]) &&            bYears[0] ;	}    /**      * Returns true if the CrontabEntryBean equals the given     * @param ceb CrontabEntryBean to compare with the CrontabEntryBean      * @return true if the CrontabEntryBean entry equals the CrontabEntryBean 	 * given     */		private boolean equalCrontabEntryBean(CrontabEntryBean ceb) {	    if ( this.id != ceb.getId()) {                return false;            }            if (!this.getSeconds().equals(ceb.getSeconds())){                return false;            }            if (!this.getMinutes().equals(ceb.getMinutes())){                return false;            }            if (!this.getHours().equals(ceb.getHours())){                return false;            }            if (!this.getDaysOfWeek().equals(ceb.getDaysOfWeek())){                return false;            }            if (!this.getDaysOfMonth().equals(ceb.getDaysOfMonth())){                return false;            }            if (!this.getMonths().equals(ceb.getMonths())){                return false;            }            if (!this.getYear().equals(ceb.getYear())){                return false;            }            if (!this.getClassName().equals(ceb.getClassName())){                return false;            }            if (this.getBExtraInfo() != ceb.getBExtraInfo()){                return false;            }            if (this.getBusinessDays() != ceb.getBusinessDays()){                return false;            }            if (this.getBExtraInfo()) {            if (this.getExtraInfo().length != ceb.getExtraInfo().length)                return false;                for (int i = 0; i < this.getExtraInfo().length ; i++) {                     if(!this.getExtraInfo()[i].trim().equals(                                ceb.getExtraInfo()[i].trim()))                    return false;                }            }            return true;	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线一区二区| 91福利精品视频| 美腿丝袜在线亚洲一区| 亚洲精品国久久99热| 日韩欧美成人一区二区| 777午夜精品免费视频| 欧美区一区二区三区| 欧美另类变人与禽xxxxx| 欧美精品在线观看播放| 欧美日精品一区视频| 欧美色精品在线视频| 欧洲亚洲精品在线| 7777精品伊人久久久大香线蕉经典版下载| 在线观看日韩一区| 欧美精品日日鲁夜夜添| 欧美电影免费观看高清完整版| 日韩欧美在线影院| 久久精品网站免费观看| 国产精品成人网| 亚洲精品国产精华液| 婷婷久久综合九色综合绿巨人| 日韩在线卡一卡二| 日本精品视频一区二区三区| 在线观看日韩国产| 日韩一级成人av| 欧美激情一二三区| 亚洲色图视频网| 日韩在线卡一卡二| 粉嫩一区二区三区在线看| 在线观看日产精品| 欧美精品久久99久久在免费线 | 91麻豆精品国产| 精品国产成人在线影院| 中文字幕永久在线不卡| 天天色综合天天| 成人免费视频国产在线观看| 欧美性xxxxxx少妇| 亚洲国产精品二十页| 午夜精品福利一区二区三区av| 国精产品一区一区三区mba桃花 | 奇米色一区二区三区四区| 亚洲欧美日韩精品久久久久| 亚洲国产精品一区二区久久恐怖片 | 国产iv一区二区三区| 欧美精品一区二区三| 国产精品伊人色| 欧美激情一区在线| 91亚洲资源网| 亚洲国产欧美在线| 日韩欧美aaaaaa| 国产成人免费视频一区| 国产精品无遮挡| 久久久精品tv| 不卡区在线中文字幕| 亚洲精品videosex极品| 欧美日韩国产美女| 精品中文字幕一区二区| 欧美极品另类videosde| 91美女片黄在线观看| 日韩二区三区四区| 久久综合精品国产一区二区三区| 国产盗摄一区二区| 亚洲精品一二三| 日韩欧美高清一区| av在线播放不卡| 日韩电影在线观看一区| 国产日韩精品一区二区浪潮av| 99久久99精品久久久久久| 亚洲成a人片综合在线| 欧美精品一区二区在线观看| a4yy欧美一区二区三区| 天天亚洲美女在线视频| 国产日韩v精品一区二区| 91国偷自产一区二区三区成为亚洲经典 | 69av一区二区三区| 粉嫩av一区二区三区在线播放| 亚洲美女精品一区| 精品国产伦一区二区三区免费| 99r精品视频| 精品一区二区在线视频| 一二三四区精品视频| 亚洲成人精品影院| 久久嫩草精品久久久久| 在线免费视频一区二区| 九色|91porny| 亚洲一级二级三级在线免费观看| 久久天天做天天爱综合色| 欧美吻胸吃奶大尺度电影| 成人性生交大片免费看中文网站| 日韩精品色哟哟| 18欧美乱大交hd1984| 久久久久久久久久久电影| 4438x成人网最大色成网站| 91网上在线视频| 国产成人精品网址| 狠狠色综合日日| 免费观看在线综合色| 亚洲午夜羞羞片| 亚洲精品欧美综合四区| 国产精品久久久久久久久久久免费看 | 韩国女主播一区二区三区| 亚洲风情在线资源站| 亚洲欧美另类小说| 国产精品丝袜在线| 国产日本亚洲高清| 日韩一本二本av| 日韩欧美一区二区免费| 欧美一区午夜精品| 91 com成人网| 欧美一级xxx| 欧美一区二区啪啪| 欧美一区日韩一区| 日韩一区二区精品| 欧美一区午夜精品| 日韩欧美精品在线| 欧美一个色资源| 欧美精品一区男女天堂| 精品日韩99亚洲| 久久亚洲综合色一区二区三区| 91精品国产入口在线| 3d成人动漫网站| 日韩视频在线你懂得| 精品久久国产字幕高潮| 久久婷婷久久一区二区三区| 国产亚洲人成网站| 欧美国产一区在线| 亚洲啪啪综合av一区二区三区| 亚洲免费看黄网站| 午夜欧美在线一二页| 日韩av中文字幕一区二区| 精品一区二区三区在线观看国产| 久久aⅴ国产欧美74aaa| 国产精品一区二区你懂的| 国产一区二区剧情av在线| 成人午夜电影久久影院| 成人免费毛片片v| 日本黄色一区二区| 91精品国产欧美一区二区18| 欧美一区二区三区免费大片| 久久婷婷成人综合色| 日韩毛片视频在线看| 五月激情综合色| 国产乱码一区二区三区| 99国产麻豆精品| 538在线一区二区精品国产| 精品av久久707| 亚洲精品视频自拍| 美女视频一区二区| 99久精品国产| 91精品蜜臀在线一区尤物| 久久精品欧美一区二区三区不卡| 亚洲色欲色欲www| 日本午夜一区二区| 成人av第一页| 欧美高清一级片在线| 国产欧美日韩亚州综合| 午夜伦理一区二区| 成人动漫视频在线| 欧美一区二区三区性视频| 国产精品高清亚洲| 麻豆一区二区三| 在线观看视频一区二区| 久久免费电影网| 水野朝阳av一区二区三区| 国产91露脸合集magnet| 欧美一区二视频| 一区av在线播放| 国产aⅴ精品一区二区三区色成熟| 欧美三级资源在线| 国产精品久久一级| 精品一区二区三区久久| 欧美日韩一区二区三区四区| 国产精品系列在线| 美女脱光内衣内裤视频久久影院| 日韩一区二区三| 亚洲在线免费播放| 懂色av一区二区三区蜜臀| 欧美成人a视频| 五月激情丁香一区二区三区| 色婷婷av一区二区三区大白胸 | 精品国产制服丝袜高跟| 亚洲成人你懂的| 欧日韩精品视频| 日韩理论片网站| 成人av资源在线观看| 久久久久久久久蜜桃| 九色综合国产一区二区三区| 91精品国产综合久久久久| 亚洲电影在线免费观看| 色噜噜久久综合| 亚洲精品第一国产综合野| 不卡的电影网站| 国产三级一区二区| 久久99精品久久久久| 日韩欧美国产精品| 精品影院一区二区久久久| 欧美一区二区三区婷婷月色| 日韩不卡在线观看日韩不卡视频| 欧美日韩亚洲高清一区二区| 亚洲午夜羞羞片|