Package org.sf.bee.commons.logging

Examples of org.sf.bee.commons.logging.Logger.warning()


            logger.fine(String.format("Created service [%s]", task.toString()));
        }
        if (null != task) {
            this.addToTaskList(task);
        } else {
            logger.warning("Something was wrong in service creation. Please, check configuration file.");
        }
    }

    public void addOneShotService(final String serviceName,
            final Runnable instance, final long delay, final TimeUnit unit) {
View Full Code Here


                                    "Stopped service #%s [%s]",
                                    i, task.toString()));
                        }
                        task = null;
                    } else {
                        logger.warning("Found NULL task in task list.");
                    }
                } catch (Exception e) {
                    logger.severe(e.toString());
                }
            }
View Full Code Here

    }

    private void scheduleAll(final List<TaskConfigurationItem> items) {
        final Logger logger = this.getLogger();
        if (null == items || items.isEmpty()) {
            logger.warning("No services returned to TaskManager from Configuration Manager.");
            return;
        }
        for (final TaskConfigurationItem item : items) {
            this.add(item);
        }
View Full Code Here

                return null;
            }
        } else if (taskObject instanceof Callable) {
            this.schedule((Callable) taskObject, scheduled, delay, unit);
        } else {
            logger.warning(String.format(
                    "[%s] Invalid service instance. Only Runnable or Callable " +
                    "objects are allowed.\n" +
                    "Service '%s' of class '%s' has not been activated " +
                    "in '%s' mode.",
                    this.getClass().getSimpleName(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.