com.supermap.server.config

Class ComponentSetting

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


    public class ComponentSetting
    extends AbstractServiceSetting
    implements java.io.Serializable
    

    the configuration information of the service component.

    The service component is composed of the configuration information of the service component and lists of the service provider.

    See Also:
    ComponentContext
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.lang.String disabledInterfaceNames
      The service interface name list whose service instants are stopped.
      boolean enabled
      Whether the service component is usable.
      int instanceCount
      The expected number of instance under multiple threads.
      java.lang.String interfaceNames
      The service interface name list whose services are published by service component.
      java.lang.String providers
      The name of service providers.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      ComponentSetting copy()
      Copies.
      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

      • providers

        public java.lang.String providers
        

        The name of service providers.

        A string separated by a comma. Can be Provider or Provider name. It can also be multiple Providers or multiple ProviderSets. Such as "“provider1,providerSet1".

      • enabled

        public boolean enabled
        

        Whether the service component is usable. The default is true, indicating usable.

      • interfaceNames

        public java.lang.String interfaceNames
        

        The service interface name list whose services are published by service component. The interface name is separated by comma.

      • disabledInterfaceNames

        public java.lang.String disabledInterfaceNames
        

        The service interface name list whose service instants are stopped. The interface name is separated by comma.

      • instanceCount

        public int instanceCount
        

        The expected number of instance under multiple threads.

    • Constructor Detail

      • ComponentSetting

        public ComponentSetting()
        
    • Method Detail

      • copy

        public final ComponentSetting copy()
        

        Copies. Generates a new ComponentSetting object exactly the same as the original one.

        Returns:
        the configuration object of the service component.
      • 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