public final class ConstrainableAdminProxy extends AdminProxy implements net.jini.core.constraint.RemoteMethodControl, ConstrainableJavaSpaceAdmin
AdminProxy
USE_DEFAULT
Constructor and Description |
---|
ConstrainableAdminProxy(OutriggerAdmin admin,
net.jini.id.Uuid spaceUuid,
net.jini.core.constraint.MethodConstraints methodConstraints)
Create a new
ConstrainableAdminProxy . |
Modifier and Type | Method and Description |
---|---|
AdminIterator |
contents(net.jini.core.entry.Entry tmpl,
net.jini.core.transaction.Transaction tr,
int fetchSize)
Override super class to create secure
IteratorProxy s |
AdminIterator |
contents(net.jini.core.entry.Entry tmpl,
net.jini.core.transaction.Transaction txn,
int fetchSize,
net.jini.core.constraint.MethodConstraints constraints)
Return an
AdminIterator that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. |
net.jini.core.constraint.MethodConstraints |
getConstraints() |
net.jini.core.constraint.RemoteMethodControl |
setConstraints(net.jini.core.constraint.MethodConstraints constraints) |
addLookupAttributes, addLookupGroups, addLookupLocators, contents, destroy, equals, getLookupAttributes, getLookupGroups, getLookupLocators, getReferentUuid, hashCode, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators, space, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contents
space
addLookupAttributes, addLookupGroups, addLookupLocators, getLookupAttributes, getLookupGroups, getLookupLocators, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators
destroy
public ConstrainableAdminProxy(OutriggerAdmin admin, net.jini.id.Uuid spaceUuid, net.jini.core.constraint.MethodConstraints methodConstraints)
ConstrainableAdminProxy
.admin
- reference to remote server for the space.spaceUuid
- universal unique ID for the space.methodConstraints
- the client method constraints to place on
this proxy (may be null
).NullPointerException
- if admin
or
spaceUuid
is null
.ClassCastException
- if admin
does not implement RemoteMethodControl
.public net.jini.core.constraint.RemoteMethodControl setConstraints(net.jini.core.constraint.MethodConstraints constraints)
setConstraints
in interface net.jini.core.constraint.RemoteMethodControl
public net.jini.core.constraint.MethodConstraints getConstraints()
getConstraints
in interface net.jini.core.constraint.RemoteMethodControl
public AdminIterator contents(net.jini.core.entry.Entry tmpl, net.jini.core.transaction.Transaction tr, int fetchSize) throws net.jini.core.transaction.TransactionException, RemoteException
IteratorProxy
scontents
in interface JavaSpaceAdmin
contents
in interface ConstrainableJavaSpaceAdmin
contents
in class AdminProxy
tmpl
- The iterator should return only entries that match
tmpltr
- The iterator should return only entries that match
this transactionfetchSize
- advice on how many entries to fetch when the iterator
has to go to the server for more entries.net.jini.core.transaction.TransactionException
- if there is a problem with
txn
.RemoteException
- if communications with the
server is necessary and it can not be completed.public AdminIterator contents(net.jini.core.entry.Entry tmpl, net.jini.core.transaction.Transaction txn, int fetchSize, net.jini.core.constraint.MethodConstraints constraints) throws net.jini.core.transaction.TransactionException, RemoteException
ConstrainableJavaSpaceAdmin
AdminIterator
that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction. The returned iterator
will support proxy trust verification and will enforce
the specified MethodConstraints
.
The interactions between other operations on the space and the returned iterator are undefined
contents
in interface ConstrainableJavaSpaceAdmin
tmpl
- The iterator should return only entries that match
tmpltxn
- The iterator should return only entries that match
this transactionfetchSize
- advice on how many entries to fetch when the
iterator has to go to the server for more entries.constraints
- the MethodConstraints
the
returned proxy should enforce.net.jini.core.transaction.TransactionException
- if there is a problem with
txn
.RemoteException
- if communications with the
server is necessary and it can not be completed.Copyright © 2016–2018. All rights reserved.