view src/org/dancres/blitz/remote/ViewResult.java @ 35:6f68e94c1fb8 default tip

Add CondensedStats monitoring utility, equivalent to vmstat
author Dominic Cleal <dominic-cleal@cdo2.com>
date Thu, 05 Aug 2010 11:07:25 +0100
parents 3dc0c5604566
children
line wrap: on
line source

package org.dancres.blitz.remote;

import java.io.Serializable;

import org.dancres.blitz.EntryChit;

/**
 * Used to contain a lease and a first chunk of EntryChits destined for a MatchSetImpl or
 * an AdminIteratorImpl.  The first batch is piggy-backed onto the initial request to create
 * a view as an optimization for saving a further roundtrip which would otherwise be
 * required to get the first batch of EntryChits (which might also be the last of course
 * if the set is less than the chunk size).
 */
public class ViewResult implements Serializable {
    private LeaseImpl theLease;
    private EntryChit[] theInitialBatch;

    ViewResult(LeaseImpl aLease, EntryChit[] anInitialBatch) {
        theLease = aLease;
        theInitialBatch = anInitialBatch;
    }

    LeaseImpl getLease() {
        return theLease;
    }

    EntryChit[] getInitialBatch() {
        return theInitialBatch;
    }
}