com.supermap.services.components

Interface TileMaster

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      TileJob addJob(JobInfo info)
      Creates a tiling job
      boolean addTileWorker(TileWorkerInfo conInfo)
      Adds the tiling node.
      void analystBlankTile(java.lang.String jobId)
      Notifies a named tiling job began to analysis the white chart information
      java.lang.String confirmBlanRegionInfos(java.lang.String jobId)
      Notifies the master node that the white chart information of the named tiling job has be confirmed by user.
      boolean deleteJob(java.lang.String jobID)
      Deletes the tiling job
      BlankTileInfo getBlankTileInfos(java.lang.String jobId, double scale, int fromIndex, int toIndex)
      Returns all the white chart information
      TileJob getTileJob(java.lang.String jobID)
      Returns a named tiling job information
      java.util.List<TileJob> getTileJobs()
      Returns all tiling job information
      TileWorkerState getWorkerState(java.lang.String workerId)
      Returns the state of a named tiling node
      TileWorkerState[] getWorkerStates()
      Returns the status of all tiling nodes.
      boolean notifyJobDeployCompleted(java.lang.String jobId, java.lang.String workerId)
      Notifies the tiling master node, and the tiling job is deployed successfully at the tiling node
      boolean notifyTaskCompleted(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)
      Notifies the tiling master node that the tiling task completed.
      boolean notifyTaskCompleted(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId, TileTaskBuildResult result)
      Notifies the tiling master node that a tiling task was successful.
      boolean notifyTaskFailed(java.lang.String jobId, java.lang.String taskId, java.lang.String workerId)
      Notifies the tiling master node that the tiling task failed.
      void redeployJobToWorker(java.lang.String jobId, java.lang.String workerId)
      When deploying a tiling task to a worker fails, it is used for redeployment.
      void removeTileWorker(java.lang.String workerId)
      Removes the tiling node.
      void restart(java.lang.String jobId)
      Restarts the tiling job
      void setJobInfoPREProcessor(JobInfoPREProcessor processor)
      Sets the tiling Job Preprocessor
      void setJobRunnerFactory(JobRunnerFactory factory)
      Sets the tile operator factory
      void startJob(java.lang.String jobId)
      Starts the tiling job
      void stopJob(java.lang.String jobId)
      Stops the tiling job
      void updateBlankRegion(java.lang.String jobId, double scale, java.lang.String[] invalidRegionIds, java.lang.String[] validRegionIds, java.lang.String[] noneMarkedRegionIds, boolean markAllInvalid, boolean markedAllValid)
      Submits a confirmation message of the white chart information
      void workerQuit(TileWorkerInfo conInfo)
      The tile node exits
      • Methods inherited from interface com.supermap.services.components.spi.Disposable

        dispose
    • Method Detail

      • addTileWorker

        boolean addTileWorker(TileWorkerInfo conInfo)
        

        Adds the tiling node.

        Parameters:
        conInfo -
        Returns:
        Since:
        6.1.3
      • removeTileWorker

        void removeTileWorker(java.lang.String workerId)
        

        Removes the tiling node.

        Parameters:
        workerId -
        Since:
        6.1.3
      • workerQuit

        void workerQuit(TileWorkerInfo conInfo)
        

        The tile node exits

        Parameters:
        conInfo -
        Since:
        6.1.3
      • stopJob

        void stopJob(java.lang.String jobId)
        

        Stops the tiling job

        Parameters:
        jobId -
        Since:
        6.1.3
      • startJob

        void startJob(java.lang.String jobId)
        

        Starts the tiling job

        Parameters:
        jobId -
        Since:
        6.1.3
      • restart

        void restart(java.lang.String jobId)
        

        Restarts the tiling job

        Parameters:
        jobId -
        Since:
        6.1.3
      • addJob

        TileJob addJob(JobInfo info)
        

        Creates a tiling job

        Parameters:
        info -
        Returns:
        Since:
        6.1.3
      • setJobInfoPREProcessor

        void setJobInfoPREProcessor(JobInfoPREProcessor processor)
        

        Sets the tiling Job Preprocessor

        Parameters:
        processor -
        Since:
        6.1.3
      • setJobRunnerFactory

        void setJobRunnerFactory(JobRunnerFactory factory)
        

        Sets the tile operator factory

        Parameters:
        factory -
        Since:
        6.1.3
      • getTileJobs

        java.util.List<TileJob> getTileJobs()
        

        Returns all tiling job information

        Returns:
        Since:
        6.1.3
      • getTileJob

        TileJob getTileJob(java.lang.String jobID)
        

        Returns a named tiling job information

        Parameters:
        jobID -
        Returns:
        Since:
        6.1.3
      • notifyJobDeployCompleted

        boolean notifyJobDeployCompleted(java.lang.String jobId,
                                       java.lang.String workerId)
        

        Notifies the tiling master node, and the tiling job is deployed successfully at the tiling node

        Parameters:
        jobId -
        workerId -
        Returns:
        Since:
        7.1.1
      • notifyTaskCompleted

        boolean notifyTaskCompleted(java.lang.String jobId,
                                  java.lang.String taskId,
                                  java.lang.String workerId)
        

        Notifies the tiling master node that the tiling task completed.

        Parameters:
        jobId -
        taskId -
        workerId -
        Returns:
        Since:
        6.1.3
      • notifyTaskFailed

        boolean notifyTaskFailed(java.lang.String jobId,
                               java.lang.String taskId,
                               java.lang.String workerId)
        

        Notifies the tiling master node that the tiling task failed.

        Parameters:
        jobId -
        taskId -
        workerId -
        Returns:
        Since:
        6.1.3
      • deleteJob

        boolean deleteJob(java.lang.String jobID)
        

        Deletes the tiling job

        Parameters:
        jobID -
        Returns:
        Since:
        6.1.3
      • notifyTaskCompleted

        boolean notifyTaskCompleted(java.lang.String jobId,
                                  java.lang.String taskId,
                                  java.lang.String workerId,
                                  TileTaskBuildResult result)
        

        Notifies the tiling master node that a tiling task was successful.

        Parameters:
        jobId -
        taskId -
        workerId -
        result -
        Returns:
        Since:
        6.1.3
      • analystBlankTile

        void analystBlankTile(java.lang.String jobId)
        

        Notifies a named tiling job began to analysis the white chart information

        Parameters:
        jobId -
        Since:
        6.1.3
      • getBlankTileInfos

        BlankTileInfo getBlankTileInfos(java.lang.String jobId,
                                      double scale,
                                      int fromIndex,
                                      int toIndex)
        

        Returns all the white chart information

        Parameters:
        jobId -
        scale -
        fromIndex -
        toIndex -
        Returns:
        Since:
        6.1.3
      • updateBlankRegion

        void updateBlankRegion(java.lang.String jobId,
                             double scale,
                             java.lang.String[] invalidRegionIds,
                             java.lang.String[] validRegionIds,
                             java.lang.String[] noneMarkedRegionIds,
                             boolean markAllInvalid,
                             boolean markedAllValid)
        

        Submits a confirmation message of the white chart information

        Parameters:
        jobId -
        scale -
        invalidRegionIds -
        validRegionIds -
        noneMarkedRegionIds -
        markAllInvalid -
        markedAllValid -
        Since:
        6.1.3
      • confirmBlanRegionInfos

        java.lang.String confirmBlanRegionInfos(java.lang.String jobId)
        

        Notifies the master node that the white chart information of the named tiling job has be confirmed by user.

        Parameters:
        jobId -
        Returns:
        Since:
        6.1.3
      • getWorkerStates

        TileWorkerState[] getWorkerStates()
        

        Returns the status of all tiling nodes.

        Returns:
        Since:
        6.1.3
      • getWorkerState

        TileWorkerState getWorkerState(java.lang.String workerId)
        

        Returns the state of a named tiling node

        Parameters:
        workerId -
        Returns:
        Since:
        6.1.3
      • redeployJobToWorker

        void redeployJobToWorker(java.lang.String jobId,
                               java.lang.String workerId)
        

        When deploying a tiling task to a worker fails, it is used for redeployment.

        Parameters:
        jobId - The task id needs to be redeployed.
        workerId - Needs to redeploy the worker's id.
        Since:
        7.0.1