Class CronJob<T>


  • public class CronJob<T>
    extends java.lang.Object
    The cron job consists of: - a unique id - a time pattern filter - a command
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected jadex.commons.IResultCommand<jadex.commons.future.ISubscriptionIntermediateFuture<T>,​jadex.commons.Tuple2<IInternalAccess,​java.lang.Long>> command
      The command.
      protected jadex.commons.IFilter<java.lang.Long> filter
      The filter.
      protected java.lang.String id
      The id.
      protected java.lang.String pattern
      The time pattern.
    • Constructor Summary

      Constructors 
      Constructor Description
      CronJob()
      Create a new cronjob.
      CronJob​(java.lang.String pattern, jadex.commons.IFilter<java.lang.Long> filter, jadex.commons.IResultCommand<jadex.commons.future.ISubscriptionIntermediateFuture<T>,​jadex.commons.Tuple2<IInternalAccess,​java.lang.Long>> command)
      Create a new cron job.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jadex.commons.IResultCommand<jadex.commons.future.ISubscriptionIntermediateFuture<T>,​jadex.commons.Tuple2<IInternalAccess,​java.lang.Long>> getCommand()
      Get the command.
      jadex.commons.IFilter<java.lang.Long> getFilter()
      Get the filter.
      java.lang.String getId()
      Get the id.
      java.lang.String getPattern()
      Get the pattern.
      void setCommand​(jadex.commons.IResultCommand<jadex.commons.future.ISubscriptionIntermediateFuture<T>,​jadex.commons.Tuple2<IInternalAccess,​java.lang.Long>> command)
      Set the command.
      void setFilter​(jadex.commons.IFilter<java.lang.Long> filter)
      Set the filter.
      void setId​(java.lang.String id)
      Set the id.
      void setPattern​(java.lang.String pattern)
      Set the pattern.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        protected java.lang.String id
        The id.
      • pattern

        protected java.lang.String pattern
        The time pattern.
      • filter

        protected jadex.commons.IFilter<java.lang.Long> filter
        The filter.
      • command

        protected jadex.commons.IResultCommand<jadex.commons.future.ISubscriptionIntermediateFuture<T>,​jadex.commons.Tuple2<IInternalAccess,​java.lang.Long>> command
        The command.
    • Constructor Detail

      • CronJob

        public CronJob()
        Create a new cronjob.
      • CronJob

        public CronJob​(java.lang.String pattern,
                       jadex.commons.IFilter<java.lang.Long> filter,
                       jadex.commons.IResultCommand<jadex.commons.future.ISubscriptionIntermediateFuture<T>,​jadex.commons.Tuple2<IInternalAccess,​java.lang.Long>> command)
        Create a new cron job.
    • Method Detail

      • getId

        public java.lang.String getId()
        Get the id.
        Returns:
        The id.
      • setId

        public void setId​(java.lang.String id)
        Set the id.
        Parameters:
        id - The id to set.
      • getPattern

        public java.lang.String getPattern()
        Get the pattern.
        Returns:
        The pattern.
      • setPattern

        public void setPattern​(java.lang.String pattern)
        Set the pattern.
        Parameters:
        pattern - The pattern to set.
      • getFilter

        public jadex.commons.IFilter<java.lang.Long> getFilter()
        Get the filter.
        Returns:
        The filter.
      • setFilter

        public void setFilter​(jadex.commons.IFilter<java.lang.Long> filter)
        Set the filter.
        Parameters:
        filter - The filter to set.
      • getCommand

        public jadex.commons.IResultCommand<jadex.commons.future.ISubscriptionIntermediateFuture<T>,​jadex.commons.Tuple2<IInternalAccess,​java.lang.Long>> getCommand()
        Get the command.
        Returns:
        The command.
      • setCommand

        public void setCommand​(jadex.commons.IResultCommand<jadex.commons.future.ISubscriptionIntermediateFuture<T>,​jadex.commons.Tuple2<IInternalAccess,​java.lang.Long>> command)
        Set the command.
        Parameters:
        command - The command to set.