org.apache.jackrabbit.rmi.remote
Interface RemoteRepository

All Superinterfaces:
Remote
All Known Implementing Classes:
BrokenRemoteRepository, ServerRepository

public interface RemoteRepository
extends Remote

Remote version of the JCR Repository interface. Used by the ServerRepository and ClientRepository adapters to provide transparent RMI access to remote repositories.

The methods in this interface are documented only with a reference to a corresponding Repository method. The remote object will simply forward the method call to the underlying Repository instance. Session objects are returned as remote references to the RemoteSession interface. Simple return values and possible exceptions are copied over the network to the client. RMI errors are signaled with RemoteExceptions.

See Also:
Repository, ClientRepository, ServerRepository

Method Summary
 String getDescriptor(String key)
          Remote version of the Repository.getDescriptor(String) method.
 String[] getDescriptorKeys()
          Remote version of the Repository.getDescriptorKeys() method.
 RemoteSession login()
          Remote version of the Repository.login(} method.
 RemoteSession login(Credentials credentials)
          Remote version of the Repository.login(Credentials} method.
 RemoteSession login(Credentials credentials, String workspace)
          Remote version of the Repository.login(Credentials,String} method.
 RemoteSession login(String workspace)
          Remote version of the Repository.login(String} method.
 

Method Detail

getDescriptor

String getDescriptor(String key)
                     throws RemoteException
Remote version of the Repository.getDescriptor(String) method.

Parameters:
key - descriptor key
Returns:
descriptor value
Throws:
RemoteException - on RMI errors

getDescriptorKeys

String[] getDescriptorKeys()
                           throws RemoteException
Remote version of the Repository.getDescriptorKeys() method.

Returns:
descriptor keys
Throws:
RemoteException - on RMI errors

login

RemoteSession login()
                    throws RepositoryException,
                           RemoteException
Remote version of the Repository.login(} method.

Returns:
remote session
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

login

RemoteSession login(String workspace)
                    throws RepositoryException,
                           RemoteException
Remote version of the Repository.login(String} method.

Parameters:
workspace - workspace name
Returns:
remote session
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

login

RemoteSession login(Credentials credentials)
                    throws RepositoryException,
                           RemoteException
Remote version of the Repository.login(Credentials} method.

Parameters:
credentials - client credentials
Returns:
remote session
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

login

RemoteSession login(Credentials credentials,
                    String workspace)
                    throws RepositoryException,
                           RemoteException
Remote version of the Repository.login(Credentials,String} method.

Parameters:
credentials - client credentials
workspace - workspace name
Returns:
remote session
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.