public class MountServer extends RpcNetworkServer implements RpcProcessor
Contains the NFS mount server.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOS_SEPERATOR |
static char |
DOS_SEPERATOR_CHAR |
static int |
MaxRequestSize |
static java.lang.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,
java.lang.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 java.lang.String UNIX_SEPERATOR
public static final char UNIX_SEPERATOR_CHAR
public static final java.lang.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 java.io.IOException
processRpc
in interface RpcProcessor
processRpc
in class RpcNetworkServer
rpc
- RpcPacketjava.io.IOException
protected final int mountPath(NFSSrvSession sess, java.lang.String path, byte[] handle)
sess
- NFSSrvSessionpath
- Stringhandle
- byte[]Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.