Interface ICloudServerService


  • public interface ICloudServerService
    Service to work with 1C:EDT cloud servers.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      URL getCloudManagerUrl​(CloudServerInfobase infobase)
      Returns the URL of the 1C:EDT cloud manager the provided server work with and the provided cloud infobase URL context.
      URL getCloudManagerUrl​(org.eclipse.wst.server.core.IServer server)
      Returns the URL of the 1C:EDT cloud manager the provided server work with.
      int getCodeSyncState​(org.eclipse.wst.server.core.IServer server)
      Returns the 1C:EDT cloud server code synchronization state according to the IServer.STATE_* constants.
      URI getDesignerUrl​(CloudServerInfobase infobase)
      Returns the URL of the 1C:Enterprise Designer launched for the provided cloud infobase.
      List<org.eclipse.wst.server.core.IServer> getServers()
      Returns all known instances of 1C:EDT cloud servers.
      Optional<org.eclipse.core.resources.IProject> getWorkspaceProject​(org.eclipse.wst.server.core.IServer server)
      Returns the main workspace project that works with the provided 1C:EDT cloud server.
      void startCodeSync​(org.eclipse.wst.server.core.IServer server, org.eclipse.core.runtime.IProgressMonitor monitor)
      Starts code synchronization with the 1C:EDT cloud server.
      void stopCodeSync​(org.eclipse.wst.server.core.IServer server, org.eclipse.core.runtime.IProgressMonitor monitor)
      Stops code synchronization with the 1C:EDT cloud server.
    • Method Detail

      • getServers

        List<org.eclipse.wst.server.core.IServer> getServers()
        Returns all known instances of 1C:EDT cloud servers.
        Returns:
        a list of all known instances of 1C:EDT cloud servers, never null
      • getCloudManagerUrl

        URL getCloudManagerUrl​(org.eclipse.wst.server.core.IServer server)
                        throws CloudServerServiceException
        Returns the URL of the 1C:EDT cloud manager the provided server work with.
        Parameters:
        server - the 1C:EDT cloud server, cannot be null
        Returns:
        the URL of the 1C:EDT cloud manager the provided server work with, never null
        Throws:
        CloudServerServiceException - if get failed
      • getCloudManagerUrl

        URL getCloudManagerUrl​(CloudServerInfobase infobase)
                        throws CloudServerServiceException
        Returns the URL of the 1C:EDT cloud manager the provided server work with and the provided cloud infobase URL context.
        Parameters:
        infobase - the cloud infobase, cannot be null
        Returns:
        the URL of the 1C:EDT cloud manager the provided server work with, never null
        Throws:
        CloudServerServiceException - if get failed
      • getWorkspaceProject

        Optional<org.eclipse.core.resources.IProject> getWorkspaceProject​(org.eclipse.wst.server.core.IServer server)
                                                                   throws CloudServerServiceException
        Returns the main workspace project that works with the provided 1C:EDT cloud server.
        Parameters:
        server - the 1C:EDT cloud server, cannot be null
        Returns:
        the main workspace project that works with the provided 1C:EDT cloud server
        Throws:
        CloudServerServiceException - if get failed
      • startCodeSync

        void startCodeSync​(org.eclipse.wst.server.core.IServer server,
                           org.eclipse.core.runtime.IProgressMonitor monitor)
                    throws CloudServerServiceException
        Starts code synchronization with the 1C:EDT cloud server.
        Parameters:
        server - the 1C:EDT cloud server, cannot be null
        monitor - the progress monitor to report progress to or null if not needed
        Throws:
        CloudServerServiceException - if request failed
      • stopCodeSync

        void stopCodeSync​(org.eclipse.wst.server.core.IServer server,
                          org.eclipse.core.runtime.IProgressMonitor monitor)
                   throws CloudServerServiceException
        Stops code synchronization with the 1C:EDT cloud server.
        Parameters:
        server - the 1C:EDT cloud server, cannot be null
        monitor - the progress monitor to report progress to or null if not needed
        Throws:
        CloudServerServiceException - if request failed
      • getCodeSyncState

        int getCodeSyncState​(org.eclipse.wst.server.core.IServer server)
                      throws CloudServerServiceException
        Returns the 1C:EDT cloud server code synchronization state according to the IServer.STATE_* constants.
        Parameters:
        server - the 1C:EDT cloud server, cannot be null
        Returns:
        the 1C:EDT cloud server code synchronization state
        Throws:
        CloudServerServiceException - if request failed
        See Also:
        IServer