com.supermap.services.components.impl

Class DefaultTileWorker

  • java.lang.Object
    • com.supermap.services.components.impl.DefaultTileWorker
    • Constructor Detail

      • DefaultTileWorker

        public DefaultTileWorker()
        

        The Constructor.

      • DefaultTileWorker

        public DefaultTileWorker(RestContext restContext)
        

        The Constructor.

        Parameters:
        restContext -
    • Method Detail

      • setDataManager

        public void setDataManager(WorkerDataManager value)
        

        Setup Manager.

        Parameters:
        value -
      • deployData

        public boolean deployData(ProviderConnInfo[] providerConnectionInfos,
                         java.lang.String masterAddress,
                         boolean readOnly,
                         java.lang.String id,
                         FileVerificationMode verificationMode)
                           throws java.io.IOException
        
        Description copied from interface: TileWorker

        Deploys the tiling data.

        Specified by:
        deployData in interface TileWorker
        Returns:
        Throws:
        java.io.IOException
      • stopDeployData

        public boolean stopDeployData(java.lang.String[] masterSideIds)
        
        Description copied from interface: TileWorker

        Notifies the TileWorker node to stop downloading data.

        Specified by:
        stopDeployData in interface TileWorker
        Returns:
      • deployJob

        public boolean deployJob(JobBuildConfig pConfig)
        

        Deploys the task, after receiving the task, after the parameter check, start the asynchronous deployment, immediately return

        Specified by:
        deployJob in interface TileWorker
        Parameters:
        pConfig -
        Returns:
      • dispose

        public void dispose()
        
        Description copied from interface: Disposable

        Release the resource object.

        Specified by:
        dispose in interface Disposable
      • setMapBuilder

        public void setMapBuilder(MapBuilder value)
        

        Sets MapBuilder.

        Parameters:
        value -
      • setRealspaceBuilder

        public void setRealspaceBuilder(RealspaceBuilder value)
        

        Sets RealspaceBuilder

        Parameters:
        value -
      • setRestContext

        public void setRestContext(RestContext value)
        

        Sets the Rest context information.

        Parameters:
        value -
      • getJobExecutingStates

        public JobExecutingStates getJobExecutingStates()
        

        Gets the tiling task status.

        Returns:
        Since:
        8.1.1
      • insureKvStoreExist

        protected void insureKvStoreExist(JobBuildConfig pJobConfig)
        
      • getKeyValueStore

        protected static KeyValueStore getKeyValueStore(TileSourceInfo storeConfig)
        
      • setMaster

        public void setMaster(TileMaster value)
        

        Setting tiling master node.

        Parameters:
        value -
        Since:
        8.1.1
      • notifyJobCompleted

        public boolean notifyJobCompleted(java.lang.String jobId)
        
        Description copied from interface: TileWorker
        Notifies the TileWorker node that the tiling task has been completed and can turn off some of the resources (eg thread, memory pool, etc.) for the application. The method is called by TileMaster
        Specified by:
        notifyJobCompleted in interface TileWorker
        Returns: