ch.busyboxes.agoo.model
Class WatcherTask

java.lang.Object
  extended by ch.busyboxes.agoo.model.WatcherTask

public class WatcherTask
extends java.lang.Object

A file watched by the Agoo system

Author:
julien@busyboxes.ch

Constructor Summary
WatcherTask()
           
 
Method Summary
 java.util.Date getCreated()
          Get the date when the task was created
 java.lang.Long getId()
          Returns the id of the watched file
 java.lang.Long getTargetId()
          Gets the target id
 TaskState getTaskState()
          Gets the task state
 TaskType getTaskType()
          Gets the task type
 void setCreated(java.util.Date created)
          Sets the task's creation date
 void setTargetId(java.lang.Long targetId)
          Sets the target id
 void setTaskState(TaskState taskState)
          Sets the task state
 void setTaskType(TaskType taskType)
          Sets the task type
 java.lang.String toString()
          String representation of the task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WatcherTask

public WatcherTask()
Method Detail

getId

public java.lang.Long getId()
Returns the id of the watched file

Returns:
the id of the watched file

getTaskType

public TaskType getTaskType()
Gets the task type

Returns:
the taskType

setTaskType

public void setTaskType(TaskType taskType)
Sets the task type

Parameters:
taskType - the taskType to set

getTaskState

public TaskState getTaskState()
Gets the task state

Returns:
the taskState

setTaskState

public void setTaskState(TaskState taskState)
Sets the task state

Parameters:
taskState - the taskState to set

getTargetId

public java.lang.Long getTargetId()
Gets the target id

Returns:
the target id

setTargetId

public void setTargetId(java.lang.Long targetId)
Sets the target id

Parameters:
targetId - the targetId to set

getCreated

public java.util.Date getCreated()
Get the date when the task was created

Returns:
the created

setCreated

public void setCreated(java.util.Date created)
Sets the task's creation date

Parameters:
created - the created to set

toString

public java.lang.String toString()
String representation of the task

Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.