org.jmythapi.database
Interface IDatabase

All Known Implementing Classes:
DataBase

public interface IDatabase


Field Summary
static String DEFAULT_DB
           
static int DEFAULT_PORT
           
static String DEFAULT_USER
           
static String SETTING_HOST_ANY
           
 
Method Summary
 Integer addJob(JobQueue job)
           
 Integer addSchedule(Schedule schedule)
           
 boolean controlJob(Integer jobId, IJobCommand command)
           
 boolean deleteJob(Integer jobId)
           
 boolean deleteSchedule(Integer scheduleId)
           
 IRecorderChannelInfo getChannelInfo(Integer chanID)
          Gets informations about the given channel
 List<IRecorderChannelInfo> getChannelInfos()
           
 List<IRecorderChannelInfo> getChannelInfos(Integer recorderID)
           
 List<IRecorderChannelInfo> getChannelInfos(IRecorderInfo recorder)
           
 List<IRecorderChannelInfo> getChannelInfosByCallSign(String callSign)
           
 int getDbVersion()
          Gets the current database version.
 IJobQueue getJob(Integer jobId)
           
 List<IJobQueue> getJobs()
           
 IRecorderInfo getRecorderForNum(Integer recorderId)
           
 List<IRecorderInfo> getRecorders()
           
 ISchedule getSchedule(Integer scheduleId)
           
 List<ISchedule> getSchedules()
           
 List<IStorageGroupDirectory> getStorageGroupDirectories()
           
 List<IStorageGroup> getStorageGroups()
           
 IGuideDataThrough queryGuideDataThrough()
           
 IMythFillDatabaseSettings queryMythFillStatus()
           
 IMythShutdownSettings queryMythShutdownStatus()
           
 IRecorderNextProgramInfo queryNextProgramInfo(IBasicChannelInfo channelInfo, Date startDateTime)
           
 IRecorderNextProgramInfo queryNextProgramInfo(Integer channelId, Date startDateTime)
           
 ISetting querySetting(String hostName, String settingName)
           
 List<ISetting> querySettings(String hostName)
           
 List<ISetting> querySettings(String hostName, String... settingsNames)
           
 Map<String,ISetting> querySettingsMap(String hostName, String... settingsNames)
           
 

Field Detail

DEFAULT_PORT

static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_USER

static final String DEFAULT_USER
See Also:
Constant Field Values

DEFAULT_DB

static final String DEFAULT_DB
See Also:
Constant Field Values

SETTING_HOST_ANY

static final String SETTING_HOST_ANY
See Also:
Constant Field Values
Method Detail

getDbVersion

int getDbVersion()
Gets the current database version.

Returns:
the database version

getChannelInfo

IRecorderChannelInfo getChannelInfo(Integer chanID)
                                    throws IOException
Gets informations about the given channel

Parameters:
chanID - the channel id
Returns:
informations about the given channel
Throws:
IOException - on communication errors

getChannelInfosByCallSign

List<IRecorderChannelInfo> getChannelInfosByCallSign(String callSign)
                                                     throws IOException
Throws:
IOException

getChannelInfos

List<IRecorderChannelInfo> getChannelInfos()
                                           throws IOException
Throws:
IOException

getChannelInfos

List<IRecorderChannelInfo> getChannelInfos(IRecorderInfo recorder)
                                           throws IOException
Throws:
IOException

getChannelInfos

List<IRecorderChannelInfo> getChannelInfos(Integer recorderID)
                                           throws IOException
Throws:
IOException

getRecorderForNum

IRecorderInfo getRecorderForNum(Integer recorderId)
                                throws IOException
Throws:
IOException

getRecorders

List<IRecorderInfo> getRecorders()
                                 throws IOException
Throws:
IOException

querySetting

ISetting querySetting(String hostName,
                      String settingName)
                      throws IOException
Throws:
IOException

querySettings

List<ISetting> querySettings(String hostName)
                             throws IOException
Throws:
IOException

querySettings

List<ISetting> querySettings(String hostName,
                             String... settingsNames)
                             throws IOException
Throws:
IOException

querySettingsMap

Map<String,ISetting> querySettingsMap(String hostName,
                                      String... settingsNames)
                                      throws IOException
Throws:
IOException

queryMythFillStatus

IMythFillDatabaseSettings queryMythFillStatus()
                                              throws IOException
Throws:
IOException

queryMythShutdownStatus

IMythShutdownSettings queryMythShutdownStatus()
                                              throws IOException
Throws:
IOException

queryNextProgramInfo

IRecorderNextProgramInfo queryNextProgramInfo(IBasicChannelInfo channelInfo,
                                              Date startDateTime)
                                              throws IOException
Throws:
IOException

queryNextProgramInfo

IRecorderNextProgramInfo queryNextProgramInfo(Integer channelId,
                                              Date startDateTime)
                                              throws IOException
Throws:
IOException

queryGuideDataThrough

IGuideDataThrough queryGuideDataThrough()
                                        throws IOException
Throws:
IOException

getStorageGroups

List<IStorageGroup> getStorageGroups()
                                     throws IOException
Throws:
IOException

getStorageGroupDirectories

List<IStorageGroupDirectory> getStorageGroupDirectories()
                                                        throws IOException
Throws:
IOException

getJobs

List<IJobQueue> getJobs()
                        throws IOException
Throws:
IOException

getJob

IJobQueue getJob(Integer jobId)
                 throws IOException
Throws:
IOException

addJob

Integer addJob(JobQueue job)
               throws IOException
Throws:
IOException

controlJob

boolean controlJob(Integer jobId,
                   IJobCommand command)
                   throws IOException
Throws:
IOException

deleteJob

boolean deleteJob(Integer jobId)
                  throws IOException
Throws:
IOException

getSchedules

List<ISchedule> getSchedules()
                             throws IOException
Throws:
IOException

getSchedule

ISchedule getSchedule(Integer scheduleId)
                      throws IOException
Throws:
IOException

addSchedule

Integer addSchedule(Schedule schedule)
                    throws IOException
Throws:
IOException

deleteSchedule

boolean deleteSchedule(Integer scheduleId)
                       throws IOException
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.