⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exceptionmovingfilejmxnotification.java

📁 一个简易的轮训小程序 哈哈哈哈哈哈后 嘿嘿嘿嘿黑诶
💻 JAVA
字号:
package org.sadun.util.polling;

import java.io.File;

import javax.management.ObjectName;

public class ExceptionMovingFileJMXNotification extends BaseJMXNotification {

    public static final String NOTIFICATION_TYPE = "org.sadun.polling.jmx.exception.file.moving";
    
    private File origin;
    private File destination;
    
    ExceptionMovingFileJMXNotification(
            ObjectName pollerName, SequenceNumberGenerator sqg,
            File file, File dest) {
        super(NOTIFICATION_TYPE, pollerName, sqg, System.currentTimeMillis());
        this.origin=file;
        this.destination=dest;
    }

    /**
     * Return the destination of the move operation which failed to execute.
     * @return the destination of the move operation which failed to execute.
     */
    public File getDestination() {
        return destination;
    }

    /**
     * Return the file which has failed to move.
     * @return the file which has failed to move.
     */
    public File getOrigin() {
        return origin;
    }

    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -