本文整理了Java中org.jbundle.thin.base.util.Application.getTaskScheduler()
方法的一些代码示例,展示了Application.getTaskScheduler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.getTaskScheduler()
方法的具体详情如下:
包路径:org.jbundle.thin.base.util.Application
类名称:Application
方法名:getTaskScheduler
暂无
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* RunCalendarEntry Method.
*/
public void runCalendarEntry(Map<String,Object> properties)
{
ProcessRunnerTask task = new ProcessRunnerTask(null, null, properties);
((Application)this.getTask().getApplication()).getTaskScheduler().addTask(task);
}
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
Date date = null;
((Application)this.getTask().getApplication()).getTaskScheduler().addTask(PrivateTaskScheduler.EMPTY_TIMED_JOBS); // Clear out any jobs queued for a later time
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
TaskScheduler js = ((Application)task.getApplication()).getTaskScheduler();
js.addTask(strCommand);
return true;
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
if (task == null)
TaskScheduler js = ((Application)task.getApplication()).getTaskScheduler();
js.addTask(strCommand);
return true;
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Handle this message.
* Get the name of this process and run it.
*/
public int handleMessage(BaseMessage message)
{
String strClassName = this.getMessageProcessorClassName(message);
if ((strClassName == null) || (strClassName.length() == 0))
return this.handleOtherMessage(message);
message.consume(); // I'll be handling this one.
String strParams = Utility.addURLParam(null, DBParams.PROCESS, strClassName);
Application application = m_application;
if (message.getProcessedByClientSession() instanceof TaskSession)
application = ((TaskSession)message.getProcessedByClientSession()).getApplication(); // If I have the task session, run this task under the same app
MessageProcessRunnerTask task = new MessageProcessRunnerTask(application, strParams, null);
task.setMessage(message);
m_application.getTaskScheduler().addTask(task);
return DBConstants.NORMAL_RETURN; // No need to call super.
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Handle this message.
* Get the name of this process and run it.
*/
public int handleMessage(BaseMessage message)
{
String strClassName = this.getMessageProcessorClassName(message);
if ((strClassName == null) || (strClassName.length() == 0))
return this.handleOtherMessage(message);
message.consume(); // I'll be handling this one.
String strParams = Utility.addURLParam(null, DBParams.PROCESS, strClassName);
App application = m_application;
if (message.getProcessedByClientSession() instanceof RemoteTask)
if (message.getProcessedByClientSession() instanceof Task) // Always
application = ((Task)message.getProcessedByClientSession()).getApplication(); // If I have the task session, run this task under the same app
MessageProcessRunnerTask task = new MessageProcessRunnerTask(application, strParams, null);
task.setMessage(message);
m_application.getTaskScheduler().addTask(task);
return DBConstants.NORMAL_RETURN; // No need to call super.
}
/**
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.screen
app.getTaskScheduler().addTask(new ProcessRunnerTask(app, strProcess, null));
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.screen
app.getTaskScheduler().addTask(new ProcessRunnerTask(app, strProcess, null));
内容来源于网络,如有侵权,请联系作者删除!