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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.VersionModel(javax.servlet.ServletContext context) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the protobuf represention of the modelReturns the version of the embedded Jersey frameworkReturns the JVM vendor and versiongetObjectFromMessage(byte[] message) Initialize the model from a protobuf representation.Returns the OS name, version, and hardware architectureReturns the REST gateway versionReturns the servlet container versionvoidsetJerseyVersion(String version) voidsetJVMVersion(String version) voidsetOSVersion(String version) voidsetRESTVersion(String version) voidsetServerVersion(String version) toString()
-
Field Details
-
serialVersionUID
- See Also:
-
restVersion
-
jvmVersion
-
osVersion
-
serverVersion
-
jerseyVersion
-
-
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 -
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
-
toString
-
createProtobufOutput
Description copied from interface:ProtobufMessageHandlerReturns the protobuf represention of the model- Specified by:
createProtobufOutputin interfaceProtobufMessageHandler
-
getObjectFromMessage
Description copied from interface:ProtobufMessageHandlerInitialize the model from a protobuf representation.- Specified by:
getObjectFromMessagein interfaceProtobufMessageHandler- Parameters:
message- the raw bytes of the protobuf message- Returns:
- reference to self for convenience
- Throws:
IOException
-