org.mbari.siam.distributed.leasing
Class LeaseDescription

java.lang.Object
  extended by org.mbari.siam.distributed.leasing.LeaseDescription
All Implemented Interfaces:
java.io.Serializable

public class LeaseDescription
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 byte[] _clientNote
          Client notation.
 long _currentTimeMsec
          Poll current system time.
 long _durationMsec
          Lease duration.
 long _establishMsec
          Time at which lease was established/renewed.
 int _id
          Lease ID.
 long _renewalCount
          number or times lease renewed
 long _renewalTime
          Last lease renewal time
 int _type
          LeaseDescription.COMMS_LEASE or LeaseDescription.CPU_LEASE
static int COMMS_LEASE
           
static int CPU_LEASE
           
 
Constructor Summary
LeaseDescription()
           
 
Method Summary
 long timeRemaining()
          Time remaining before lease expires.
 java.lang.String toString()
          Print out on screen the following items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMS_LEASE

public static final int COMMS_LEASE
See Also:
Constant Field Values

CPU_LEASE

public static final int CPU_LEASE
See Also:
Constant Field Values

_id

public int _id
Lease ID.


_establishMsec

public long _establishMsec
Time at which lease was established/renewed.


_durationMsec

public long _durationMsec
Lease duration.


_currentTimeMsec

public long _currentTimeMsec
Poll current system time.


_renewalTime

public long _renewalTime
Last lease renewal time


_renewalCount

public long _renewalCount
number or times lease renewed


_clientNote

public byte[] _clientNote
Client notation.


_type

public int _type
LeaseDescription.COMMS_LEASE or LeaseDescription.CPU_LEASE

Constructor Detail

LeaseDescription

public LeaseDescription()
Method Detail

timeRemaining

public long timeRemaining()
Time remaining before lease expires.


toString

public java.lang.String toString()
Print out on screen the following items.

Overrides:
toString in class java.lang.Object


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.