Class VersionModel
java.lang.Object
org.apache.hadoop.hbase.rest.model.VersionModel
- All Implemented Interfaces:
Serializable
,ProtobufMessageHandler
A representation of the collection of versions of the REST gateway software components.
- restVersion: REST gateway revision
- jvmVersion: the JVM vendor and version information
- osVersion: the OS type, version, and hardware architecture
- serverVersion: the name and version of the servlet container
- jerseyVersion: the version of the embedded Jersey framework
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
private static final long
private String
private String
Fields inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
BUFFER_SIZE
-
Constructor Summary
ConstructorDescriptionDefault constructor.VersionModel
(javax.servlet.ServletContext context) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturns the version of the embedded Jersey frameworkReturns the JVM vendor and versiongetObjectFromMessage
(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) Returns the OS name, version, and hardware architectureReturns the REST gateway versionReturns the source control revision of the REST server componentReturns the servlet container versionReturns the build version of the REST server componentorg.apache.hbase.thirdparty.com.google.protobuf.Message
Convert to model to a protobuf Message objectvoid
setJerseyVersion
(String version) void
setJVMVersion
(String version) void
setOSVersion
(String version) void
setRESTVersion
(String version) void
setRevision
(String revision) void
setServerVersion
(String version) void
setVersion
(String version) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.rest.ProtobufMessageHandler
createProtobufOutput, getObjectFromMessage, getObjectFromMessage, writeProtobufOutput
-
Field Details
-
serialVersionUID
- See Also:
-
restVersion
-
jvmVersion
-
osVersion
-
serverVersion
-
jerseyVersion
-
version
-
revision
-
-
Constructor Details
-
VersionModel
public VersionModel()Default constructor. Do not use. -
VersionModel
Constructor- Parameters:
context
- the servlet context
-
-
Method Details
-
getRESTVersion
Returns the REST gateway version -
getJVMVersion
Returns the JVM vendor and version -
getOSVersion
Returns the OS name, version, and hardware architecture -
getServerVersion
Returns the servlet container version -
getJerseyVersion
Returns the version of the embedded Jersey framework -
getVersion
Returns the build version of the REST server component -
getRevision
Returns the source control revision of the REST server component -
setRESTVersion
- Parameters:
version
- the REST gateway version string
-
setOSVersion
- Parameters:
version
- the OS version string
-
setJVMVersion
- Parameters:
version
- the JVM version string
-
setServerVersion
- Parameters:
version
- the servlet container version string
-
setJerseyVersion
- Parameters:
version
- the Jersey framework version string
-
setVersion
- Parameters:
version
- the REST server component build version string
-
setRevision
- Parameters:
revision
- the REST server component source control revision string
-
toString
-
messageFromObject
Description copied from interface:ProtobufMessageHandler
Convert to model to a protobuf Message object- Specified by:
messageFromObject
in interfaceProtobufMessageHandler
- Returns:
- the protobuf Message object
-
getObjectFromMessage
public ProtobufMessageHandler getObjectFromMessage(org.apache.hbase.thirdparty.com.google.protobuf.CodedInputStream cis) throws IOException - Specified by:
getObjectFromMessage
in interfaceProtobufMessageHandler
- Throws:
IOException
-