com.supermap.server.config

Class ProviderSetting

  • java.lang.Object
    • AbstractServiceSetting
      • com.supermap.server.config.ProviderSetting
  • All Implemented Interfaces:
    java.io.Serializable


    public class ProviderSetting
    extends AbstractServiceSetting
    implements java.io.Serializable
    

    the configuration information of the service provider.

    The service provider context is constructed by service provider configuration information and the dependent service provider list.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      boolean enabled
      Whether the service providers are available.
      java.lang.String[] innerProviders
      The dependent service provider name list.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      ProviderSetting copy()
      Copies replica.
      boolean equals(java.lang.Object obj) 
      int hashCode()
      Gets the hash value of the object instance
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • innerProviders

        public java.lang.String[] innerProviders
        

        The dependent service provider name list.

        For example, the aggregation service provider, cluster service provider depends on a series of service providers.

      • enabled

        public boolean enabled
        

        Whether the service providers are available. The default is true, it means available.

    • Constructor Detail

      • ProviderSetting

        public ProviderSetting()
        
      • ProviderSetting

        public ProviderSetting(java.lang.String name)
        
      • ProviderSetting

        public ProviderSetting(java.lang.String name,
                       java.lang.String type)
        
      • ProviderSetting

        public ProviderSetting(java.lang.String name,
                       java.lang.String type,
                       java.lang.Object config)
        
    • Method Detail

      • copy

        public final ProviderSetting copy()
        

        Copies replica. It means to generate one new same ProviderSetting object with the current one.

        Returns:
        Service provider configuration object.
      • equals

        public final boolean equals(java.lang.Object obj)
        
      • hashCode

        public final int hashCode()
        
        Gets the hash value of the object instance
        Returns:
        hash value