|
|
|
@@ -72,7 +72,7 @@ public abstract class Broadcast |
|
|
|
private int completedJobCount; |
|
|
|
|
|
|
|
private ScheduledExecutorService scheduler; |
|
|
|
private int serviceThreadPoolSize; |
|
|
|
private int serviceThreadPoolSize_default; |
|
|
|
private int jobsTotal; |
|
|
|
|
|
|
|
public static enum BroadcastState |
|
|
|
@@ -433,7 +433,7 @@ public abstract class Broadcast |
|
|
|
{ |
|
|
|
myLogger.debug("Entering Broadcast.doPost method"); |
|
|
|
BroadcastException myException = null; |
|
|
|
this.serviceThreadPoolSize = commEngine.getServiceThreadPoolSize(); |
|
|
|
serviceThreadPoolSize_default = commEngine.getServiceThreadPoolSize(); |
|
|
|
try |
|
|
|
{ |
|
|
|
boolean notInService = commEngine.notInService(); |
|
|
|
@@ -517,6 +517,7 @@ public abstract class Broadcast |
|
|
|
// at the same time, setting up a list of service thread names |
|
|
|
// for use by derived class to set up contexts in which |
|
|
|
// these threads run. |
|
|
|
int serviceThreadPoolSize = getServiceThreadPoolSize(); |
|
|
|
myLogger.debug("At creating service threads, serviceThreadPoolSize = " + serviceThreadPoolSize); |
|
|
|
List<String> serviceThreadNames = new ArrayList<String>(); |
|
|
|
for (int i = 0; i < serviceThreadPoolSize; i++) |
|
|
|
@@ -542,6 +543,11 @@ public abstract class Broadcast |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
protected int getServiceThreadPoolSize() |
|
|
|
{ |
|
|
|
return serviceThreadPoolSize_default; |
|
|
|
} |
|
|
|
|
|
|
|
protected abstract void returnPrerequisites(ServicePrerequisites prerequisites); |
|
|
|
|
|
|
|
/** |
|
|
|
@@ -1170,11 +1176,6 @@ public abstract class Broadcast |
|
|
|
return completedJobCount; |
|
|
|
} |
|
|
|
|
|
|
|
protected void setServiceThreadPoolsize(int serviceThreadPoolSize) |
|
|
|
{ |
|
|
|
this.serviceThreadPoolSize = serviceThreadPoolSize; |
|
|
|
} |
|
|
|
|
|
|
|
public String getBroadcastType() { |
|
|
|
return broadcastType; |
|
|
|
} |
|
|
|
|