com.sun.jini.outrigger
Class ConstrainableIteratorProxy

java.lang.Object
  extended by com.sun.jini.outrigger.IteratorProxy
      extended by com.sun.jini.outrigger.ConstrainableIteratorProxy
All Implemented Interfaces:
AdminIterator

final class ConstrainableIteratorProxy
extends IteratorProxy

Constrainable subclass of IteratorProxy


Field Summary
private static Method[] methodMapArray
          Array containing element pairs in which each pair of elements represents a mapping between two methods having the following characteristics: the first element in the pair is one of the public, remote method(s) that may be invoked by the client through AdminIterator.
 
Fields inherited from class com.sun.jini.outrigger.IteratorProxy
server
 
Constructor Summary
ConstrainableIteratorProxy(Uuid iterationUuid, OutriggerAdmin server, int fetchSize, MethodConstraints methodConstraints)
          Create a new ConstrainableIteratorProxy.
 
Method Summary
private static OutriggerAdmin constrainServer(OutriggerAdmin server, MethodConstraints constraints)
          Returns a copy of the given OutriggerAdmin proxy having the client method constraints that result after mapping defined by methodMapArray is applied.
 
Methods inherited from class com.sun.jini.outrigger.IteratorProxy
close, delete, next, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

methodMapArray

private static final Method[] methodMapArray
Array containing element pairs in which each pair of elements represents a mapping between two methods having the following characteristics:

Constructor Detail

ConstrainableIteratorProxy

ConstrainableIteratorProxy(Uuid iterationUuid,
                           OutriggerAdmin server,
                           int fetchSize,
                           MethodConstraints methodConstraints)
Create a new ConstrainableIteratorProxy.

Parameters:
iterationUuid - The identity of the iteration this proxy is for.
server - reference to remote server for the space.
fetchSize - Number of entries to ask for when it goes to the server
methodConstraints - the client method constraints to place on this proxy (may be null).
Throws:
NullPointerException - if server or iterationUuid is null.
ClassCastException - if server does not implement RemoteMethodControl.
Method Detail

constrainServer

private static OutriggerAdmin constrainServer(OutriggerAdmin server,
                                              MethodConstraints constraints)
Returns a copy of the given OutriggerAdmin proxy having the client method constraints that result after mapping defined by methodMapArray is applied.

Parameters:
server - The proxy to attach constrains too.
constraints - The source method constraints.
Throws:
NullPointerException - if server is null.
ClassCastException - if server does not implement RemoteMethodControl.


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