org.jcrontab
Class CrontabBean

java.lang.Object
  extended byorg.jcrontab.CrontabBean
All Implemented Interfaces:
Serializable

public class CrontabBean
extends Object
implements 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.18 $
Author:
$Author: iolalla $
See Also:
Serialized Form

Field Summary
 boolean bextraInfo
          This CrontabBean bextraInfo to save time if the extraInfo Exists
 Calendar cal
          This calendar defines the CrontabBean
 String className
          This CrontabBean name
 String[] extraInfo
          This CrontabBean extraInfo I mean the parameters given :-)
 int id
          This CrontabBean Id
 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
 Calendar getCalendar()
          This CrontabBean calendar getter
 String getClassName()
          This CrontabBean className getter
 String[] getExtraInfo()
          This CrontabBean extraInfo getter
 int getId()
          This CrontabBean id getter
 String getMethodName()
          This CrontabBean methodName getter
 long getTime()
          This CrontabBean timeMillis getter
 void setCalendar(Calendar cal)
          This CrontabBean calendar setter
 void setClassName(String className)
          This CrontabBean className setter
 void setExtraInfo(String[] extraInfo)
          This CrontabBean extraInfo setter
 void setId(int id)
          This CrontabBean Id setter
 void setMethodName(String methodName)
          This CrontabBean methodName setter
 void setTime(long timeMillis)
          This CrontabBean timeMillis setter
static CrontabBean[] toArray(Object[] obj)
          Helps to do the castings in a more simple way.
 String toString()
          This Method returns this Bean in a String
 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(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 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 String className
This CrontabBean name


methodName

public String methodName
This CrontabBean methodName


bextraInfo

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


extraInfo

public 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(String className)
This CrontabBean className setter

Parameters:
className - the name of the class

setMethodName

public void setMethodName(String methodName)
This CrontabBean methodName setter

Parameters:
methodName - The name of the given Method

setExtraInfo

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

Parameters:
extraInfo - the parameters given to the class

setCalendar

public void setCalendar(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 Calendar getCalendar()
This CrontabBean calendar getter

Returns:
cal the beans calendar

getClassName

public String getClassName()
This CrontabBean className getter

Returns:
className the beans className

getMethodName

public String getMethodName()
This CrontabBean methodName getter

Returns:
methodName the beans methodName

getExtraInfo

public String[] getExtraInfo()
This CrontabBean extraInfo getter

Returns:
extraInfo the beans parameters

toString

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

Returns:
String that represents this bean

toXML

public 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(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

toArray

public static CrontabBean[] toArray(Object[] obj)
Helps to do the castings in a more simple way.

Parameters:
obj - Object to cast to CrontabEntryBean
Returns:
The resulting array of CrontabEntryBean