-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f88f55
commit 9e8880d
Showing
5 changed files
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,8 @@ | ||
import top.lingyuzhao.lyMbl.ddns.aliyun.AliYunDDnsManager; | ||
|
||
import java.util.logging.Logger; | ||
|
||
/** | ||
* @author zhao | ||
*/ | ||
public class Main { | ||
public static void main(String[] args) { | ||
final Logger test = Logger.getLogger("test"); | ||
try ( | ||
// 实例化 DDNS 管理器 | ||
final AliYunDDnsManager aliYunDDnsManager = new AliYunDDnsManager( | ||
// 传递日志对象 以及域名信息 | ||
test, "baidu.com", "www" | ||
) | ||
) { | ||
// 启动 每3600s 检查一次 DNS 信息 | ||
aliYunDDnsManager.start(3600000); | ||
} | ||
|
||
} | ||
} |