com.atlassian.crowd.license
Class LicenseResourceJob

java.lang.Object
  extended by org.springframework.scheduling.quartz.QuartzJobBean
      extended by com.atlassian.crowd.license.LicenseResourceJob
All Implemented Interfaces:
org.quartz.Job, org.quartz.StatefulJob

public class LicenseResourceJob
extends org.springframework.scheduling.quartz.QuartzJobBean
implements org.quartz.StatefulJob

System event that runs calculating the total number of resources are being consumed verses the license resource limit. If the system is nearing 90% usage, an email is sent to the administrator.


Constructor Summary
LicenseResourceJob()
           
 
Method Summary
protected  void executeInternal(org.quartz.JobExecutionContext jobExecutionContext)
          Runs the job of notifying the administrator if the current license resource limit is above 90%.
 void setCrowdLicenseManager(CrowdLicenseManager crowdLicenseManager)
          Sets the license manager which is used to get and set the license information.
 void setEventManager(com.atlassian.event.EventManager eventManager)
          Sets the event manager which is used to trigger server events.
 void setPropertyManager(PropertyManager propertyManager)
          Sets the property manager which is used to get the server license.
 
Methods inherited from class org.springframework.scheduling.quartz.QuartzJobBean
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.quartz.Job
execute
 

Constructor Detail

LicenseResourceJob

public LicenseResourceJob()
Method Detail

executeInternal

protected void executeInternal(org.quartz.JobExecutionContext jobExecutionContext)
                        throws org.quartz.JobExecutionException
Runs the job of notifying the administrator if the current license resource limit is above 90%.

Specified by:
executeInternal in class org.springframework.scheduling.quartz.QuartzJobBean
Parameters:
jobExecutionContext - Information about the current event request.
Throws:
org.quartz.JobExecutionException - A problem occured running the event.

setPropertyManager

public void setPropertyManager(PropertyManager propertyManager)
Sets the property manager which is used to get the server license. This method is set by Spring.

Parameters:
propertyManager - Property manager implementation.

setCrowdLicenseManager

public void setCrowdLicenseManager(CrowdLicenseManager crowdLicenseManager)
Sets the license manager which is used to get and set the license information. This method is set by Spring.

Parameters:
crowdLicenseManager - License manager implementation.

setEventManager

public void setEventManager(com.atlassian.event.EventManager eventManager)
Sets the event manager which is used to trigger server events. This method is set by Spring.

Parameters:
eventManager - Event manager implementation.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.