1 25 package org.ofbiz.service; 26 27 import java.util.Map ; 28 29 import org.ofbiz.entity.GenericDelegator; 30 import org.ofbiz.security.Security; 31 import org.ofbiz.service.jms.JmsListenerFactory; 32 import org.ofbiz.service.job.JobManager; 33 34 41 public interface LocalDispatcher { 42 43 52 public Map runSync(String serviceName, Map context) throws GenericServiceException; 53 54 65 public Map runSync(String serviceName, Map context, int transactionTimeout, boolean requireNewTransaction) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 66 67 75 public void runSyncIgnore(String serviceName, Map context) throws GenericServiceException; 76 77 87 public void runSyncIgnore(String serviceName, Map context, int transactionTimeout, boolean requireNewTransaction) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 88 89 101 public void runAsync(String serviceName, Map context, GenericRequester requester, boolean persist, int transactionTimeout, boolean requireNewTransaction) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 102 103 113 public void runAsync(String serviceName, Map context, GenericRequester requester, boolean persist) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 114 115 125 public void runAsync(String serviceName, Map context, GenericRequester requester) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 126 127 136 public void runAsync(String serviceName, Map context, boolean persist) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 137 138 146 public void runAsync(String serviceName, Map context) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 147 148 158 public GenericResultWaiter runAsyncWait(String serviceName, Map context, boolean persist) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 159 160 169 public GenericResultWaiter runAsyncWait(String serviceName, Map context) throws ServiceAuthException, ServiceValidationException, GenericServiceException; 170 171 176 public void registerCallback(String serviceName, GenericServiceCallback cb); 177 178 193 public void schedule(String poolName, String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime, int maxRetry) throws GenericServiceException; 194 195 196 207 public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) throws GenericServiceException; 208 209 219 public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count) throws GenericServiceException; 220 221 231 public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, long endTime) throws GenericServiceException; 232 233 240 public void schedule(String serviceName, Map context, long startTime) throws GenericServiceException; 241 242 246 public JobManager getJobManager(); 247 248 252 public JmsListenerFactory getJMSListeneFactory(); 253 254 258 public GenericDelegator getDelegator(); 259 260 264 public Security getSecurity(); 265 266 270 public String getName(); 271 272 276 public DispatchContext getDispatchContext(); 277 278 281 public void deregister(); 282 } 283 284 | Popular Tags |