Package org.dspace.app.util
Class AbstractDSpaceWebapp
java.lang.Object
org.dspace.app.util.AbstractDSpaceWebapp
- All Implemented Interfaces:
DSpaceWebappMXBean
Represent a DSpace application while it is running. This helps us report
which applications *are* running, by exposing a record that can be viewed
externally.
- Author:
- mwood
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Instantprotected Stringprotected WebAppprotected final WebAppService -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrevent null instantiation.AbstractDSpaceWebapp(String kind) Construct a particular kind of DSpace application. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.app.util.DSpaceWebappMXBean
isUI
-
Field Details
-
webAppService
-
kind
-
started
-
url
-
webApp
-
-
Constructor Details
-
AbstractDSpaceWebapp
protected AbstractDSpaceWebapp()Prevent null instantiation. -
AbstractDSpaceWebapp
Construct a particular kind of DSpace application.- Parameters:
kind- what kind of application is this?
-
-
Method Details
-
register
public void register()Record that this application is running. -
deregister
public void deregister()Record that this application is not running. -
getKind
Description copied from interface:DSpaceWebappMXBeanWhat kind of webapp? Server, etc.- Specified by:
getKindin interfaceDSpaceWebappMXBean- Returns:
- kind of webapp
-
getURL
Description copied from interface:DSpaceWebappMXBeanWhat is the base URL of this application?- Specified by:
getURLin interfaceDSpaceWebappMXBean- Returns:
- base url
-
getStarted
Description copied from interface:DSpaceWebappMXBeanWhen did this application start?- Specified by:
getStartedin interfaceDSpaceWebappMXBean- Returns:
- start time
-