org.jcrontab
Class CrontabBean

java.lang.Object
  |
  +--org.jcrontab.CrontabBean
All Implemented Interfaces:
java.io.Serializable

public class CrontabBean
extends java.lang.Object
implements java.io.Serializable

This Bean represents an Event. Basically defines all the information necesary. Extends Seriazable to be saved in binary format when neded.

Version:
$Revision: 1.16 $
Author:
$Author: iolalla $
See Also:
Serialized Form

Field Summary
 boolean bextraInfo
          This CrontabBean bextraInfo to save time if the extraInfo Exists
 java.util.Calendar cal
          This calendar defines the CrontabBean
 java.lang.String className
          This CrontabBean name
 java.lang.String[] extraInfo
          This CrontabBean extraInfo I mean the parameters given :-)
 int id
          This CrontabBean Id
 java.lang.String methodName
          This CrontabBean methodName
 long timeMillis
          Time in milliseconds from 1970 to the execution of this CrontabBean
 
Constructor Summary
CrontabBean()
          Default void constuctor.
 
Method Summary
 java.util.Calendar getCalendar()
          This CrontabBean calendar getter
 java.lang.String getClassName()
          This CrontabBean className getter
 java.lang.String[] getExtraInfo()
          This CrontabBean extraInfo getter
 int getId()
          This CrontabBean id getter
 java.lang.String getMethodName()
          This CrontabBean methodName getter
 long getTime()
          This CrontabBean timeMillis getter
 void setCalendar(java.util.Calendar cal)
          This CrontabBean calendar setter
 void setClassName(java.lang.String className)
          This CrontabBean className setter
 void setExtraInfo(java.lang.String[] extraInfo)
          This CrontabBean extraInfo setter
 void setId(int id)
          This CrontabBean Id setter
 void setMethodName(java.lang.String methodName)
          This CrontabBean methodName setter
 void setTime(long timeMillis)
          This CrontabBean timeMillis setter
 java.lang.String toString()
          This Method returns this Bean in a String
 java.lang.String toXML()
          This Method returns this Bean in a xml format This method is here to make easier integration with web-apps and other systems
 void toXML(java.io.PrintWriter pw)
          This Method writes this Bean in the given PrintWriter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cal

public java.util.Calendar cal
This calendar defines the CrontabBean


timeMillis

public long timeMillis
Time in milliseconds from 1970 to the execution of this CrontabBean


id

public int id
This CrontabBean Id


className

public java.lang.String className
This CrontabBean name


methodName

public java.lang.String methodName
This CrontabBean methodName


bextraInfo

public boolean bextraInfo
This CrontabBean bextraInfo to save time if the extraInfo Exists


extraInfo

public java.lang.String[] extraInfo
This CrontabBean extraInfo I mean the parameters given :-)

Constructor Detail

CrontabBean

public CrontabBean()
Default void constuctor.

Method Detail

setId

public void setId(int id)
This CrontabBean Id setter


setTime

public void setTime(long timeMillis)
This CrontabBean timeMillis setter

Parameters:
timeMillis - Time in Milliseconds from 1970

setClassName

public void setClassName(java.lang.String className)
This CrontabBean className setter

Parameters:
className - the name of the class

setMethodName

public void setMethodName(java.lang.String methodName)
This CrontabBean methodName setter

Parameters:
methodName - The name of the given Method

setExtraInfo

public void setExtraInfo(java.lang.String[] extraInfo)
This CrontabBean extraInfo setter

Parameters:
extraInfo - the parameters given to the class

setCalendar

public void setCalendar(java.util.Calendar cal)
This CrontabBean calendar setter

Parameters:
cal - the given calendar

getId

public int getId()
This CrontabBean id getter

Returns:
id the bean id

getTime

public long getTime()
This CrontabBean timeMillis getter

Returns:
timeMillis the bean timeMillis

getCalendar

public java.util.Calendar getCalendar()
This CrontabBean calendar getter

Returns:
cal the beans calendar

getClassName

public java.lang.String getClassName()
This CrontabBean className getter

Returns:
className the beans className

getMethodName

public java.lang.String getMethodName()
This CrontabBean methodName getter

Returns:
methodName the beans methodName

getExtraInfo

public java.lang.String[] getExtraInfo()
This CrontabBean extraInfo getter

Returns:
extraInfo the beans parameters

toString

public java.lang.String toString()
This Method returns this Bean in a String

Overrides:
toString in class java.lang.Object
Returns:
String that represents this bean

toXML

public java.lang.String toXML()
This Method returns this Bean in a xml format This method is here to make easier integration with web-apps and other systems

Returns:
String that represents this bean in xml

toXML

public void toXML(java.io.PrintWriter pw)
This Method writes this Bean in the given PrintWriter. Can pick this from a servlet Context or a HttpResponse

Parameters:
pw - PrintWriter where the xml eban will be written