org.oddjob.jmx.client
Class HandlerVersion

java.lang.Object
  extended by org.oddjob.jmx.client.HandlerVersion
All Implemented Interfaces:
Serializable

public class HandlerVersion
extends Object
implements Serializable

Encapsulate a handler version. Client should use the version provided by the server to decide if/how to proxy server side interfaces.

See Also:
SimpleHandlerResolver, Serialized Form
Author:
rob

Constructor Summary
HandlerVersion(int major, int minor)
          Constructor.
 
Method Summary
 int getMajor()
          Get the major version number.
 int getMinor()
          Get the minor version number.
 String getVersionAsText()
          Return the version as major.minor.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HandlerVersion

public HandlerVersion(int major,
                      int minor)
Constructor.

Parameters:
major - The major version number.
minor - The minor version number.
Method Detail

getMajor

public int getMajor()
Get the major version number.

Returns:

getMinor

public int getMinor()
Get the minor version number.

Returns:

getVersionAsText

public String getVersionAsText()
Return the version as major.minor.

Returns:
The version as text.

toString

public String toString()
Overrides:
toString in class Object