Package org.apache.jackrabbit.rmi.server
Class ServerQueryManager
- 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.ServerQueryManager
-
- All Implemented Interfaces:
Serializable
,Remote
,RemoteQueryManager
@Deprecated(forRemoval=true) public class ServerQueryManager extends ServerObject implements RemoteQueryManager
Deprecated, for removal: This API element is subject to removal in a future version.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
QueryManager
interface. This class makes a local query manager available as an RMI service using theRemoteQueryManager
interface.- See Also:
QueryManager
,RemoteQueryManager
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerQueryManager(Session session, QueryManager manager, ServerAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given local query manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RemoteQuery
createQuery(String statement, String language)
Deprecated, for removal: This API element is subject to removal in a future version.RemoteQuery
getQuery(String absPath)
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getSupportedQueryLanguages()
Deprecated, for removal: This API element is subject to removal in a future version.SeeQuery
.-
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, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
-
-
-
Constructor Detail
-
ServerQueryManager
public ServerQueryManager(Session session, QueryManager manager, ServerAdapterFactory factory) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given local query manager.- Parameters:
session
- current sessionmanager
- local query managerfactory
- remote adapter factory- Throws:
RemoteException
- on RMI errors
-
-
Method Detail
-
createQuery
public RemoteQuery createQuery(String statement, String language) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createQuery
in interfaceRemoteQueryManager
- Parameters:
statement
- query statementlanguage
- query language- Returns:
- query
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- See Also:
QueryManager.createQuery(java.lang.String, java.lang.String)
-
getQuery
public RemoteQuery getQuery(String absPath) throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getQuery
in interfaceRemoteQueryManager
- Parameters:
absPath
- node path of a persisted query (that is, a node of typent:query
).- Returns:
- a
Query
object. - Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- See Also:
QueryManager.getQuery(javax.jcr.Node)
-
getSupportedQueryLanguages
public String[] getSupportedQueryLanguages() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.SeeQuery
.- Specified by:
getSupportedQueryLanguages
in interfaceRemoteQueryManager
- Returns:
- An string array.
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors- See Also:
QueryManager.getSupportedQueryLanguages()
-
-