org.jmythapi.database
Enum IJobQueue.Props

java.lang.Object
  extended by java.lang.Enum<IJobQueue.Props>
      extended by org.jmythapi.database.IJobQueue.Props
All Implemented Interfaces:
Serializable, Comparable<IJobQueue.Props>
Enclosing interface:
IJobQueue

public static enum IJobQueue.Props
extends Enum<IJobQueue.Props>


Enum Constant Summary
ARGS
          Args.
CHANNEL_ID
          Channel ID.
COMMANDS
          Commands.
COMMENT
          Comment.
FLAGS
          Flags.
HOSTNAME
          Hostname.
ID
          Job ID.
INSERT_TIME
          Insert Time.
REC_START_TIME
          Recording Start Time.
SCHEDULED_RUN_TIME
          Scheduled Run Time.
STATUS
          Status.
STATUS_TIME
          Status Time.
TYPE
          Job Type.
 
Method Summary
static IJobQueue.Props valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IJobQueue.Props[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ID

public static final IJobQueue.Props ID
Job ID.

A unique identifier for entries in the table.

id INTEGER NOT NULL AUTO_INCREMENT


CHANNEL_ID

public static final IJobQueue.Props CHANNEL_ID
Channel ID.

Relates to the chanid field of the channel table.

chanid INTEGER(10) NOT NULL


REC_START_TIME

public static final IJobQueue.Props REC_START_TIME
Recording Start Time.

the start time of the recording.

starttime DATETIME NOT NULL


INSERT_TIME

public static final IJobQueue.Props INSERT_TIME
Insert Time.

the time the job was queued.

inserttime DATETIME NOT NULL


TYPE

public static final IJobQueue.Props TYPE
Job Type.

the type of job

type INTEGER NOT NULL


COMMANDS

public static final IJobQueue.Props COMMANDS
Commands.

RUN = 0x0000, PAUSE = 0x0001, RESUME = 0x0002, STOP = 0x0004, RESTART = 0x0008

cmds INTEGER NOT NULL DEFAULT 0/


FLAGS

public static final IJobQueue.Props FLAGS
Flags.

NO_FLAGS = 0x0000, USE_CUTLIST = 0x0001, LIVE_REC = 0x0002, EXTERNAL = 0x0004

flags INTEGER NOT NULL DEFAULT 0


STATUS

public static final IJobQueue.Props STATUS
Status.

UNKNOWN = 0x0000, QUEUED = 0x0001, PENDING = 0x0002, STARTING = 0x0003, RUNNING = 0x0004, STOPPING = 0x0005, PAUSED = 0x0006, RETRY = 0x0007, ERRORING = 0x0008, ABORTING = 0x0009, DONE = 0x0100, FINISHED = 0x0110, ABORTED = 0x0120, ERRORED = 0x0130, CANCELLED = 0x0140

status INTEGER NOT NULL DEFAULT 0


STATUS_TIME

public static final IJobQueue.Props STATUS_TIME
Status Time.

the time the status was last updated.

statustime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP


HOSTNAME

public static final IJobQueue.Props HOSTNAME
Hostname.

hostname varchar(64) NOT NULL DEFAULT ''


ARGS

public static final IJobQueue.Props ARGS
Args.

args BLOB NOT NULL DEFAULT ''/


COMMENT

public static final IJobQueue.Props COMMENT
Comment.

comment VARCHAR(128) NOT NULL DEFAULT ''/


SCHEDULED_RUN_TIME

public static final IJobQueue.Props SCHEDULED_RUN_TIME
Scheduled Run Time.

the time that the job should run.

TODO: what about the default value?

"ALTER TABLE jobqueue ADD schedruntime datetime NOT NULL default '2007-01-01 00:00:00'

Method Detail

values

public static IJobQueue.Props[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IJobQueue.Props c : IJobQueue.Props.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IJobQueue.Props valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2008-2013. All Rights Reserved.