| Package | Description |
|---|---|
| org.opencastproject.job.api | |
| org.opencastproject.rest | |
| org.opencastproject.serviceregistry.api |
Service implementation classes
|
| org.opencastproject.util |
Utility classes for dealing with media packages, collections, URLs, files, and streams.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractJobProducer.acceptJob(Job job)
Asks the job producer to handle the given job using the provided operation and list of arguments.
|
void |
JobProducer.acceptJob(Job job)
Asks the job producer to handle the given job using the provided operation and list of arguments.
|
long |
AbstractJobProducer.countJobs(Job.Status status)
Get the number of jobs in a current status on all nodes.
|
long |
JobProducer.countJobs(Job.Status status)
Get the number of jobs in a current status on all nodes.
|
boolean |
AbstractJobProducer.isReadyToAccept(Job job)
Whether the job can be accepted.
|
boolean |
JobProducer.isReadyToAccept(Job job)
Whether the job can be accepted.
|
boolean |
AbstractJobProducer.isReadyToAcceptJobs(String operation)
Whether new jobs can be accepted in general.
|
boolean |
JobProducer.isReadyToAcceptJobs(String operation)
Whether new jobs can be accepted in general.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
AbstractJobProducerEndpoint.dispatchJob(long jobId,
String jobOperation) |
| Modifier and Type | Method and Description |
|---|---|
long |
ServiceRegistry.count(String serviceType,
Job.Status status)
Count the number of jobs that match the specified parameters.
|
long |
ServiceRegistryInMemoryImpl.count(String serviceType,
Job.Status status)
Count the number of jobs that match the specified parameters.
|
long |
ServiceRegistry.count(String serviceType,
String host,
String operation,
Job.Status status)
Count the number of jobs executing the given operation in this
Job.Status on this host. |
long |
ServiceRegistryInMemoryImpl.count(String serviceType,
String host,
String operation,
Job.Status status)
Count the number of jobs executing the given operation in this
Job.Status on this host. |
long |
ServiceRegistry.countByHost(String serviceType,
String host,
Job.Status status)
Count the number of jobs in this
Job.Status on this host |
long |
ServiceRegistryInMemoryImpl.countByHost(String serviceType,
String host,
Job.Status status)
Count the number of jobs in this
Job.Status on this host |
long |
ServiceRegistry.countByOperation(String serviceType,
String operation,
Job.Status status)
Count the number of jobs running the given operation in this
Job.Status. |
long |
ServiceRegistryInMemoryImpl.countByOperation(String serviceType,
String operation,
Job.Status status)
Count the number of jobs running the given operation in this
Job.Status. |
long |
ServiceRegistry.countOfAbnormalServices()
Gets the count of the number of abnormal services across the whole system.
|
long |
ServiceRegistryInMemoryImpl.countOfAbnormalServices()
Gets the count of the number of abnormal services across the whole system.
|
Job |
ServiceRegistry.createJob(String type,
String operation)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
Float jobLoad)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
Float jobLoad)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
List<String> arguments)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
List<String> arguments)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
List<String> arguments,
Float jobLoad)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
List<String> arguments,
Float jobLoad)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
List<String> arguments,
String payload)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
List<String> arguments,
String payload)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
List<String> arguments,
String payload,
boolean queueable)
Create and store a new job.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
List<String> arguments,
String payload,
boolean queueable)
Create and store a new job.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
List<String> arguments,
String payload,
boolean queueable,
Float jobLoad)
Create and store a new job.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
List<String> arguments,
String payload,
boolean queueable,
Float jobLoad)
Create and store a new job.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
List<String> arguments,
String payload,
boolean queueable,
Job parentJob)
Create and store a new job.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
List<String> arguments,
String payload,
boolean queueable,
Job parentJob)
Create and store a new job.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
List<String> arguments,
String payload,
boolean queueable,
Job parentJob,
Float jobLoad)
Create and store a new job.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
List<String> arguments,
String payload,
boolean queueable,
Job parentJob,
Float jobLoad)
Create and store a new job.
|
Job |
ServiceRegistry.createJob(String type,
String operation,
List<String> arguments,
String payload,
Float jobLoad)
Create and store a new job that will be dispatched as soon as possible.
|
Job |
ServiceRegistryInMemoryImpl.createJob(String type,
String operation,
List<String> arguments,
String payload,
Float jobLoad)
Create and store a new job that will be dispatched as soon as possible.
|
void |
ServiceRegistry.disableHost(String host)
Disables a Opencast server from service.
|
void |
ServiceRegistryInMemoryImpl.disableHost(String host)
Disables a Opencast server from service.
|
protected boolean |
ServiceRegistryInMemoryImpl.dispatchJob(Job job)
Dispatches the job to the least loaded service or throws a
ServiceUnavailableException if there is no
such service. |
void |
ServiceRegistry.enableHost(String host)
Enable an inactive host as a provider of Opencast services.
|
void |
ServiceRegistryInMemoryImpl.enableHost(String host)
Enable an inactive host as a provider of Opencast services.
|
List<Job> |
ServiceRegistry.getActiveJobs()
Get the list of active jobs.
|
List<Job> |
ServiceRegistryInMemoryImpl.getActiveJobs()
Get the list of active jobs.
|
List<Job> |
ServiceRegistry.getChildJobs(long id)
Get all child jobs from a job
|
List<Job> |
ServiceRegistryInMemoryImpl.getChildJobs(long id)
Get all child jobs from a job
|
SystemLoad |
ServiceRegistry.getCurrentHostLoads()
Gets a map of hosts to the number of jobs currently loading that host
|
HostRegistration |
ServiceRegistry.getHostRegistration(String hostname)
Finds host registration for the given hostname.
|
HostRegistration |
ServiceRegistryInMemoryImpl.getHostRegistration(String hostname) |
List<HostRegistration> |
ServiceRegistry.getHostRegistrations()
Finds all host registrations, including offline hosts and those in maintenance mode.
|
List<HostRegistration> |
ServiceRegistryInMemoryImpl.getHostRegistrations() |
Job |
ServiceRegistry.getJob(long id)
Gets a receipt by its ID, or null if not found
|
Job |
ServiceRegistryInMemoryImpl.getJob(long id)
Gets a receipt by its ID, or null if not found
|
int |
ServiceRegistry.getJobCount(String operation)
Return the number of jobs for a specified operation type.
|
int |
ServiceRegistryInMemoryImpl.getJobCount(String operation) |
List<String> |
ServiceRegistry.getJobPayloads(String operation)
Return the payload of all jobs for a specified operation type.
|
List<String> |
ServiceRegistryInMemoryImpl.getJobPayloads(String operation) |
List<String> |
ServiceRegistry.getJobPayloads(String operation,
int limit,
int offset)
Return the payload of a specified number of jobs for a specified operation type.
|
List<String> |
ServiceRegistryInMemoryImpl.getJobPayloads(String operation,
int limit,
int offset) |
List<Job> |
ServiceRegistry.getJobs(String serviceType,
Job.Status status)
Gets the list of jobs that match the specified parameters.
|
List<Job> |
ServiceRegistryInMemoryImpl.getJobs(String serviceType,
Job.Status status)
Gets the list of jobs that match the specified parameters.
|
SystemLoad.NodeLoad |
ServiceRegistry.getMaxLoadOnNode(String host)
Returns the maximum load that can be handled by a given node.
|
SystemLoad.NodeLoad |
ServiceRegistryInMemoryImpl.getMaxLoadOnNode(String host)
Returns the maximum load that can be handled by a given node.
|
SystemLoad |
ServiceRegistry.getMaxLoads()
Returns the maximum load that can be handled by the currently registered hosts.
|
SystemLoad |
ServiceRegistryInMemoryImpl.getMaxLoads()
Returns the maximum load that can be handled by the currently registered hosts.
|
float |
ServiceRegistry.getOwnLoad()
Gets the load value for the current host (ie, the host this service registry lives on
|
ServiceRegistration |
ServiceRegistry.getServiceRegistration(String serviceType,
String host)
Finds a single service registration by host and type, even if the service is offline or in maintenance mode.
|
ServiceRegistration |
ServiceRegistryInMemoryImpl.getServiceRegistration(String serviceType,
String host)
Finds a single service registration by host and type, even if the service is offline or in maintenance mode.
|
List<ServiceRegistration> |
ServiceRegistry.getServiceRegistrations()
Finds all service registrations, including offline services and those in maintenance mode.
|
List<ServiceRegistration> |
ServiceRegistryInMemoryImpl.getServiceRegistrations()
Finds all service registrations, including offline services and those in maintenance mode.
|
List<ServiceRegistration> |
ServiceRegistry.getServiceRegistrationsByHost(String host)
Finds the service registrations on the given host, including offline services and those in maintenance mode.
|
List<ServiceRegistration> |
ServiceRegistryInMemoryImpl.getServiceRegistrationsByHost(String host)
Finds the service registrations on the given host, including offline services and those in maintenance mode.
|
List<ServiceRegistration> |
ServiceRegistry.getServiceRegistrationsByLoad(String serviceType)
Finds the service registrations for this kind of job, ordered by load (lightest to heaviest).
|
List<ServiceRegistration> |
ServiceRegistryInMemoryImpl.getServiceRegistrationsByLoad(String serviceType)
Finds the service registrations for this kind of job, ordered by load (lightest to heaviest).
|
List<ServiceRegistration> |
ServiceRegistry.getServiceRegistrationsByType(String serviceType)
Finds the service registrations for this kind of job, including offline services and those in maintenance mode.
|
List<ServiceRegistration> |
ServiceRegistryInMemoryImpl.getServiceRegistrationsByType(String serviceType)
Finds the service registrations for this kind of job, including offline services and those in maintenance mode.
|
List<ServiceStatistics> |
ServiceRegistry.getServiceStatistics()
Gets performance and runtime statistics for each known service registration.
|
List<ServiceStatistics> |
ServiceRegistryInMemoryImpl.getServiceStatistics()
Gets performance and runtime statistics for each known service registration.
|
void |
ServiceRegistry.registerHost(String host,
String address,
String nodeName,
long memory,
int cores,
float maxLoad)
Registers a host as a provider of Opencast services.
|
void |
ServiceRegistryInMemoryImpl.registerHost(String host,
String address,
String nodeName,
long memory,
int cores,
float maxLoad)
Registers a host as a provider of Opencast services.
|
ServiceRegistration |
ServiceRegistryInMemoryImpl.registerService(JobProducer localService)
Method to register locally running services.
|
ServiceRegistration |
ServiceRegistryInMemoryImpl.registerService(JobProducer localService,
float maxLoad)
Method to register locally running services.
|
ServiceRegistration |
ServiceRegistry.registerService(String serviceType,
String host,
String path)
Registers a host to handle a specific type of job
|
ServiceRegistration |
ServiceRegistryInMemoryImpl.registerService(String serviceType,
String host,
String path)
Registers a host to handle a specific type of job
|
ServiceRegistration |
ServiceRegistry.registerService(String serviceType,
String host,
String path,
boolean jobProducer)
Registers a host to handle a specific type of job
|
ServiceRegistration |
ServiceRegistryInMemoryImpl.registerService(String serviceType,
String host,
String path,
boolean jobProducer)
Registers a host to handle a specific type of job
|
void |
ServiceRegistry.removeJobs(List<Long> ids)
Deletes the given jobs from the service registry
|
void |
ServiceRegistryInMemoryImpl.removeJobs(List<Long> ids) |
void |
ServiceRegistry.removeParentlessJobs(int lifetime)
Removes all jobs which do not have a parent job (except workflow instance jobs) and which have passed their
lifetime.
|
void |
ServiceRegistryInMemoryImpl.removeParentlessJobs(int lifetime) |
void |
ServiceRegistry.setMaintenanceStatus(String host,
boolean maintenance)
Sets a registered host's maintenance status
|
void |
ServiceRegistry.unregisterHost(String host)
Removes an Opencast server from service.
|
void |
ServiceRegistryInMemoryImpl.unregisterHost(String host)
Removes an Opencast server from service.
|
void |
ServiceRegistryInMemoryImpl.unregisterService(JobProducer localService)
Removes the job producer from the service registry.
|
void |
ServiceRegistry.unRegisterService(String serviceType,
String host)
Unregisters a host from handling a specific type of job
|
void |
ServiceRegistryInMemoryImpl.unRegisterService(String serviceType,
String host)
Unregisters a host from handling a specific type of job
|
Job |
ServiceRegistry.updateJob(Job job)
Update the job in the database
|
Job |
ServiceRegistryInMemoryImpl.updateJob(Job job)
Update the job in the database
|
| Constructor and Description |
|---|
ServiceRegistryInMemoryImpl(JobProducer service,
float maxLoad,
SecurityService securityService,
UserDirectoryService userDirectoryService,
OrganizationDirectoryService organizationDirectoryService,
IncidentService incidentService) |
ServiceRegistryInMemoryImpl(JobProducer service,
SecurityService securityService,
UserDirectoryService userDirectoryService,
OrganizationDirectoryService organizationDirectoryService,
IncidentService incidentService) |
| Modifier and Type | Method and Description |
|---|---|
static com.entwinemedia.fn.data.Opt<String> |
JobUtil.getPayload(ServiceRegistry reg,
Job job)
Update the job from the service registry and get its payload.
|
static com.entwinemedia.fn.data.Opt<Job> |
JobUtil.update(ServiceRegistry reg,
Job job)
Get the latest state of a job.
|
Copyright © 2009–2021 Opencast Project. All rights reserved.