JavaSpace05.contents
method can be used to view the space's contents.public interface ConstrainableJavaSpaceAdmin extends JavaSpaceAdmin
JavaSpaceAdmin
that
adds a method that allows iterators to be created with
a given set of constraints.USE_DEFAULT
Modifier and Type | Method and Description |
---|---|
AdminIterator |
contents(Entry tmpl,
Transaction txn)
Deprecated.
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. |
AdminIterator |
contents(Entry tmpl,
Transaction txn,
int fetchSize)
Deprecated.
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. |
AdminIterator |
contents(Entry tmpl,
Transaction txn,
int fetchSize,
MethodConstraints constrains)
Deprecated.
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. |
space
addLookupAttributes, addLookupGroups, addLookupLocators, getLookupAttributes, getLookupGroups, getLookupLocators, modifyLookupAttributes, removeLookupGroups, removeLookupLocators, setLookupGroups, setLookupLocators
destroy
AdminIterator contents(Entry tmpl, Transaction txn) throws TransactionException, RemoteException
AdminIterator
that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction.
The interactions between other operations on the space and the returned iterator are undefined
Note, because this is a convenience method for
contents(Entry, Transaction, int,
MethodConstraints)
the constraints associated with
contents(Entry, Transaction, int,
MethodConstraints)
are used for any calls though this
method, not the constraints associated with this method.
contents
in interface JavaSpaceAdmin
tmpl
- The iterator should return only entries that match
tmpltxn
- The iterator should return only entries that match
this transactionRemoteException
- if communications with the
server is necessary and it can not be completed.TransactionException
- if there is a problem with
txn
.SecurityException
- If the space is performing
access control and it can not be confirmed
that the subject making this call has permission
to create an AdminIterator
with
the specified template and transaction.AdminIterator contents(Entry tmpl, Transaction txn, int fetchSize) throws TransactionException, RemoteException
AdminIterator
that will iterate over all
the entries in the space that match the given template and are
visible under the given transaction.
The interactions between other operations on the space and the returned iterator are undefined
Note, because this is a convenience method for
contents(Entry, Transaction, int,
MethodConstraints)
the constraints associated with
contents(Entry, Transaction, int,
MethodConstraints)
are used for any calls though this
method, not the constraints associated with this method.
contents
in interface JavaSpaceAdmin
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.RemoteException
- if communications with the
server is necessary and it can not be completed.TransactionException
- if there is a problem with
txn
.SecurityException
- If the space is performing
access control and it can not be confirmed
that the subject making this call has permission
to create an AdminIterator
with
the specified template and transaction.IllegalArgumentException
- if fetchSize is
not postive, or USE_DEFUALT
.AdminIterator contents(Entry tmpl, Transaction txn, int fetchSize, MethodConstraints constrains) throws TransactionException, RemoteException
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
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.constrains
- the MethodConstraints
the
returned proxy should enforce.RemoteException
- if communications with the
server is necessary and it can not be completed.TransactionException
- if there is a problem with
txn
.SecurityException
- If the space is performing
access control and it can not be confirmed
that the subject making this call has permission
to create an AdminIterator
with
the specified template and transaction.IllegalArgumentException
- if fetchSize is
not postive, or USE_DEFUALT
.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.