|
|
|
@@ -48,6 +48,7 @@ public abstract class Broadcast |
|
|
|
private static final long SLEEP_BETWEEN_JOBS_DEFAULT = 0; |
|
|
|
static final String DAILY_STOP_KEY = "daily_stop"; |
|
|
|
static final String DAILY_START_KEY = "daily_start"; |
|
|
|
static final String CHANNEL_KEY = "channel"; |
|
|
|
|
|
|
|
static final String CSV_LOGGER = "csv"; |
|
|
|
|
|
|
|
@@ -77,6 +78,7 @@ public abstract class Broadcast |
|
|
|
private Postback postback; |
|
|
|
protected String daily_start = ""; |
|
|
|
protected String daily_stop = ""; |
|
|
|
public JSONObject channel_json; |
|
|
|
|
|
|
|
/** |
|
|
|
* Sleep time in milliseconds between consecutive job processing (actualliy batch) |
|
|
|
@@ -1022,7 +1024,7 @@ public abstract class Broadcast |
|
|
|
if (reason == ACTION_BY_CLOCK) { |
|
|
|
boolean inAcceptqble = false; |
|
|
|
for (String acceptable : getPauseModesResumableByClock()) { |
|
|
|
if (this.reason.equalsIgnoreCase(acceptable)) inAcceptqble = true; |
|
|
|
if (this.reason.startsWith(acceptable)) inAcceptqble = true; |
|
|
|
} |
|
|
|
if (!inAcceptqble) return null; |
|
|
|
} |
|
|
|
@@ -1467,8 +1469,6 @@ public abstract class Broadcast |
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public JSONObject getConfigJSON() { |
|
|
|
JSONObject dataMap = new JSONObject(); |
|
|
|
dataMap.put(DAILY_START_KEY, daily_start); |
|
|
|
dataMap.put(DAILY_STOP_KEY, daily_stop); |
|
|
|
childAddConfigJSON(dataMap); |
|
|
|
return dataMap; |
|
|
|
} |
|
|
|
@@ -1500,5 +1500,9 @@ public abstract class Broadcast |
|
|
|
job.setErrorText(errorText); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
public String getChannelName() { |
|
|
|
return (String)channel_json.get("name"); |
|
|
|
} |
|
|
|
|
|
|
|
} |