public abstract class RpcNetworkServer extends NetworkServer implements RpcProcessor
Provides the base class for RPC servers (such as mount and NFS).
SHUTDOWN_TIMEOUT| Constructor and Description |
|---|
RpcNetworkServer(java.lang.String name,
ServerConfiguration config)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract RpcPacket |
processRpc(RpcPacket rpc)
Process an RPC request
|
protected void |
registerRPCServer(PortMapping mapping)
Register a port/protocol for the RPC server
|
protected void |
registerRPCServer(PortMapping[] mappings)
Register a set of ports/protocols for the RPC server
|
void |
setPortMapper(int port)
Set the port mapper port, or -1 to disable portmapper registration
|
abstract void |
shutdownServer(boolean immediate)
Shutdown the RPC server
|
abstract void |
startServer()
Start the RPC server
|
protected void |
unregisterRPCServer(PortMapping mapping)
Unregister a port/protocol for the RPC server
|
protected void |
unregisterRPCServer(PortMapping[] mappings)
Unregister a set of ports/protocols for the RPC server
|
addServerListener, addSessionListener, clearException, findShare, fireServerEvent, fireSessionClosedEvent, fireSessionLoggedOnEvent, fireSessionOpenEvent, getAccessControlManager, getConfiguration, getException, getFullShareList, getGlobalConfiguration, getProtocolName, getSecurityConfiguration, getServerAddresses, getShareList, getShareMapper, hasAccessControlManager, hasDebug, hasDebugFlag, hasException, hasShutdown, isActive, isEnabled, isVersion, removeServerListener, removeSessionListener, setActive, setDebug, setDebugFlags, setEnabled, setException, setServerAddresses, setShutdown, setVersionpublic RpcNetworkServer(java.lang.String name,
ServerConfiguration config)
name - Stringconfig - ServerConfigurationrpcRegPort - intprotected final void registerRPCServer(PortMapping mapping) throws java.io.IOException
mapping - PortMappingjava.io.IOExceptionprotected final void registerRPCServer(PortMapping[] mappings) throws java.io.IOException
mappings - PortMapping[]java.io.IOExceptionprotected final void unregisterRPCServer(PortMapping mapping) throws java.io.IOException
mapping - PortMappingjava.io.IOExceptionprotected final void unregisterRPCServer(PortMapping[] mappings) throws java.io.IOException
mappings - PortMapping[]java.io.IOExceptionpublic final void setPortMapper(int port)
port - intpublic abstract void startServer()
startServer in class NetworkServerpublic abstract void shutdownServer(boolean immediate)
shutdownServer in class NetworkServerimmediate - booleanpublic abstract RpcPacket processRpc(RpcPacket rpc) throws java.io.IOException
processRpc in interface RpcProcessorrpc - RpcPacketjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.