MCPcopy Create free account
hub / github.com/annmuor/jnode / run

Method run

jnode-core/src/jnode/jscript/JscriptExecutor.java:107–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 @Override
108 public void run() {
109 if (!MainHandler.getCurrentInstance().getBooleanProperty(
110 JSCRIPT_ENABLE, true)) {
111 return;
112 }
113
114 Calendar now = Calendar.getInstance(Locale.US);
115 List<Schedule> items = ORMManager.get(Schedule.class).getAll();
116 logger.l5(MessageFormat.format("{0} items in queue", items.size()));
117 if (items.size() == 0) {
118 return;
119 }
120 tryRunItemsByDate(now, items);
121
122 }
123
124 private static void tryRunItemsByDate(Calendar now, List<Schedule> items) {
125 final ScriptEngine engine = createScriptEngine();

Callers

nothing calls this directly

Calls 8

getCurrentInstanceMethod · 0.95
getMethod · 0.95
tryRunItemsByDateMethod · 0.95
getBooleanPropertyMethod · 0.80
getInstanceMethod · 0.80
getAllMethod · 0.80
l5Method · 0.80
formatMethod · 0.80

Tested by

no test coverage detected