excutequeue.java
来自「这是有关于一个视频自动压缩系统的java+xml构建的代码」· Java 代码 · 共 102 行
JAVA
102 行
package autoencodeinfinit.QueueProcess;/** * ExcuteQueue class provide a easy way to excute the exist ReCodeQueue * and provide the function to control the excute of the queue * @author ulysess */public class ExcuteQueue { private ReCodeQueue queue = new ReCodeQueue(); private int Processed = 0,Waiting = 0,failed = 0,thread = 1; private String Excutetime = "0",averflamerate = "0",status = "failed"; /** * Excute the queue item by mencoder * @param index : The index number of queue item to be excute */ public void MencoderExecute(int index) { } /** * Excute the whole queue with Mencoder */ public void MencoderExecute() { } /** * Excute the queue item by FFMpeg * @param index */ public void FFMpegExecute(int index) { } /** * Excute the whole queue with FFMpeg */ public void FFMpegExecute() { } /** * Cease the specified Thread * @param threadnumber The index number of thread to be ceased * @return Whether successful cease the thread */ public boolean ceaseThread(int threadnumber) { return true; } /** * Kill the specified THread can used only can't cease the thread * @param threadnumber The index number of thread to be killed * @return Whether successful kill the thread */ public boolean killThread(int threadnumber) { return true; } /** * Halt the Queue , notice this method halt the excute of queue so the * thread which processing will not be interrupt * @return */ public boolean haltQueue() { return true; } /** * Set how many thread this program excute the queue with * @return */ public int setThread(short threads) { return 1; } /** * Reflesh the queue,will load the queue xml data again,general used after * one thread Finished */ public void RefleshQueue() { } /** * Write status informations into the log file */ private void WriteLog() { } /** * Report status to the terminal */ private void ReportStatus() { }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?