|
|
|
|
@ -69,15 +69,15 @@ public class CfsDaemon {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ntttnDaemons = new ArrayList<NtttnDaemonThread>();
|
|
|
|
|
for(int i=0; i<1; i++){
|
|
|
|
|
NtttnDaemonThread daemon = new NtttnDaemonThread();
|
|
|
|
|
for(String digit : digits){
|
|
|
|
|
NtttnDaemonThread daemon = new NtttnDaemonThread(digit);
|
|
|
|
|
daemon.setDaemon(true);
|
|
|
|
|
ntttnDaemons.add(daemon);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dspsnDaemons = new ArrayList<DspsnDaemonThread>();
|
|
|
|
|
for(int i=0; i<1; i++){
|
|
|
|
|
DspsnDaemonThread daemon = new DspsnDaemonThread();
|
|
|
|
|
for(String digit : digits){
|
|
|
|
|
DspsnDaemonThread daemon = new DspsnDaemonThread(digit);
|
|
|
|
|
daemon.setDaemon(true);
|
|
|
|
|
dspsnDaemons.add(daemon);
|
|
|
|
|
}
|
|
|
|
|
@ -113,7 +113,7 @@ public class CfsDaemon {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
result = "시작됨";
|
|
|
|
|
} else if(daemonName.equals("getRdcxptInfoNtttnVhcle")){
|
|
|
|
|
} else if(daemonName.equals("ITF_FIS_O_012")){
|
|
|
|
|
if(ntttnDaemons == null || ntttnDaemons.isEmpty()){
|
|
|
|
|
result = "쓰레드없음";
|
|
|
|
|
} else {
|
|
|
|
|
@ -127,7 +127,7 @@ public class CfsDaemon {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
result = "시작됨";
|
|
|
|
|
} else if(daemonName.equals("getRdcxptInfoDspsnVhcle")){
|
|
|
|
|
} else if(daemonName.equals("ITF_CFS_O_013")){
|
|
|
|
|
if(dspsnDaemons == null || dspsnDaemons.isEmpty()){
|
|
|
|
|
result = "쓰레드없음";
|
|
|
|
|
} else {
|
|
|
|
|
@ -160,7 +160,7 @@ public class CfsDaemon {
|
|
|
|
|
}
|
|
|
|
|
return i;
|
|
|
|
|
|
|
|
|
|
} else if(daemonName.equals("getRdcxptInfoNtttnVhcle")){
|
|
|
|
|
} else if(daemonName.equals("ITF_FIS_O_012")){
|
|
|
|
|
if(ntttnDaemons == null){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
@ -170,7 +170,7 @@ public class CfsDaemon {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return i;
|
|
|
|
|
} else if(daemonName.equals("getRdcxptInfoDspsnVhcle")){
|
|
|
|
|
} else if(daemonName.equals("ITF_CFS_O_013")){
|
|
|
|
|
if(dspsnDaemons == null){
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
@ -205,7 +205,7 @@ public class CfsDaemon {
|
|
|
|
|
result = "종료 요청 완료";
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
|
|
} else if(daemonName.equals("getRdcxptInfoNtttnVhcle")){
|
|
|
|
|
} else if(daemonName.equals("ITF_FIS_O_012")){
|
|
|
|
|
if(ntttnDaemons == null || ntttnDaemons.isEmpty()){
|
|
|
|
|
result = "쓰레드없음";
|
|
|
|
|
return result;
|
|
|
|
|
@ -221,7 +221,7 @@ public class CfsDaemon {
|
|
|
|
|
}
|
|
|
|
|
result = "종료 요청 완료";
|
|
|
|
|
return result;
|
|
|
|
|
} else if(daemonName.equals("getRdcxptInfoDspsnVhcle")){
|
|
|
|
|
} else if(daemonName.equals("ITF_CFS_O_013")){
|
|
|
|
|
if(dspsnDaemons == null || dspsnDaemons.isEmpty()){
|
|
|
|
|
result = "쓰레드없음";
|
|
|
|
|
return result;
|
|
|
|
|
@ -276,8 +276,12 @@ public class CfsDaemon {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class NtttnDaemonThread extends Thread {
|
|
|
|
|
public NtttnDaemonThread(){
|
|
|
|
|
super("getRdcxptInfoNtttnVhcle");
|
|
|
|
|
|
|
|
|
|
private String lastDigit = null;
|
|
|
|
|
|
|
|
|
|
public NtttnDaemonThread(String lastDigit){
|
|
|
|
|
super("ITF_FIS_O_012"+lastDigit);
|
|
|
|
|
this.lastDigit = lastDigit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@ -285,7 +289,7 @@ public class CfsDaemon {
|
|
|
|
|
|
|
|
|
|
while(true){
|
|
|
|
|
|
|
|
|
|
boolean end = exemptCarInfo.getRdcxptInfoNtttnVhcle();
|
|
|
|
|
boolean end = exemptCarInfo.getRdcxptInfoNtttnVhcle(lastDigit);
|
|
|
|
|
if(end){
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@ -300,8 +304,12 @@ public class CfsDaemon {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class DspsnDaemonThread extends Thread {
|
|
|
|
|
public DspsnDaemonThread(){
|
|
|
|
|
super("getRdcxptInfoDspsnVhcle");
|
|
|
|
|
|
|
|
|
|
private String lastDigit = null;
|
|
|
|
|
|
|
|
|
|
public DspsnDaemonThread(String lastDigit){
|
|
|
|
|
super("ITF_CFS_O_013"+lastDigit);
|
|
|
|
|
this.lastDigit = lastDigit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@ -309,7 +317,7 @@ public class CfsDaemon {
|
|
|
|
|
|
|
|
|
|
while(true){
|
|
|
|
|
|
|
|
|
|
boolean end = exemptCarInfo.getRdcxptInfoDspsnVhcle();
|
|
|
|
|
boolean end = exemptCarInfo.getRdcxptInfoDspsnVhcle(lastDigit);
|
|
|
|
|
if(end){
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|