public static boolean isJBoss() { if (!jboss) { jboss = detect(JBOSS_CLASS); } return jboss; }
/** * Resumes a scheduled job * * @param name * Scheduled job name */ public void resumeScheduledJob(String name) { ISchedulingService service = (ISchedulingService) ScopeUtils.getScopeService(scope, ISchedulingService.class, QuartzSchedulingService.class, false); service.resumeScheduledJob(name); }
/** * Returns available SharedObject names as List * * @param scope * Scope that SO belong to */ public Set<String> getSharedObjectNames(IScope scope) { ISharedObjectService service = (ISharedObjectService) ScopeUtils.getScopeService(scope, ISharedObjectService.class, SharedObjectService.class, false); return service.getSharedObjectNames(scope); }
public static boolean isResin() { if (!resin) { resin = detect(RESIN_CLASS); } return resin; }
/** * Removes scheduled job from scheduling service list * * @param name * Scheduled job name */ public void removeScheduledJob(String name) { ISchedulingService service = (ISchedulingService) ScopeUtils.getScopeService(scope, ISchedulingService.class, QuartzSchedulingService.class, false); service.removeScheduledJob(name); }
public static boolean isJetty() { if (!jetty) { jetty = detect(JETTY_CLASS); } return jetty; }
/** * Returns list of scheduled job names * * @return List of scheduled job names as list of Strings. */ public List<String> getScheduledJobNames() { ISchedulingService service = (ISchedulingService) ScopeUtils.getScopeService(scope, ISchedulingService.class, QuartzSchedulingService.class, false); return service.getScheduledJobNames(); }
public static boolean isJOnAS() { if (!jonas) { jonas = detect(JONAS_CLASS); } return jonas; }
/** * Checks whether there's a SO with given scope and name * * @param scope * Scope that SO belong to * @param name * Name of SharedObject */ public boolean hasSharedObject(IScope scope, String name) { ISharedObjectService service = (ISharedObjectService) ScopeUtils.getScopeService(scope, ISharedObjectService.class, SharedObjectService.class, false); return service.hasSharedObject(scope, name); }
public static boolean isWebLogic() { if (!weblogic) { weblogic = detect(WEBLOGIC_CLASS); } return weblogic; }
/** {@inheritDoc} */ public boolean clearSharedObjects(IScope scope, String name) { ISharedObjectService service = (ISharedObjectService) ScopeUtils.getScopeService(scope, ISharedObjectService.class, SharedObjectService.class, false); return service.clearSharedObjects(scope, name); }
public ISharedObject getScopeStatisticsSO(IScope scope) { ISharedObjectService soService = (ISharedObjectService) ScopeUtils.getScopeService(scope, ISharedObjectService.class, false); return soService.getSharedObject(scope, SCOPE_STATS_SO_NAME, false); }
public static boolean isWebSphere() { if (!websphere) { websphere = detect(WEBSPHERE_CLASS); } return websphere; }
/** * Returns shared object from given scope by name. * * @param scope * Scope that shared object belongs to * @param name * Name of SharedObject * @return Shared object instance with name given */ public ISharedObject getSharedObject(IScope scope, String name) { ISharedObjectService service = (ISharedObjectService) ScopeUtils.getScopeService(scope, ISharedObjectService.class, SharedObjectService.class, false); return service.getSharedObject(scope, name); }
public static boolean isGeronimo() { if (!geronimo) { geronimo = detect(GERONIMO_CLASS); } return geronimo; }
/** {@inheritDoc} */ public boolean hasBroadcastStream(IScope scope, String name) { IProviderService service = (IProviderService) ScopeUtils.getScopeService(scope, IProviderService.class, ProviderService.class); return (service.getLiveProviderInput(scope, name, false) != null); }
/** * Pauses a scheduled job * * @param name * Scheduled job name */ public void pauseScheduledJob(String name) { ISchedulingService service = (ISchedulingService) ScopeUtils.getScopeService(scope, ISchedulingService.class, QuartzSchedulingService.class, false); service.pauseScheduledJob(name); }
public ISharedObject getSharedObjectStatisticsSO(IScope scope) { ISharedObjectService soService = (ISharedObjectService) ScopeUtils.getScopeService(scope, ISharedObjectService.class, false); return soService.getSharedObject(scope, SO_STATS_SO_NAME, false); }
/** * Adds a scheduled job that's gonna be executed once. Please note that the jobs are not saved if Red5 is restarted in the meantime. * * @param timeDelta * Time offset in milliseconds from the current date when given job should be run * @param job * Scheduled job object * * @return Name of the scheduled job */ public String addScheduledOnceJob(long timeDelta, IScheduledJob job) { ISchedulingService service = (ISchedulingService) ScopeUtils.getScopeService(scope, ISchedulingService.class, QuartzSchedulingService.class, false); return service.addScheduledOnceJob(timeDelta, job); }