Package jadex.bridge.service.types.cron
Class CronJob<T>
- java.lang.Object
-
- jadex.bridge.service.types.cron.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 IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>>
command
The command.protected 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, IFilter<java.lang.Long> filter, IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command)
Create a new cron job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>>
getCommand()
Get the command.IFilter<java.lang.Long>
getFilter()
Get the filter.java.lang.String
getId()
Get the id.java.lang.String
getPattern()
Get the pattern.void
setCommand(IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command)
Set the command.void
setFilter(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.
-
-
-
Field Detail
-
id
protected java.lang.String id
The id.
-
pattern
protected java.lang.String pattern
The time pattern.
-
filter
protected IFilter<java.lang.Long> filter
The filter.
-
command
protected IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command
The command.
-
-
Constructor Detail
-
CronJob
public CronJob()
Create a new cronjob.
-
CronJob
public CronJob(java.lang.String pattern, IFilter<java.lang.Long> filter, IResultCommand<ISubscriptionIntermediateFuture<T>,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 IFilter<java.lang.Long> getFilter()
Get the filter.- Returns:
- The filter.
-
setFilter
public void setFilter(IFilter<java.lang.Long> filter)
Set the filter.- Parameters:
filter
- The filter to set.
-
getCommand
public IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> getCommand()
Get the command.- Returns:
- The command.
-
setCommand
public void setCommand(IResultCommand<ISubscriptionIntermediateFuture<T>,Tuple2<IInternalAccess,java.lang.Long>> command)
Set the command.- Parameters:
command
- The command to set.
-
-