misc
Class SchedulJob

java.lang.Object
  extended by misc.SchedulJob

public class SchedulJob
extends java.lang.Object

This class creates a new job for recording a stream You can select between weekly, once ....


Field Summary
static int lastID
           
 
Constructor Summary
SchedulJob(int schedulJobID, int streamID, long startTime, long stopTime, int howOftenID, boolean enable, java.lang.String comment)
           
 
Method Summary
 java.lang.String getComment()
           
 int getJobCount()
           
static int getNewID()
           
 long getOldStopTime()
          gets the time, where the stream should be stoped
 int getSchedulID()
           
 long getStartTime()
           
 java.lang.String getStartTimeAsLocaleTime()
          return the start time as a located date+time string
 boolean getstatus()
          get the current status for the job
 long getStopTime()
           
 java.lang.String getStopTimeAsLocaleTime()
          return the stop time as a located date+time string
 int getStreamID()
           
 boolean isJobenabled()
           
 java.lang.Boolean isOnceJob()
          return true, if the job only record once else false
 void setComment(java.lang.String newComment)
          the the comment for the scheduljob
 void setJobCounts(int howOftenID)
          set the right parameter for the job
 void setJobEnabled(boolean enable)
          The a new status.
 void setOldStopTime(long oldStopTime)
          sets the new oldStopTime, where the stream should be stoped
 void setSchedulJobID(int newSchedulID)
           
 void setStartTime(long newStartTime)
          set the startTime to an new value
 void setStatus(boolean newStatus)
          Set the new status for a schedul job
 void setStopTime(long newStopTime)
          set the stopTime to an new va
 void setStreamID(int newStreamID)
          Set an new value for the recording stream id
 void setUseOldStopTime(boolean use)
          set the status for the oldStopTime
 boolean useOldStopTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastID

public static int lastID
Constructor Detail

SchedulJob

public SchedulJob(int schedulJobID,
                  int streamID,
                  long startTime,
                  long stopTime,
                  int howOftenID,
                  boolean enable,
                  java.lang.String comment)
Parameters:
schedulJobID: - the job ID of this job in xml-file
streamID: - the ID in xml-file for the recording stream
startTime: - start time in mills
stopTime: - stop time in mills
howOftenID: - 0=daily; 1=weekly; 2=monthly; else once
enable: - enable this schedulJob
comment: - the comment for this stream
streamName: - the streamName for the streamID
Method Detail

getNewID

public static int getNewID()

setSchedulJobID

public void setSchedulJobID(int newSchedulID)
Parameters:
newSchedulID: - the ID that this schedulJob has in the xml-file

setStreamID

public void setStreamID(int newStreamID)
Set an new value for the recording stream id

Parameters:
id: - the ID witch representing the stream witch should be recorded in the xml-file

setStartTime

public void setStartTime(long newStartTime)
set the startTime to an new value

Parameters:
startTime: - The new startTime in mills

setStopTime

public void setStopTime(long newStopTime)
set the stopTime to an new va

Parameters:
newStopTime: - the new stoptime in mills

setOldStopTime

public void setOldStopTime(long oldStopTime)
sets the new oldStopTime, where the stream should be stoped

Parameters:
oldStopTime: - time in milliseconds

setJobEnabled

public void setJobEnabled(boolean enable)
The a new status. If false the job will not record if the specific time.

Parameters:
enable: - true, if the stream should start recording

setJobCounts

public void setJobCounts(int howOftenID)
set the right parameter for the job

Parameters:
howOftenID: - 0=daily; 1=weekly; 2=monthly; else once

setComment

public void setComment(java.lang.String newComment)
the the comment for the scheduljob

Parameters:
newComment: - the new comment

getStreamID

public int getStreamID()
Returns:
the ID in xml-file for the recording stream.

getSchedulID

public int getSchedulID()

getStartTime

public long getStartTime()
Returns:
the startTime for this job in mills

getStopTime

public long getStopTime()
Returns:
the stopTime for this job in mills

getOldStopTime

public long getOldStopTime()
gets the time, where the stream should be stoped

Returns:
the old stop time

getStartTimeAsLocaleTime

public java.lang.String getStartTimeAsLocaleTime()
return the start time as a located date+time string


getStopTimeAsLocaleTime

public java.lang.String getStopTimeAsLocaleTime()
return the stop time as a located date+time string


getJobCount

public int getJobCount()

isJobenabled

public boolean isJobenabled()

getComment

public java.lang.String getComment()

isOnceJob

public java.lang.Boolean isOnceJob()
return true, if the job only record once else false


useOldStopTime

public boolean useOldStopTime()
Returns:
true, if the old stoptime should be used

setUseOldStopTime

public void setUseOldStopTime(boolean use)
set the status for the oldStopTime

Parameters:
use, - if the old start time should be used

setStatus

public void setStatus(boolean newStatus)
Set the new status for a schedul job

Parameters:
newStatus: - true for "is currently recording", else false

getstatus

public boolean getstatus()
get the current status for the job

Returns:
true, if the stream records