|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
Base class for remote adapters. The purpose of this class is to centralize the handling of the RemoteAdapterFactory instance used to instantiate new server adapters.
Field Summary |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
protected |
ServerObject(RemoteAdapterFactory factory)
Creates a basic server adapter that uses the given factory to create new adapters. |
Method Summary | |
protected RemoteAdapterFactory |
getFactory()
Returns the remote adapter factory used to create new adapters. |
protected RemoteItem |
getRemoteItem(Item item)
Utility method for creating a remote reference for a local item. |
protected RemoteNode |
getRemoteNode(Node node)
Utility method for creating a remote reference for a local node. |
protected RemoteNode[] |
getRemoteNodeArray(NodeIterator iterator)
Utility method for creating an array of remote references for local nodes. |
protected RemoteNodeDefinition[] |
getRemoteNodeDefArray(NodeDefinition[] defs)
Utility method for creating an array of remote references for local node definitions. |
protected RemoteNodeType[] |
getRemoteNodeTypeArray(NodeType[] types)
Utility method for creating an array of remote references for local node types. |
protected RemoteNodeType[] |
getRemoteNodeTypeArray(NodeTypeIterator iterator)
Utility method for creating an array of remote references for local node types. |
protected RemoteProperty[] |
getRemotePropertyArray(PropertyIterator iterator)
Utility method for creating an array of remote references for local properties. |
protected RemotePropertyDefinition[] |
getRemotePropertyDefArray(PropertyDefinition[] defs)
Utility method for creating an array of remote references for local property definitions. |
protected RemoteRow[] |
getRemoteRowArray(RowIterator iterator)
Utility method for creating an array of remote references for local query result rows. |
protected RemoteVersion[] |
getRemoteVersionArray(Version[] versions)
Utility method for creating an array of remote references for local versions. |
protected RemoteVersion[] |
getRemoteVersionArray(VersionIterator iterator)
Utility method for creating an array of remote references for local versions. |
protected RepositoryException |
getRepositoryException(RepositoryException ex)
Returns a cleaned version of the given exception. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected ServerObject(RemoteAdapterFactory factory) throws RemoteException
factory
- remote adapter factory
RemoteException
- on RMI errorsMethod Detail |
protected RemoteAdapterFactory getFactory()
protected RepositoryException getRepositoryException(RepositoryException ex)
ex
- the original exception
protected RemoteItem getRemoteItem(Item item) throws RemoteException
If the item
, this method calls the
getRemoteNode(Node)
to return the correct remote type.
item
- local node, property, or item
RemoteException
- on RMI errorsprotected RemoteNode getRemoteNode(Node node) throws RemoteException
node
- local version, versionhistory, or normal node
RemoteException
- on RMI errorsprotected RemoteProperty[] getRemotePropertyArray(PropertyIterator iterator) throws RemoteException
A null
input is treated as an empty iterator.
iterator
- local property iterator
RemoteException
- on RMI errorsprotected RemoteNode[] getRemoteNodeArray(NodeIterator iterator) throws RemoteException
A null
input is treated as an empty iterator.
iterator
- local node iterator
RemoteException
- on RMI errorsprotected RemoteVersion[] getRemoteVersionArray(Version[] versions) throws RemoteException
A null
input is treated as an empty array.
versions
- local version array
RemoteException
- on RMI errorsprotected RemoteVersion[] getRemoteVersionArray(VersionIterator iterator) throws RemoteException
A null
input is treated as an empty iterator.
iterator
- local version iterator
RemoteException
- on RMI errorsprotected RemoteNodeType[] getRemoteNodeTypeArray(NodeType[] types) throws RemoteException
A null
input is treated as an empty array.
types
- local node type array
RemoteException
- on RMI errorsprotected RemoteNodeType[] getRemoteNodeTypeArray(NodeTypeIterator iterator) throws RemoteException
A null
input is treated as an empty iterator.
iterator
- local node type iterator
RemoteException
- on RMI errorsprotected RemoteNodeDefinition[] getRemoteNodeDefArray(NodeDefinition[] defs) throws RemoteException
A null
input is treated as an empty array.
defs
- local node definition array
RemoteException
- on RMI errorsprotected RemotePropertyDefinition[] getRemotePropertyDefArray(PropertyDefinition[] defs) throws RemoteException
A null
input is treated as an empty array.
defs
- local property definition array
RemoteException
- on RMI errorsprotected RemoteRow[] getRemoteRowArray(RowIterator iterator) throws RemoteException
A null
input is treated as an empty iterator.
iterator
- local query result row iterator
RemoteException
- on RMI errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |