|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRecorderInfo
An interface to get connection informations of a MythTV recorder.
This interface represents the response the a IBackend.getNextFreeRecorder()
and similar request.
This interface is property-aware
. See IRecorderInfo.Props
for all available object properties.
backend
functions can be used to get recorder-info object:
IRecorderInfo recorderInfo = backend.getNextFreeRecorder();
IRecorderInfo recorderInfo = backend.getRecorderForProgram(IProgramInfo);
IRecorderInfo recorderInfo = backend.getRecorderForNum(Integer);
// an already connected backend IBackend backend = ...; // getting the next free recorder IRecorderInfo recorderInfo = backend.getNextFreeRecorder(); if(recorderInfo == null) { System.out.println("No free recorder available"); } else { // connect to the recorder IRecorder recorder = backend.getRecorder(recorderInfo); // do something with the recorder ... // close recorder connection recorder.close(); }
<0>RECORDER_ID: 2 | <1>HOSTNAME: 192.168.10.201 | <2>HOSTPORT: 6543
Backend.getFreeRecorder()
,
Backend.getNextFreeRecorder()
,
Backend.getRecorderForNum(int)
,
Backend.getRecorderNum(org.jmythapi.protocol.response.IProgramInfo)
Nested Class Summary | |
---|---|
static class |
IRecorderInfo.Props
Properties of an IRecorderInfo response. |
Field Summary | |
---|---|
static String |
ERROR_HOSTNAME
The IRecorderInfo.Props.HOSTNAME that is returned on error. |
Method Summary | |
---|---|
String |
getHostName()
|
int |
getHostPort()
|
int |
getRecorderID()
|
Methods inherited from interface org.jmythapi.IVersionable |
---|
getVersionNr |
Methods inherited from interface org.jmythapi.IPropertyAware |
---|
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject |
Field Detail |
---|
static final String ERROR_HOSTNAME
IRecorderInfo.Props.HOSTNAME
that is returned on error.
Method Detail |
---|
int getRecorderID()
String getHostName()
int getHostPort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |