com.sun.jini.outrigger
Class OutriggerServerImpl.IteratorImpl

java.lang.Object
  extended by com.sun.jini.outrigger.OutriggerServerImpl.IteratorImpl
Enclosing class:
OutriggerServerImpl

private class OutriggerServerImpl.IteratorImpl
extends Object

Implementation of the remote iteration interface.


Field Summary
(package private)  boolean closed
          true if closed, false otherwise
private  EntryRep[] lastBatch
          Last batch of EntryRep objects sent to the client.
private  Uuid lastId
          Uuid of last entry in lastBatch.
private  RepEnum repEnum
          RepEnum for all potential matches
private  EntryRep tmpl
          The template the match
 
Constructor Summary
OutriggerServerImpl.IteratorImpl(EntryRep tmpl, Txn txn)
          Create a RemoteIterImpl object to return all objects that match the given template.
 
Method Summary
private  void assertOpen()
          Throw IllegalStateException if operations happen on closed iterator.
 void close()
          Close operations on this iterator.
 void delete(Uuid id)
          Delete the entry of the given class and id.
 EntryRep[] nextReps(int max, Uuid id)
           
private  void rememberLast(EntryRep[] newLast)
          Utility to set lastBatch and lastId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tmpl

private final EntryRep tmpl
The template the match


repEnum

private RepEnum repEnum
RepEnum for all potential matches


closed

boolean closed
true if closed, false otherwise


lastBatch

private EntryRep[] lastBatch
Last batch of EntryRep objects sent to the client.


lastId

private Uuid lastId
Uuid of last entry in lastBatch.

Constructor Detail

OutriggerServerImpl.IteratorImpl

OutriggerServerImpl.IteratorImpl(EntryRep tmpl,
                                 Txn txn)
Create a RemoteIterImpl object to return all objects that match the given template.

Method Detail

rememberLast

private void rememberLast(EntryRep[] newLast)
Utility to set lastBatch and lastId.


nextReps

public EntryRep[] nextReps(int max,
                           Uuid id)

delete

public void delete(Uuid id)
Delete the entry of the given class and id. We use class to get us to the proper EntryHolder efficiently.


close

public void close()
Close operations on this iterator.


assertOpen

private void assertOpen()
                 throws IllegalStateException
Throw IllegalStateException if operations happen on closed iterator.

Throws:
IllegalStateException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.