public class MountServer extends RpcNetworkServer implements RpcProcessor
Contains the NFS mount server.
Modifier and Type | Field and Description |
---|---|
static String |
DOS_SEPERATOR |
static char |
DOS_SEPERATOR_CHAR |
static int |
MaxRequestSize |
static String |
UNIX_SEPERATOR |
static char |
UNIX_SEPERATOR_CHAR |
SHUTDOWN_TIMEOUT
Constructor and Description |
---|
MountServer(ServerConfiguration config)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Return the port to bind to
|
protected int |
mountPath(NFSSrvSession sess,
String path,
byte[] handle)
Mount a path.
|
RpcPacket |
processRpc(RpcPacket rpc)
Process an RPC request
|
void |
setPort(int port)
Set the port to use
|
void |
shutdownServer(boolean immediate)
Shutdown the mount server
|
void |
startServer()
Start the mount server
|
registerRPCServer, registerRPCServer, setPortMapper, unregisterRPCServer, unregisterRPCServer
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, setVersion
public static final int MaxRequestSize
public static final String UNIX_SEPERATOR
public static final char UNIX_SEPERATOR_CHAR
public static final String DOS_SEPERATOR
public static final char DOS_SEPERATOR_CHAR
public MountServer(ServerConfiguration config)
config
- ServerConfigurationpublic final int getPort()
public final void setPort(int port)
port
- intpublic void startServer()
startServer
in class RpcNetworkServer
public void shutdownServer(boolean immediate)
shutdownServer
in class RpcNetworkServer
immediate
- booleanpublic RpcPacket processRpc(RpcPacket rpc) throws IOException
processRpc
in interface RpcProcessor
processRpc
in class RpcNetworkServer
rpc
- RpcPacketIOException
protected final int mountPath(NFSSrvSession sess, String path, byte[] handle)
sess
- NFSSrvSessionpath
- Stringhandle
- byte[]Copyright © 2005–2017 Alfresco Software. All rights reserved.