SMPPService.java

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;
	}
}

 

阅读更多

没有更多推荐了,返回首页