public class PortMapperServer extends NetworkServer implements RpcProcessor
| Modifier and Type | Field and Description |
|---|---|
static int |
DefaultPort |
static int |
MaxRequestSize |
SHUTDOWN_TIMEOUT| Constructor and Description |
|---|
PortMapperServer(ServerConfiguration config)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
Return the server port
|
RpcPacket |
processRpc(RpcPacket rpc)
Process an RPC request
|
void |
setPort(int port)
Set the server port
|
void |
shutdownServer(boolean immediate)
Shutdown the server
|
void |
startServer()
Start the portmapper 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 static final int DefaultPort
public static final int MaxRequestSize
public PortMapperServer(ServerConfiguration config)
config - ServerConfigurationpublic final int getPort()
public void startServer()
startServer in class NetworkServerpublic void shutdownServer(boolean immediate)
shutdownServer in class NetworkServerimmediate - booleanpublic final void setPort(int port)
port - intpublic RpcPacket processRpc(RpcPacket rpc) throws java.io.IOException
processRpc in interface RpcProcessorrpc - RpcPacketjava.io.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.