Interface IServicePoolService


  • public interface IServicePoolService
    Service pool service that allows for adding and removing service types and handling strategies to the pool.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      jadex.commons.future.IFuture<java.lang.Void> addServiceType​(java.lang.Class<?> servicetype, jadex.commons.IPoolStrategy strategy, java.lang.String componentmodel)
      Add a new service type and a strategy.
      jadex.commons.future.IFuture<java.lang.Void> addServiceType​(java.lang.Class<?> servicetype, jadex.commons.IPoolStrategy strategy, java.lang.String componentmodel, CreationInfo info, PublishInfo pi, ServiceScope scope)
      Add a new service type and a strategy.
      jadex.commons.future.IFuture<java.lang.Void> addServiceType​(java.lang.Class<?> servicetype, java.lang.String componentmodel)
      Add a new service type.
      jadex.commons.future.IFuture<java.lang.Void> addServiceType​(java.lang.Class<?> servicetype, java.lang.String componentmodel, CreationInfo info)
      Add a new service type and a strategy.
      jadex.commons.future.IFuture<java.lang.Integer> getFreeCapacity​(java.lang.Class<?> servicetype)
      Get the free capacity.
      jadex.commons.future.IFuture<java.lang.Integer> getMaxCapacity​(java.lang.Class<?> servicetype)
      Get the maximum capacity.
      jadex.commons.future.IFuture<java.lang.Void> removeServiceType​(java.lang.Class<?> servicetype)
      Remove a service type.
    • Method Detail

      • addServiceType

        jadex.commons.future.IFuture<java.lang.Void> addServiceType​(java.lang.Class<?> servicetype,
                                                                    java.lang.String componentmodel)
        Add a new service type.
        Parameters:
        servicetype - The service type.
        componentmodel - The component model.
      • addServiceType

        jadex.commons.future.IFuture<java.lang.Void> addServiceType​(java.lang.Class<?> servicetype,
                                                                    java.lang.String componentmodel,
                                                                    CreationInfo info)
        Add a new service type and a strategy.
        Parameters:
        servicetype - The service type.
        componentmodel - The component model.
        info - The creation info.
      • addServiceType

        jadex.commons.future.IFuture<java.lang.Void> addServiceType​(java.lang.Class<?> servicetype,
                                                                    jadex.commons.IPoolStrategy strategy,
                                                                    java.lang.String componentmodel)
        Add a new service type and a strategy.
        Parameters:
        servicetype - The service type.
        strategy - The service pool strategy.
        componentmodel - The component model.
      • addServiceType

        jadex.commons.future.IFuture<java.lang.Void> addServiceType​(java.lang.Class<?> servicetype,
                                                                    jadex.commons.IPoolStrategy strategy,
                                                                    java.lang.String componentmodel,
                                                                    CreationInfo info,
                                                                    PublishInfo pi,
                                                                    ServiceScope scope)
        Add a new service type and a strategy.
        Parameters:
        servicetype - The service type.
        strategy - The service pool strategy.
        componentmodel - The component model.
        info - The worker creation info.
        pi - The worker publish info.
        scope - The service publication scope.
      • removeServiceType

        jadex.commons.future.IFuture<java.lang.Void> removeServiceType​(java.lang.Class<?> servicetype)
        Remove a service type.
        Parameters:
        servicetype - The service type.
      • getMaxCapacity

        jadex.commons.future.IFuture<java.lang.Integer> getMaxCapacity​(java.lang.Class<?> servicetype)
        Get the maximum capacity.
        Parameters:
        servicetype - The service type.
        Returns:
        The maximum capacity.
      • getFreeCapacity

        jadex.commons.future.IFuture<java.lang.Integer> getFreeCapacity​(java.lang.Class<?> servicetype)
        Get the free capacity.
        Parameters:
        servicetype - The service type.
        Returns:
        The free capacity.