Protege 2.1

edu.stanford.smi.protege.server
Class Server

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended byedu.stanford.smi.protege.server.Server
All Implemented Interfaces:
Remote, RemoteServer, Serializable

public class Server
extends UnicastRemoteObject
implements RemoteServer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
Server(String[] args, RMISocketFactory sf)
           
 
Method Summary
protected  void bindName()
           
 void closeSession(RemoteSession session)
           
 void disconnectFromProject(RemoteServerProject serverProject, RemoteSession session)
           
protected  void extractMetaProjectLocation(String s)
           
 Collection getAvailableProjectNames(RemoteSession session)
           
static String getBoundName()
           
 Collection getCurrentSessions(RemoteServerProject project)
           
 Collection getCurrentSessions(String projectName, RemoteSession session)
           
protected static String getLocalBoundName()
           
static void main(String[] args)
           
 RemoteServerProject openProject(String projectName, RemoteSession session)
           
 RemoteSession openSession(String username, String userMachine, String password)
           
protected  void parseArg(String arg)
           
protected  void printUsage()
           
 void reinitialize()
           
static void startServer(String[] args)
          Calls startServer with FixedPortRmiSocketFactory as the socket factory.
static void startServer(String[] args, RMISocketFactory sf)
          Start up the server.
 String toString()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Server

public Server(String[] args,
              RMISocketFactory sf)
       throws RemoteException,
              IOException
Method Detail

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 server
sf - 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()

Protege 2.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.