`
yinhj
  • 浏览: 73973 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

SMPPService.java

    博客分类:
  • IMTI
阅读更多
package com.msp.smg;

public class SMPPService {
	private String sysId = "";
	private String syspwd = "";
	private String smscIP = "";
	private int smscPort = 0;
	private int smscRequestCount = 1;
	private String smscName="";
	
	public void setSmscName(String smscName) {
		this.smscName = smscName;
	}
	public SMPPService()
	{
		
	}
	public void setSmscIP(String smscIP) {
		this.smscIP = smscIP;
	}

	public void setSmscPort(int smscPort) {
		this.smscPort = smscPort;
	}

	public void startSender() {

		RequestWorker requestWorker;

		for (int i = 0; i < smscRequestCount; i++) {
			requestWorker = new RequestWorker();
			requestWorker.setSmscIP(smscIP);
			requestWorker.setSmscPort(smscPort);
			requestWorker.setSysId(sysId);
			requestWorker.setSyspwd(syspwd);
			requestWorker.start();
			System.out.println("smscName="+smscName+",index="+i);

		}

	}
	public void setSmscRequestCount(int smscRequestCount) {
		this.smscRequestCount = smscRequestCount;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public void setSyspwd(String syspwd) {
		this.syspwd = syspwd;
	}
}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics