Class ServerIterator
- java.lang.Object
-
- java.rmi.server.RemoteObject
-
- java.rmi.server.RemoteServer
-
- java.rmi.server.UnicastRemoteObject
-
- org.apache.jackrabbit.rmi.server.ServerObject
-
- org.apache.jackrabbit.rmi.server.iterator.ServerIterator
-
- All Implemented Interfaces:
Serializable,Remote,RemoteIterator
- Direct Known Subclasses:
ServerAccessControlPolicyIterator,ServerNodeIterator,ServerNodeTypeIterator,ServerPrincipalIterator,ServerPropertyIterator,ServerRowIterator,ServerVersionIterator
@Deprecated public abstract class ServerIterator extends ServerObject implements RemoteIterator
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for the JCR
RangeIteratorinterface. This class makes a local iterator available as an RMI service using theRemoteIteratorinterface.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerIterator(RangeIterator iterator, RemoteAdapterFactory factory, int maxBufferSize)Deprecated.Creates a remote adapter for the given local item.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract ObjectgetRemoteObject(Object object)Deprecated.Returns a remote adapter for the given local object.longgetSize()Deprecated.Returns the size of the iterator.Object[]nextObjects()Deprecated.Returns an array of remote references to the next elements in this iteration.voidskip(long items)Deprecated.Skips the given number of elements.-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerIterator
public ServerIterator(RangeIterator iterator, RemoteAdapterFactory factory, int maxBufferSize) throws RemoteException
Deprecated.Creates a remote adapter for the given local item.- Parameters:
iterator- local iterator to be adaptedfactory- remote adapter factorymaxBufferSize- maximum buffer size- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
getSize
public long getSize() throws RemoteExceptionDeprecated.Returns the size of the iterator. The size is cached by invoking the adapted local iterator when this method is first called or by determining the size from an end-of-iterator condition in nextObjects().- Specified by:
getSizein interfaceRemoteIterator- Returns:
- size of the iterator
- Throws:
RemoteException- on RMI errors- See Also:
RangeIterator.getSize()
-
skip
public void skip(long items) throws NoSuchElementException, RemoteExceptionDeprecated.Skips the given number of elements.- Specified by:
skipin interfaceRemoteIterator- Parameters:
items- number of elements to skip- Throws:
NoSuchElementException- if skipped past the last elementRemoteException- on RMI errors- See Also:
RangeIterator.skip(long)
-
getRemoteObject
protected abstract Object getRemoteObject(Object object) throws RemoteException
Deprecated.Returns a remote adapter for the given local object. This abstract method is used bynextObjects()to convert the local objects to remote references to be sent to the client.Subclasses should implement this method to use the remote adapter factory to create remote adapters of the specific element type.
- Parameters:
object- local object- Returns:
- remote adapter
- Throws:
RemoteException- on RMI errors
-
nextObjects
public Object[] nextObjects() throws RemoteException
Deprecated.Returns an array of remote references to the next elements in this iteration.- Specified by:
nextObjectsin interfaceRemoteIterator- Returns:
- array of remote references, or
null - Throws:
RemoteException- on RMI errors- See Also:
Iterator.next()
-
-