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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor.VersionModel(javax.servlet.ServletContext context) Constructor
- 
Method SummaryModifier 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- 
VersionModelpublic VersionModel()Default constructor. Do not use.
- 
VersionModelConstructor- Parameters:
- context- the servlet context
 
 
- 
- 
Method Details- 
getRESTVersionReturns the REST gateway version
- 
getJVMVersionReturns the JVM vendor and version
- 
getOSVersionReturns the OS name, version, and hardware architecture
- 
getServerVersionReturns the servlet container version
- 
getJerseyVersionReturns 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
- 
createProtobufOutputDescription copied from interface:ProtobufMessageHandlerReturns the protobuf represention of the model- Specified by:
- createProtobufOutputin interface- ProtobufMessageHandler
 
- 
getObjectFromMessageDescription copied from interface:ProtobufMessageHandlerInitialize the model from a protobuf representation.- Specified by:
- getObjectFromMessagein interface- ProtobufMessageHandler
- Parameters:
- message- the raw bytes of the protobuf message
- Returns:
- reference to self for convenience
- Throws:
- IOException
 
 
-