Package org.dspace.app.util
Class AbstractDSpaceWebapp
- java.lang.Object
-
- org.dspace.app.util.AbstractDSpaceWebapp
-
- All Implemented Interfaces:
DSpaceWebappMXBean
public abstract class AbstractDSpaceWebapp extends Object implements 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
Fields Modifier and Type Field Description protected Stringkindprotected Datestartedprotected Stringurlprotected WebAppwebAppprotected WebAppServicewebAppService
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDSpaceWebapp()Prevent null instantiation.AbstractDSpaceWebapp(String kind)Construct a particular kind of DSpace application.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidderegister()Record that this application is not running.StringgetKind()What kind of webapp? XMLUI, OAI, etc.StringgetStarted()When did this application start?StringgetURL()What is the base URL of this application?voidregister()Record that this application is running.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.util.DSpaceWebappMXBean
isUI
-
-
-
-
Field Detail
-
webAppService
protected final WebAppService webAppService
-
kind
protected String kind
-
started
protected Date started
-
url
protected String url
-
webApp
protected WebApp webApp
-
-
Constructor Detail
-
AbstractDSpaceWebapp
protected AbstractDSpaceWebapp()
Prevent null instantiation.
-
AbstractDSpaceWebapp
public AbstractDSpaceWebapp(String kind)
Construct a particular kind of DSpace application.- Parameters:
kind- what kind of application is this?
-
-
Method Detail
-
register
public void register()
Record that this application is running.
-
deregister
public void deregister()
Record that this application is not running.
-
getKind
public String getKind()
Description copied from interface:DSpaceWebappMXBeanWhat kind of webapp? XMLUI, OAI, etc.- Specified by:
getKindin interfaceDSpaceWebappMXBean- Returns:
- kind of webapp
-
getURL
public String getURL()
Description copied from interface:DSpaceWebappMXBeanWhat is the base URL of this application?- Specified by:
getURLin interfaceDSpaceWebappMXBean- Returns:
- base url
-
getStarted
public String getStarted()
Description copied from interface:DSpaceWebappMXBeanWhen did this application start?- Specified by:
getStartedin interfaceDSpaceWebappMXBean- Returns:
- start time
-
-