edu.stanford.smi.protege.server
Class Server
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.stanford.smi.protege.server.Server
- All Implemented Interfaces:
- Remote, RemoteServer, Serializable
- public class Server
- extends UnicastRemoteObject
- implements RemoteServer
- See Also:
- Serialized Form
Server
public Server(String[] args,
RMISocketFactory sf)
throws RemoteException,
IOException
main
public static void main(String[] args)
startServer
public static void startServer(String[] args)
throws IOException
- Calls startServer with
FixedPortRmiSocketFactory
as the socket
factory.
- Throws:
IOException
startServer
public static void startServer(String[] args,
RMISocketFactory sf)
throws IOException
- Start up the server.
- Parameters:
args
- the arguments to the serversf
- the socket factory to be used
- Throws:
IOException
- if the socket factory has already been set- See Also:
RMISocketFactory.setSocketFactory(RMISocketFactory)
getBoundName
public static String getBoundName()
getLocalBoundName
protected static String getLocalBoundName()
parseArg
protected void parseArg(String arg)
extractMetaProjectLocation
protected void extractMetaProjectLocation(String s)
printUsage
protected void printUsage()
reinitialize
public void reinitialize()
throws RemoteException
- Specified by:
reinitialize
in interface RemoteServer
- Throws:
RemoteException
bindName
protected void bindName()
throws RemoteException
- Throws:
RemoteException
openSession
public RemoteSession openSession(String username,
String userMachine,
String password)
- Specified by:
openSession
in interface RemoteServer
closeSession
public void closeSession(RemoteSession session)
- Specified by:
closeSession
in interface RemoteServer
openProject
public RemoteServerProject openProject(String projectName,
RemoteSession session)
- Specified by:
openProject
in interface RemoteServer
disconnectFromProject
public void disconnectFromProject(RemoteServerProject serverProject,
RemoteSession session)
getAvailableProjectNames
public Collection getAvailableProjectNames(RemoteSession session)
- Specified by:
getAvailableProjectNames
in interface RemoteServer
getCurrentSessions
public Collection getCurrentSessions(String projectName,
RemoteSession session)
- Specified by:
getCurrentSessions
in interface RemoteServer
getCurrentSessions
public Collection getCurrentSessions(RemoteServerProject project)
toString
public String toString()
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.