Class ServiceRegistrationInMemoryImpl

java.lang.Object
org.opencastproject.serviceregistry.api.ServiceRegistrationInMemoryImpl
All Implemented Interfaces:
ServiceRegistration

public class ServiceRegistrationInMemoryImpl extends Object implements ServiceRegistration
Simple implementation of a service registration.
  • Field Details

    • serviceType

      protected String serviceType
      Service type
    • host

      protected String host
      Host that is running the service
    • path

      protected String path
      Path to the service
    • service

      protected JobProducer service
      The service instance
    • isJobProducer

      protected boolean isJobProducer
      True if this service produces jobs
    • isActive

      protected boolean isActive
      True if this service is active
    • isOnline

      protected boolean isOnline
      True if this service is online
    • isInMaintenanceMode

      protected boolean isInMaintenanceMode
      True if this service in in maintenance mode
  • Constructor Details

    • ServiceRegistrationInMemoryImpl

      public ServiceRegistrationInMemoryImpl(String type, String host, String path, boolean jobProducer)
      Creates a new service registration. The service is initially online and not in maintenance mode.
      Parameters:
      type - the service type
      host - the service host
      path - the path to the service
      jobProducer - true if the service is a job producer
    • ServiceRegistrationInMemoryImpl

      public ServiceRegistrationInMemoryImpl(JobProducer service, String host)
      Creates a new service registration. The service is initially online and not in maintenance mode.
      Parameters:
      service - the local service instance
      host - the host that the service is running on
  • Method Details