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

📄 clientthread.java

📁 WAP PUSH后台源码,WAP PUSH后台源码
💻 JAVA
字号:
package com.sxit.wap.sncs;

/**
 * <p>Title: wap II</p>
 * <p>Description:运行于主机上,向每台被监控的机器发出连接请求 </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: sxit</p>
 * @author not attributable
 * @version 1.0
 */

import java.net.*;
import java.util.Vector;
import com.sxit.wap.netstatlog.*;
public class ClientThread extends Thread {
	private Client client;
	public ClientThread ( Client client ) {
		this.client = client;
	}
	public void run () {
		while (true) {
			try {
				check();
				this.sleep ( 1000 * 60 * 10 );
			} catch ( Exception e1 ) {
			}
		}
	}

	public void check () {
		/**循环检测每台被监控的机器是否处于连通状态*/
		ProcessCommand processCommand = new  ProcessCommand();
		java.util.Vector list = client.getList();
		for (int i=0; i< list.size(); i++ ) {
			//NetstatLogBean NetstatLogBean = ( NetstatLogBean ) list.get ( i );
			System.out.println("Connection");
			//new NetNoteLoginManager ().logByIp ( netNote.getMachineIP (), processCommand.isPingOk ( netNote.getMachineIP () ) );
		}
	}
}

⌨️ 快捷键说明

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