com.sun.jini.outrigger
Class ConstrainableIteratorProxy
java.lang.Object
com.sun.jini.outrigger.IteratorProxy
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 . |
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:
- the first element in the pair is one of the public, remote
method(s) that may be invoked by the client through
AdminIterator
.
- the second element in the pair is the method, implemented
in the backend server class, that is ultimately executed in
the server's backend when the client invokes the corresponding
method in this proxy.
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
servermethodConstraints
- 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
.
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.