Class TimedMediaArchiver
java.lang.Object
org.opencastproject.kernel.scanner.AbstractScanner
org.opencastproject.assetmanager.impl.TimedMediaArchiver
- All Implemented Interfaces:
org.osgi.service.cm.ManagedService
public class TimedMediaArchiver
extends AbstractScanner
implements org.osgi.service.cm.ManagedService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classQuartz job to which offloads old mediapackages from the asset manager to remote storageNested classes/interfaces inherited from class org.opencastproject.kernel.scanner.AbstractScanner
AbstractScanner.TypedQuartzJob<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.opencastproject.kernel.scanner.AbstractScanner
JOB_PARAM_PARENT, PARAM_KEY_CRON_EXPR, PARAM_KEY_ENABLED, quartz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi component activate callbackvoidbindOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) OSGi callback to set organization directory servicevoidbindSecurityService(SecurityService securityService) OSGi callback to set security servicevoidbindServiceRegistry(ServiceRegistry serviceRegistry) voidOSGi deactivate component callback.The name of the job group to schedule this quartz job under.The name of the jobThe name of the scanner to use in log files.The name of the group to store the quartz triggers under.The name of the triggers to use for the quartz jobs.voidscan()voidvoidupdated(Dictionary<String, ?> properties) Methods inherited from class org.opencastproject.kernel.scanner.AbstractScanner
finalize, getAdminContextFor, getCronExpression, getOrganizationDirectoryService, getQuartz, getServiceRegistry, getSystemUserName, isEnabled, schedule, setCronExpression, setEnabled, setQuartz, shutdown, trigger, unschedule
-
Field Details
-
PARAM_KEY_STORE_ID
- See Also:
-
PARAM_KEY_MAX_AGE
- See Also:
-
JOB_GROUP
- See Also:
-
JOB_NAME
- See Also:
-
SCANNER_NAME
- See Also:
-
TRIGGER_GROUP
- See Also:
-
TRIGGER_NAME
- See Also:
-
-
Constructor Details
-
TimedMediaArchiver
public TimedMediaArchiver()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) Description copied from class:AbstractScannerOSGi component activate callback- Overrides:
activatein classAbstractScanner
-
deactivate
public void deactivate()Description copied from class:AbstractScannerOSGi deactivate component callback.- Overrides:
deactivatein classAbstractScanner
-
updated
public void updated(Dictionary<String, ?> properties) throws org.osgi.service.cm.ConfigurationException- Specified by:
updatedin interfaceorg.osgi.service.cm.ManagedService- Throws:
org.osgi.service.cm.ConfigurationException
-
getJobGroup
Description copied from class:AbstractScannerThe name of the job group to schedule this quartz job under.- Specified by:
getJobGroupin classAbstractScanner
-
getJobName
Description copied from class:AbstractScannerThe name of the job- Specified by:
getJobNamein classAbstractScanner
-
getTriggerGroupName
Description copied from class:AbstractScannerThe name of the group to store the quartz triggers under.- Specified by:
getTriggerGroupNamein classAbstractScanner
-
getTriggerName
Description copied from class:AbstractScannerThe name of the triggers to use for the quartz jobs.- Specified by:
getTriggerNamein classAbstractScanner
-
scan
public void scan()- Specified by:
scanin classAbstractScanner
-
getScannerName
Description copied from class:AbstractScannerThe name of the scanner to use in log files.- Specified by:
getScannerNamein classAbstractScanner
-
setAssetManager
-
bindOrganizationDirectoryService
public void bindOrganizationDirectoryService(OrganizationDirectoryService organizationDirectoryService) Description copied from class:AbstractScannerOSGi callback to set organization directory service- Overrides:
bindOrganizationDirectoryServicein classAbstractScanner
-
bindSecurityService
Description copied from class:AbstractScannerOSGi callback to set security service- Overrides:
bindSecurityServicein classAbstractScanner
-
bindServiceRegistry
- Overrides:
bindServiceRegistryin classAbstractScanner
-