|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.service.UnloadableJiraServiceContainer
public class UnloadableJiraServiceContainer
Used to represent a ServiceContainer that could not be properly loaded. This is used to represent database values that are left behind from old services that are no longer deployed. We need this so that the users can remove this service if need be.
Field Summary |
---|
Fields inherited from interface com.atlassian.jira.service.JiraService |
---|
NAME_COMPARATOR |
Constructor Summary | |
---|---|
UnloadableJiraServiceContainer(Long id,
String name,
String clazz,
long delay)
|
Method Summary | |
---|---|
void |
destroy()
This method is called when the service is unloaded (usually when the web application or server is being shut down). |
String |
getDefaultProperty(String propertyKey)
|
long |
getDelay()
|
String |
getDescription()
A textual description of the service. |
Long |
getId()
|
String |
getKey()
|
long |
getLastRun()
|
Long |
getLongProperty(String propertyKey)
|
String |
getName()
A textual name of the service as entered by the user from the web interface. |
com.atlassian.configurable.ObjectConfiguration |
getObjectConfiguration()
|
com.opensymphony.module.propertyset.PropertySet |
getProperties()
|
String |
getProperty(String propertyKey)
|
String |
getServiceClass()
|
String |
getTextProperty(String propertyKey)
|
boolean |
hasProperty(String propertyKey)
|
void |
init(com.opensymphony.module.propertyset.PropertySet props)
Initialise the service. |
boolean |
isInternal()
Indicates whether administrators can delete this service from within the web interface. |
boolean |
isRunning()
|
boolean |
isUnique()
Whether this service class should be unique. |
boolean |
isUsable()
|
void |
run()
Perform the action of this service. |
void |
setDelay(long delay)
|
void |
setLastRun()
|
void |
setName(String name)
Used to set the service's name. |
void |
setRunning(boolean running)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnloadableJiraServiceContainer(Long id, String name, String clazz, long delay)
Method Detail |
---|
public String getName()
JiraService
getName
in interface JiraService
public void setName(String name)
JiraService
JiraService.getName()
setName
in interface JiraService
name
- service name to setpublic long getDelay()
getDelay
in interface JiraServiceContainer
public void setDelay(long delay)
setDelay
in interface JiraServiceContainer
public String getServiceClass()
getServiceClass
in interface JiraServiceContainer
public boolean isUsable()
isUsable
in interface JiraServiceContainer
public Long getId()
getId
in interface JiraServiceContainer
public long getLastRun()
getLastRun
in interface JiraServiceContainer
public void setLastRun()
setLastRun
in interface JiraServiceContainer
public boolean isRunning()
isRunning
in interface JiraServiceContainer
public void setRunning(boolean running)
setRunning
in interface JiraServiceContainer
public void init(com.opensymphony.module.propertyset.PropertySet props) throws com.atlassian.configurable.ObjectConfigurationException
JiraService
init
in interface JiraService
props
- initialisation parameters
com.atlassian.configurable.ObjectConfigurationException
- in case of an error with initialisation parameterspublic void run()
JiraService
run
in interface JiraService
JiraService.init(com.opensymphony.module.propertyset.PropertySet)
public void destroy()
JiraService
destroy
in interface JiraService
public boolean isInternal()
JiraService
isInternal
in interface JiraService
public boolean isUnique()
JiraService
isUnique
in interface JiraService
public String getDescription()
JiraService
getDescription
in interface JiraService
public com.atlassian.configurable.ObjectConfiguration getObjectConfiguration() throws com.atlassian.configurable.ObjectConfigurationException
getObjectConfiguration
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public boolean hasProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
hasProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public String getProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
getProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public String getTextProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
getTextProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public Long getLongProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
getLongProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public String getDefaultProperty(String propertyKey) throws com.atlassian.configurable.ObjectConfigurationException
getDefaultProperty
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public com.opensymphony.module.propertyset.PropertySet getProperties() throws com.atlassian.configurable.ObjectConfigurationException
getProperties
in interface com.atlassian.configurable.ObjectConfigurable
com.atlassian.configurable.ObjectConfigurationException
public String getKey()
getKey
in interface com.atlassian.configurable.ObjectConfigurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |