|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfedora.server.Parameterized
fedora.server.Pluggable
fedora.server.Server
fedora.server.BasicServer
Title: BasicServer.java
Description:
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Field Summary |
| Constructor Summary | |
BasicServer(org.w3c.dom.Element rootElement,
java.io.File fedoraHomeDir)
|
|
| Method Summary | |
java.lang.String[] |
getRequiredModuleRoles()
Gets the names of the roles that are required to be fulfilled by modules specified in this server's configuration file. |
void |
initServer()
Performs any server start-up tasks particular to this type of Server. |
static void |
main(java.lang.String[] args)
|
void |
shutdownServer()
Performs shutdown tasks for the server itself. |
| Methods inherited from class fedora.server.Server |
closeLogger, datastoreConfigIds, finalize, flushLogger, getConfigSummary, getDatastoreConfig, getHomeDir, getInstance, getInstance, getLocale, getModule, getPID, hasInitialized, hasInstance, loadedModuleRoles, logConfig, logFine, logFiner, logFinest, loggingConfig, loggingFine, loggingFiner, loggingFinest, loggingInfo, loggingSevere, loggingWarning, logInfo, logSevere, logWarning, pidFromFilename, postInitServer, setLogger, shutdown |
| Methods inherited from class fedora.server.Pluggable |
getHelp, getOptionalParameters, getParameterHelp, getRequiredParameters |
| Methods inherited from class fedora.server.Parameterized |
getParameter, getParameters, parameterNames, setParameter, setParameters |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicServer(org.w3c.dom.Element rootElement,
java.io.File fedoraHomeDir)
throws ServerInitializationException,
ModuleInitializationException
| Method Detail |
public void initServer()
throws ServerInitializationException
Server
initServer in class ServerServerInitializationException - If a severe server startup-related
error occurred.
public void shutdownServer()
throws ServerShutdownException
ServerServer implementations that tie up
additional system resources.
This should be written so that system resources are always freed,
regardless of whether there is an error. If an error occurs,
it should be thrown as a ServerShutdownException after
attempts to free every resource have been made.
shutdownServer in class ServerServerShutdownException - If a severe server shutdown-related error
occurred.public java.lang.String[] getRequiredModuleRoles()
getRequiredModuleRoles in class Pluggable
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||