de.kosi.server
Interface ServerAdmin

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
Server

public interface ServerAdmin
extends java.rmi.Remote

Interface for the server administration.

ChangeLog:

 $Log: ServerAdmin.java,v $
 Revision 1.2  2001/06/04 14:21:10  jiriki
 Made source more comliant to coding guidelines.

 Revision 1.1.1.1  2001/04/29 18:05:19  jiriki
 Imported sources from zola.

 Revision 1.5  2001/03/19 21:50:49  wombat
 - Worked on admin client.
 - improved shutdown sequence
 - removed bugs in login/logout sequence

 Revision 1.4  2001/03/18 18:10:26  wombat
 Updated Documentation

 Revision 1.3  2001/03/18 17:32:04  wombat
 Changed database concept

 Revision 1.2  2001/03/14 18:40:44  wombat
 Updated Documentation, removed bugs in Gui factory

 

Version:
$Revision: 1.2 $ ($Date: 2001/06/04 14:21:10 $)
Author:
Jan-Ole Janssen, Niklas Mehner, Time Sticher

Method Summary
 int getMaxTables()
          Get the maximum number of tables allowed to concurrently exist in the server.
 int getMaxTournaments()
          Get the maximum number of tournaments allowed to concurrently exist in the server.
 int getMaxUsers()
          Return the maximum number of users allowed to be concurrently logged into the server.
 int getThreadPoolThreads()
          Return the number of threads in the thread pool
 boolean isPrintingRMI()
          Return if RMI calls are printed to standart IO.
 void restart()
          Restart the server.
 void setMaxTables(int maxTables)
          Set the maximum number of tables allowed to concurrently exist in the server.
 void setMaxTournaments(int maxTournaments)
          Set the maximum number of tournaments allowed to concurrently exist in the server.
 void setMaxUsers(int maxUsers)
          Set the maximum number of users allowed to be concurrently logged into the server.
 void setPrintingRMI(boolean printRMI)
          Set if RMI calls should be printed to standart IO.
 void setThreadPoolThreads(int threads)
          Set the number of threads in the thread pool.
 void shutdown()
          Shut down the server.
 

Method Detail

shutdown

public void shutdown()
              throws java.rmi.RemoteException,
                     KosiAccessException,
                     InvalidSessionException
Shut down the server.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

restart

public void restart()
             throws java.rmi.RemoteException,
                    KosiAccessException,
                    InvalidSessionException
Restart the server.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

isPrintingRMI

public boolean isPrintingRMI()
                      throws java.rmi.RemoteException,
                             KosiAccessException,
                             InvalidSessionException
Return if RMI calls are printed to standart IO.
Returns:
true if RMI calls are printed to standart IO.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

setPrintingRMI

public void setPrintingRMI(boolean printRMI)
                    throws java.rmi.RemoteException,
                           KosiAccessException,
                           InvalidSessionException
Set if RMI calls should be printed to standart IO.
Parameters:
printRMI - true if RMI calls should be printed to standart IO.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

getThreadPoolThreads

public int getThreadPoolThreads()
                         throws java.rmi.RemoteException,
                                KosiAccessException,
                                InvalidSessionException
Return the number of threads in the thread pool
Returns:
number of threads in the threadpool.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

setThreadPoolThreads

public void setThreadPoolThreads(int threads)
                          throws java.rmi.RemoteException,
                                 KosiAccessException,
                                 InvalidSessionException
Set the number of threads in the thread pool.
Parameters:
threads - Number of threads in the threadpool. This has to be a value > 0.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

getMaxUsers

public int getMaxUsers()
                throws java.rmi.RemoteException,
                       KosiAccessException,
                       InvalidSessionException
Return the maximum number of users allowed to be concurrently logged into the server.
Returns:
Number of users allowed in the server.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

setMaxUsers

public void setMaxUsers(int maxUsers)
                 throws java.rmi.RemoteException,
                        KosiAccessException,
                        InvalidSessionException
Set the maximum number of users allowed to be concurrently logged into the server.
Parameters:
maxUsers - Maximum users. This value has to be >= 0.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

getMaxTables

public int getMaxTables()
                 throws java.rmi.RemoteException,
                        KosiAccessException,
                        InvalidSessionException
Get the maximum number of tables allowed to concurrently exist in the server.
Returns:
Maximum number of tables.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

setMaxTables

public void setMaxTables(int maxTables)
                  throws java.rmi.RemoteException,
                         KosiAccessException,
                         InvalidSessionException
Set the maximum number of tables allowed to concurrently exist in the server.
Parameters:
maxTables - Maximum number of tables. This has to be >= 0.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

getMaxTournaments

public int getMaxTournaments()
                      throws java.rmi.RemoteException,
                             KosiAccessException,
                             InvalidSessionException
Get the maximum number of tournaments allowed to concurrently exist in the server.
Returns:
Maximum number of tournaments.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.

setMaxTournaments

public void setMaxTournaments(int maxTournaments)
                       throws java.rmi.RemoteException,
                              KosiAccessException,
                              InvalidSessionException
Set the maximum number of tournaments allowed to concurrently exist in the server.
Parameters:
maxTournaments - Maximum number of tournaments.
Throws:
java.rmi.RemoteException - If the RemoteCall fails.
KosiAccessException - If called by an user, that has no administrative rights.
InvalidSessionException - If called from an invalid session context.