Class ServiceInstance


  • public class ServiceInstance
    extends Object
    Model containing information about a running service
    • Constructor Detail

      • ServiceInstance

        public ServiceInstance()
    • Method Detail

      • fromServiceInfo

        public static ServiceInstance fromServiceInfo​(ServiceInfo serviceInfo)
        Returns a new ServiceInstanceBuilder built from a given ServiceInfo.

        Note that a copy of ServiceInfo.getMetadata() is made using Map.copyOf(Map), so the metadata is unmodifiable.

        Parameters:
        serviceInfo - The information about the service used to initialize the ServiceInstanceBuilder
        Returns:
        a ServiceInstanceBuilder with values copied from the given ServiceInfo