org.jmythapi.protocol
Enum ProtocolVersion

java.lang.Object
  extended by java.lang.Enum<ProtocolVersion>
      extended by org.jmythapi.protocol.ProtocolVersion
All Implemented Interfaces:
Serializable, Comparable<ProtocolVersion>, IVersion

public enum ProtocolVersion
extends Enum<ProtocolVersion>
implements IVersion

This enumeration specifies all supported MythTV-protocol versions.

Protocol Versions:

Depending on the MythTV protocol version that a backend is speaking, different protocol commands are supported and the required request- and received response-parameters may be different.

On server side the protocol-version a specific MythTV-version is using is defined in the MythTV file mythversion.h.
On jMythAPI side each object which is protocol-version-aware need to implement the interface IVersionable. With this interface the currently used protocol-version can be determined when sending or receiving request or response messages. Depending on the used version, the content of request-messages to be send is formatted differently, or a received response-message is interpreted differently.

Protocol Version Ranges:

In which protocol versions an command or a request- or response-parameter is supported, is specified via the MythProtoVersionAnnotation. This annotation is used to define the range of protocol version a given request or parameter is valid. This lower and upper bound versions are additionally documented with the @since and the @deprecated javadoc tag.
Furthermore there is a special javadoc-taglet @mythProtoVersionRange, which that generates an additional table in javadoc, showing the protocol-range of an element including some metadata about the protocol- versions, e.g. the commit date or a link to the Git revision when the element was added or removed to the protocol. See here for an example.

There are two special protocol versions:

If a protocol element (a request command or response property) is supported from version 00 to version -1, the given element is supported in all known protocol version.

Protocol Changelog:

See the javadoc for the various enumeration constants to see, which changes were done for a given protocol version.
E.g. in PROTO_VERSION_37 multiple protocol-commands were added and removed, some response-message properties were added, and some new flags were introduced.

Usage Examples:

Comparing of protocol versions:

In the following example the backend method queryUptime was introduced in protocol version 15, therefore the function can not be used with prior protocol versions.

    IBackend backend = ...; // an already connected backend
    
    // starting with protocol version 15 the backend uptime can be queried
    if(backend.getVersionNr().compareTo(ProtocolVersion.PROTO_VERSION_15)>=0) {
       IUptime uptime = backend.queryUptime();
       System.out.println(String.format(
          "MythTV has an uptime of %s seconds.",
          uptime.getUptimeSeconds()
       ));
    }
 

See Also:
libmythbase/mythversion.h, libmythdb/mythversion.h, libmyth/mythcontext.h, Wiki

Enum Constant Summary
PROTO_VERSION_00
          All MythTV Version before 2004-01-29.
PROTO_VERSION_01
          MythTV Release Version 0.14 - 2004-01-29.
PROTO_VERSION_02
          MythTV Development Version 2004-02-03.
PROTO_VERSION_03
          MythTV Development Version 2004-02-05.
PROTO_VERSION_04
          MythTV Development Version 2004-02-27.
PROTO_VERSION_05
          MythTV Development Version 2004-04-10.
PROTO_VERSION_06
          MythTV Development Version 2004-05-01.
PROTO_VERSION_07
          MythTV Development Version 2004-05-08.
PROTO_VERSION_08
          MythTV Release Version 0.15 - 2004-05-09.
PROTO_VERSION_09
          MythTV Development Version 2004-06-04.
PROTO_VERSION_10
          MythTV Development Version 2004-07-01.
PROTO_VERSION_11
          MythTV Development Version 2004-07-06.
PROTO_VERSION_12
          MythTV Development Version 2004-07-10.
PROTO_VERSION_13
          MythTV Release Version 0.16 - 2004-08-16.
PROTO_VERSION_14
          MythTV Release Version 0.17 - 2004-10-06.
PROTO_VERSION_15
          MythTV Release Version 0.18 - 2005-03-23.
PROTO_VERSION_16
          MythTV Development Version 2005-05-03.
PROTO_VERSION_17
          MythTV Development Version 2005-05-24.
PROTO_VERSION_18
          MythTV Development Version 2005-07-19.
PROTO_VERSION_19
          MythTV Development Version 2005-10-09.
PROTO_VERSION_20
          MythTV Development Version 2005-11-05.
PROTO_VERSION_21
          MythTV Development Version 2005-11-10.
PROTO_VERSION_22
          MythTV Development Version 2005-11-15.
PROTO_VERSION_23
          MythTV Development Version 2006-01-10.
PROTO_VERSION_23056
          MythTV Bugfix Version 0.23.1 - 2010-07-17.
PROTO_VERSION_24
          MythTV Development Version 2006-01-15.
PROTO_VERSION_25
          MythTV Development Version 2006-01-17.
PROTO_VERSION_26
          MythTV Release Version 0.19 - 2006-01-17.
PROTO_VERSION_27
          MythTV Development Version 2006-02-15.
PROTO_VERSION_28
          MythTV Development Version 2006-03-28.
PROTO_VERSION_29
          MythTV Development Version 2006-04-01.
PROTO_VERSION_30
          MythTV Release Version 0.20 - 2006-05-22.
PROTO_VERSION_31
          MythTV Release Version 0.20-fixes - 2006-09-24.
PROTO_VERSION_32
          MythTV Development Version 2006-11-30.
PROTO_VERSION_33
          MythTV Development Version 2007-03-01.
PROTO_VERSION_34
          MythTV Development Version 2007-04-13.
PROTO_VERSION_35
          MythTV Development Version 2007-07-16.
PROTO_VERSION_36
          MythTV Development Version 2007-09-11.
PROTO_VERSION_37
          MythTV Development Version 2008-01-14.
PROTO_VERSION_38
          MythTV Development Version 2008-01-23.
PROTO_VERSION_39
          MythTV Release Version 0.21 - 2008-01-31.
PROTO_VERSION_40
          MythTV Development Version 2008-02-17.
PROTO_VERSION_41
          MythTV Development Version 2008-09-25.
PROTO_VERSION_42
          MythTV Development Version 2008-10-07.
PROTO_VERSION_43
          MythTV Development Version 2008-12-22.
PROTO_VERSION_44
          MythTV Development Version 2009-02-12.
PROTO_VERSION_45
          MythTV Development Version 2009-05-09.
PROTO_VERSION_46
          MythTV Development Version 2009-08-08.
PROTO_VERSION_47
          MythTV Development Version 2009-08-16.
PROTO_VERSION_48
          MythTV Development Version 2009-08-23.
PROTO_VERSION_49
          MythTV Development Version 2009-10-01.
PROTO_VERSION_50
          MythTV Release Version 0.22 - 2009-10-02.
PROTO_VERSION_51
          MythTV Development Version 2009-11-23.
PROTO_VERSION_52
          MythTV Development Version 2009-11-30.
PROTO_VERSION_53
          MythTV Development Version 2009-12-06.
PROTO_VERSION_54
          MythTV Development Version 2009-12-18.
PROTO_VERSION_55
          MythTV Development Version 2009-12-21.
PROTO_VERSION_56
          MythTV Release Version 0.23 - 2009-12-29.
PROTO_VERSION_57
          MythTV Development Version 2010-05-16.
PROTO_VERSION_58
          MythTV Development Version 2010-07-17.
PROTO_VERSION_59
          MythTV Development Version 2010-08-26.
PROTO_VERSION_60
          MythTV Development Version 2010-09-03.
PROTO_VERSION_61
          MythTV Development Version 2010-09-03.
PROTO_VERSION_62
          MythTV Development Version 2010-09-13.
PROTO_VERSION_63
          MythTV Release Version 0.24 - 2010-09-25.
PROTO_VERSION_64
          MythTV Development Version 2010-11-20.
PROTO_VERSION_65
          MythTV Development Version 2011-03-08.
PROTO_VERSION_66
          MythTV Development Version 2011-05-25.
PROTO_VERSION_67
          MythTV Development Version 2011-06-03.
PROTO_VERSION_68
          MythTV Development Version 2011-07-09.
PROTO_VERSION_69
          MythTV Development Version 2011-07-11.
PROTO_VERSION_70
          MythTV Development Version 2011-11-30.
PROTO_VERSION_71
          MythTV Development Version 2012-01-15.
PROTO_VERSION_72
          MythTV Release Version 0.25 2012-01-29.
PROTO_VERSION_73
          MythTV Development Version 2012-04-11.
PROTO_VERSION_74
          MythTV Development Version 2012-05-09.
PROTO_VERSION_75
          MythTV Release Version 0.26 2012-05-30.
PROTO_VERSION_76
          MythTV Development Version 2012-11-23.
PROTO_VERSION_77
          MythTV Release Version 0.27 Version 2013-01-01.
PROTO_VERSION_LATEST
          MythTV Current Development Version.
 
Method Summary
static ProtocolVersion getMaxVersion()
          Gets the maximum protocol version that is currently supported.
 Map<String,String> getMetaData()
          Gets some known metadata about the protocol version.
 ProtocolVersion getPredecessor()
          Gets the predecessor version of the current version.
 ProtocolVersion getSuccessor()
          Gets the successor version of the current version.
 String getToken()
          Gets the protocol version "handshake" token.
 int getVersion()
          Gets the protocol version number.
static ProtocolVersion valueOf(int protoVersion)
          Gets the protocol-version whose value matches the given protocol version.
static ProtocolVersion valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProtocolVersion[] 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

PROTO_VERSION_00

public static final ProtocolVersion PROTO_VERSION_00
All MythTV Version before 2004-01-29.

This version represents all versions before the command MYTH_PROTO_VERSION was introduced.


PROTO_VERSION_01

public static final ProtocolVersion PROTO_VERSION_01
MythTV Release Version 0.14 - 2004-01-29.

Protocol Changes:

Since:
2004-01-29
MythTV Protocol Version Info:

PROTO_VERSION_02

public static final ProtocolVersion PROTO_VERSION_02
MythTV Development Version 2004-02-03.

Protocol Changes:

Since:
2004-02-03
MythTV Protocol Version Info:

PROTO_VERSION_03

public static final ProtocolVersion PROTO_VERSION_03
MythTV Development Version 2004-02-05.

Protocol Changes:

Since:
2004-02-05
MythTV Protocol Version Info:

PROTO_VERSION_04

public static final ProtocolVersion PROTO_VERSION_04
MythTV Development Version 2004-02-27.

Protocol Changes:

Since:
2004-02-27
MythTV Protocol Version Info:

PROTO_VERSION_05

public static final ProtocolVersion PROTO_VERSION_05
MythTV Development Version 2004-04-10.

Protocol Changes:

Since:
2004-04-10
MythTV Protocol Version Info:

PROTO_VERSION_06

public static final ProtocolVersion PROTO_VERSION_06
MythTV Development Version 2004-05-01.

Protocol Changes:

Since:
2004-05-01
MythTV Protocol Version Info:

PROTO_VERSION_07

public static final ProtocolVersion PROTO_VERSION_07
MythTV Development Version 2004-05-08.

Since:
2004-05-08
MythTV Protocol Version Info:

PROTO_VERSION_08

public static final ProtocolVersion PROTO_VERSION_08
MythTV Release Version 0.15 - 2004-05-09.

Protocol Changes:

Since:
2004-05-09
MythTV Protocol Version Info:

PROTO_VERSION_09

public static final ProtocolVersion PROTO_VERSION_09
MythTV Development Version 2004-06-04.

Protocol Changes:

Since:
2004-06-04
MythTV Protocol Version Info:

PROTO_VERSION_10

public static final ProtocolVersion PROTO_VERSION_10
MythTV Development Version 2004-07-01.

Protocol Changes:

Since:
2004-07-01
MythTV Protocol Version Info:

PROTO_VERSION_11

public static final ProtocolVersion PROTO_VERSION_11
MythTV Development Version 2004-07-06.

Since:
2004-07-06
MythTV Protocol Version Info:

PROTO_VERSION_12

public static final ProtocolVersion PROTO_VERSION_12
MythTV Development Version 2004-07-10.

Protocol Changes:

Since:
2004-07-10
MythTV Protocol Version Info:

PROTO_VERSION_13

public static final ProtocolVersion PROTO_VERSION_13
MythTV Release Version 0.16 - 2004-08-16.

Protocol Changes:

Since:
2004-08-16
MythTV Protocol Version Info:

PROTO_VERSION_14

public static final ProtocolVersion PROTO_VERSION_14
MythTV Release Version 0.17 - 2004-10-06.

Protocol Changes:

Since:
2004-10-06
MythTV Protocol Version Info:

PROTO_VERSION_15

public static final ProtocolVersion PROTO_VERSION_15
MythTV Release Version 0.18 - 2005-03-23.

Protocol Changes:

Since:
2005-03-23
MythTV Protocol Version Info:

PROTO_VERSION_16

public static final ProtocolVersion PROTO_VERSION_16
MythTV Development Version 2005-05-03.

Protocol Changes:

Since:
2005-05-03
MythTV Protocol Version Info:

PROTO_VERSION_17

public static final ProtocolVersion PROTO_VERSION_17
MythTV Development Version 2005-05-24.

Protocol Changes:

Since:
2005-05-24
MythTV Protocol Version Info:

PROTO_VERSION_18

public static final ProtocolVersion PROTO_VERSION_18
MythTV Development Version 2005-07-19.

Protocol Changes:

Since:
2005-07-19
MythTV Protocol Version Info:

PROTO_VERSION_19

public static final ProtocolVersion PROTO_VERSION_19
MythTV Development Version 2005-10-09.

Protocol Changes:

Since:
2005-10-09
MythTV Protocol Version Info:

PROTO_VERSION_20

public static final ProtocolVersion PROTO_VERSION_20
MythTV Development Version 2005-11-05.

Protocol Changes:

Since:
2005-11-05
MythTV Protocol Version Info:

PROTO_VERSION_21

public static final ProtocolVersion PROTO_VERSION_21
MythTV Development Version 2005-11-10.

Protocol Changes:

Since:
2005-11-10
MythTV Protocol Version Info:

PROTO_VERSION_22

public static final ProtocolVersion PROTO_VERSION_22
MythTV Development Version 2005-11-15.

Protocol Changes:

Since:
2005-11-15
MythTV Protocol Version Info:

PROTO_VERSION_23

public static final ProtocolVersion PROTO_VERSION_23
MythTV Development Version 2006-01-10.

Protocol Changes:

Since:
2006-01-10
MythTV Protocol Version Info:

PROTO_VERSION_24

public static final ProtocolVersion PROTO_VERSION_24
MythTV Development Version 2006-01-15.

Protocol Changes:

Since:
2006-01-15
MythTV Protocol Version Info:

PROTO_VERSION_25

public static final ProtocolVersion PROTO_VERSION_25
MythTV Development Version 2006-01-17.

Protocol Changes:

Since:
2006-01-17
MythTV Protocol Version Info:

PROTO_VERSION_26

public static final ProtocolVersion PROTO_VERSION_26
MythTV Release Version 0.19 - 2006-01-17.

Protocol Changes:

Since:
2006-01-29
MythTV Protocol Version Info:

PROTO_VERSION_27

public static final ProtocolVersion PROTO_VERSION_27
MythTV Development Version 2006-02-15.

Protocol Changes:

Since:
2006-02-15
MythTV Protocol Version Info:

PROTO_VERSION_28

public static final ProtocolVersion PROTO_VERSION_28
MythTV Development Version 2006-03-28.

Protocol Changes:

Since:
2006-03-28
MythTV Protocol Version Info:

PROTO_VERSION_29

public static final ProtocolVersion PROTO_VERSION_29
MythTV Development Version 2006-04-01.

Protocol Changes:

Since:
2006-04-01
MythTV Protocol Version Info:

PROTO_VERSION_30

public static final ProtocolVersion PROTO_VERSION_30
MythTV Release Version 0.20 - 2006-05-22.

Protocol Changes:

Since:
2006-05-22
MythTV Protocol Version Info:

PROTO_VERSION_31

public static final ProtocolVersion PROTO_VERSION_31
MythTV Release Version 0.20-fixes - 2006-09-24.

Protocol Changes:

Since:
2006-09-24
MythTV Protocol Version Info:

PROTO_VERSION_32

public static final ProtocolVersion PROTO_VERSION_32
MythTV Development Version 2006-11-30.

Protocol Changes:

Since:
2006-11-30
MythTV Protocol Version Info:

PROTO_VERSION_33

public static final ProtocolVersion PROTO_VERSION_33
MythTV Development Version 2007-03-01.

Protocol Changes:

Since:
2007-03-01
MythTV Protocol Version Info:

PROTO_VERSION_34

public static final ProtocolVersion PROTO_VERSION_34
MythTV Development Version 2007-04-13.

Protocol Changes:

Since:
2007-04-13
MythTV Protocol Version Info:

PROTO_VERSION_35

public static final ProtocolVersion PROTO_VERSION_35
MythTV Development Version 2007-07-16.

Protocol Changes:

Since:
2007-07-16
MythTV Protocol Version Info:

PROTO_VERSION_36

public static final ProtocolVersion PROTO_VERSION_36
MythTV Development Version 2007-09-11.

Protocol Changes:

Since:
2007-09-11
MythTV Protocol Version Info:

PROTO_VERSION_37

public static final ProtocolVersion PROTO_VERSION_37
MythTV Development Version 2008-01-14.

Protocol Changes:

Since:
2008-01-14
MythTV Protocol Version Info:

PROTO_VERSION_38

public static final ProtocolVersion PROTO_VERSION_38
MythTV Development Version 2008-01-23.

Protocol Changes:

Since:
2008-01-23
MythTV Protocol Version Info:

PROTO_VERSION_39

public static final ProtocolVersion PROTO_VERSION_39
MythTV Release Version 0.21 - 2008-01-31.

Protocol Changes:

Since:
2008-01-31
MythTV Protocol Version Info:

PROTO_VERSION_40

public static final ProtocolVersion PROTO_VERSION_40
MythTV Development Version 2008-02-17.

Protocol Changes:

Since:
2008-02-17
MythTV Protocol Version Info:

PROTO_VERSION_41

public static final ProtocolVersion PROTO_VERSION_41
MythTV Development Version 2008-09-25.

Protocol Changes:

Since:
2008-09-25
MythTV Protocol Version Info:

PROTO_VERSION_42

public static final ProtocolVersion PROTO_VERSION_42
MythTV Development Version 2008-10-07.

Protocol Changes:

Since:
2008-10-07
MythTV Protocol Version Info:

PROTO_VERSION_43

public static final ProtocolVersion PROTO_VERSION_43
MythTV Development Version 2008-12-22.

Protocol Changes:

Since:
2008-12-22
MythTV Protocol Version Info:

PROTO_VERSION_44

public static final ProtocolVersion PROTO_VERSION_44
MythTV Development Version 2009-02-12.

Protocol Changes:

Since:
2009-02-12
MythTV Protocol Version Info:

PROTO_VERSION_45

public static final ProtocolVersion PROTO_VERSION_45
MythTV Development Version 2009-05-09.

Protocol Changes:

Since:
2009-05-09
MythTV Protocol Version Info:

PROTO_VERSION_46

public static final ProtocolVersion PROTO_VERSION_46
MythTV Development Version 2009-08-08.

Protocol Changes:

Since:
2009-08-08
MythTV Protocol Version Info:

PROTO_VERSION_47

public static final ProtocolVersion PROTO_VERSION_47
MythTV Development Version 2009-08-16.

Protocol Changes:

Since:
2009-08-16
MythTV Protocol Version Info:

PROTO_VERSION_48

public static final ProtocolVersion PROTO_VERSION_48
MythTV Development Version 2009-08-23.

Protocol Changes:

Since:
2009-08-23
MythTV Protocol Version Info:

PROTO_VERSION_49

public static final ProtocolVersion PROTO_VERSION_49
MythTV Development Version 2009-10-01.

Protocol Changes:

Since:
2009-10-01
MythTV Protocol Version Info:

PROTO_VERSION_50

public static final ProtocolVersion PROTO_VERSION_50
MythTV Release Version 0.22 - 2009-10-02.

Protocol Changes:

Since:
2009-10-0
MythTV Protocol Version Info:

PROTO_VERSION_51

public static final ProtocolVersion PROTO_VERSION_51
MythTV Development Version 2009-11-23.

Protocol Changes:

Since:
2009-11-23
MythTV Protocol Version Info:

PROTO_VERSION_52

public static final ProtocolVersion PROTO_VERSION_52
MythTV Development Version 2009-11-30. TODO:

Protocol Changes:

Since:
2009-11-30
MythTV Protocol Version Info:

PROTO_VERSION_53

public static final ProtocolVersion PROTO_VERSION_53
MythTV Development Version 2009-12-06.

Protocol Changes:

Since:
2009-12-06
MythTV Protocol Version Info:

PROTO_VERSION_54

public static final ProtocolVersion PROTO_VERSION_54
MythTV Development Version 2009-12-18. TODO:

Protocol Changes:

Since:
2009-12-18
MythTV Protocol Version Info:

PROTO_VERSION_55

public static final ProtocolVersion PROTO_VERSION_55
MythTV Development Version 2009-12-21. TODO

Protocol Changes:

Since:
2009-12-21
MythTV Protocol Version Info:

PROTO_VERSION_56

public static final ProtocolVersion PROTO_VERSION_56
MythTV Release Version 0.23 - 2009-12-29.

TODO: what changes were done in this Version?

Protocol Changes:

Since:
2009-12-29
MythTV Protocol Version Info:

PROTO_VERSION_23056

public static final ProtocolVersion PROTO_VERSION_23056
MythTV Bugfix Version 0.23.1 - 2010-07-17.

Some bugfixes from trunk were backported into this version.

Since:
2010-07-17
MythTV Protocol Version Info:

PROTO_VERSION_57

public static final ProtocolVersion PROTO_VERSION_57
MythTV Development Version 2010-05-16.

Protocol Changes:

Since:
2010-05-16
MythTV Protocol Version Info:

PROTO_VERSION_58

public static final ProtocolVersion PROTO_VERSION_58
MythTV Development Version 2010-07-17.

Protocol Changes:

Since:
2010-07-17

PROTO_VERSION_59

public static final ProtocolVersion PROTO_VERSION_59
MythTV Development Version 2010-08-26.

Protocol Changes:

Since:
2010-08-26
MythTV Protocol Version Info:

PROTO_VERSION_60

public static final ProtocolVersion PROTO_VERSION_60
MythTV Development Version 2010-09-03.

Protocol Changes:

Since:
2010-09-03
MythTV Protocol Version Info:

PROTO_VERSION_61

public static final ProtocolVersion PROTO_VERSION_61
MythTV Development Version 2010-09-03.

Protocol Changes:

Since:
2010-09-03
MythTV Protocol Version Info:

PROTO_VERSION_62

public static final ProtocolVersion PROTO_VERSION_62
MythTV Development Version 2010-09-13.

Protocol Changes:

Since:
2010-09-13
MythTV Protocol Version Info:

PROTO_VERSION_63

public static final ProtocolVersion PROTO_VERSION_63
MythTV Release Version 0.24 - 2010-09-25.

Protocol Changes:

Since:
2010-09-25
MythTV Protocol Version Info:

PROTO_VERSION_64

public static final ProtocolVersion PROTO_VERSION_64
MythTV Development Version 2010-11-20.

Protocol Changes:

Since:
2010-11-20
MythTV Protocol Version Info:

PROTO_VERSION_65

public static final ProtocolVersion PROTO_VERSION_65
MythTV Development Version 2011-03-08.

Protocol Changes:

Since:
2011-03-08
MythTV Protocol Version Info:

PROTO_VERSION_66

public static final ProtocolVersion PROTO_VERSION_66
MythTV Development Version 2011-05-25.

Protocol Changes:

Since:
2011-05-25
MythTV Protocol Version Info:

PROTO_VERSION_67

public static final ProtocolVersion PROTO_VERSION_67
MythTV Development Version 2011-06-03.

Protocol Changes:

Since:
2011-06-03
MythTV Protocol Version Info:

PROTO_VERSION_68

public static final ProtocolVersion PROTO_VERSION_68
MythTV Development Version 2011-07-09.

Protocol Changes:

Since:
2011-07-09
MythTV Protocol Version Info:

PROTO_VERSION_69

public static final ProtocolVersion PROTO_VERSION_69
MythTV Development Version 2011-07-11.

Protocol Changes:

Since:
2011-07-11
MythTV Protocol Version Info:

PROTO_VERSION_70

public static final ProtocolVersion PROTO_VERSION_70
MythTV Development Version 2011-11-30.

Protocol Changes:

Since:
2011-07-11
MythTV Protocol Version Info:

PROTO_VERSION_71

public static final ProtocolVersion PROTO_VERSION_71
MythTV Development Version 2012-01-15.

Protocol Changes:

Since:
2012-01-15
MythTV Protocol Version Info:

PROTO_VERSION_72

public static final ProtocolVersion PROTO_VERSION_72
MythTV Release Version 0.25 2012-01-29.

Protocol Changes:

Since:
2012-01-29
MythTV Protocol Version Info:

PROTO_VERSION_73

public static final ProtocolVersion PROTO_VERSION_73
MythTV Development Version 2012-04-11. Protocol Changes:

Since:
2012-04-11
MythTV Protocol Version Info:

PROTO_VERSION_74

public static final ProtocolVersion PROTO_VERSION_74
MythTV Development Version 2012-05-09. Protocol Changes:


PROTO_VERSION_75

public static final ProtocolVersion PROTO_VERSION_75
MythTV Release Version 0.26 2012-05-30.

Protocol Changes:

Since:
2012-05-30
MythTV Protocol Version Info:

PROTO_VERSION_76

public static final ProtocolVersion PROTO_VERSION_76
MythTV Development Version 2012-11-23. Protocol Changes:


PROTO_VERSION_77

public static final ProtocolVersion PROTO_VERSION_77
MythTV Release Version 0.27 Version 2013-01-01. Protocol Changes:


PROTO_VERSION_LATEST

public static final ProtocolVersion PROTO_VERSION_LATEST
MythTV Current Development Version.

Method Detail

values

public static ProtocolVersion[] 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 (ProtocolVersion c : ProtocolVersion.values())
    System.out.println(c);

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

valueOf

public static ProtocolVersion 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

getVersion

public int getVersion()
Gets the protocol version number.

Specified by:
getVersion in interface IVersion
Returns:
the version number, e.g. 5

getToken

public String getToken()
Gets the protocol version "handshake" token.

This token is used starting from version 62 to establish a connection with the backend.

Returns:
the handshake token.

getMetaData

public Map<String,String> getMetaData()
Gets some known metadata about the protocol version.

Metadata are e.g. the Date and SVN revision the version was introduced, or the Git commit id. See ProtocolVersionInfo for the supported types of data.

Returns:
metadata about the protocol version.

getPredecessor

public ProtocolVersion getPredecessor()
Gets the predecessor version of the current version.

Returns:
the predecessor version.

getSuccessor

public ProtocolVersion getSuccessor()
Gets the successor version of the current version.

Returns:
the successor version.

valueOf

public static ProtocolVersion valueOf(int protoVersion)
Gets the protocol-version whose value matches the given protocol version.

Parameters:
protoVersion - the requested protocol version
Returns:
the found protocol version property or null.

getMaxVersion

public static ProtocolVersion getMaxVersion()
Gets the maximum protocol version that is currently supported.

This returns the last enum constant excluding PROTO_VERSION_LATEST.

Returns:
the maximum supported protocol version


Copyright © 2008-2013. All Rights Reserved.