Interface ServerSiteModel

    • Method Detail

      • getSitePrimaryURL

        String getSitePrimaryURL​(String name)
                          throws AMConsoleException
        Returns primary URL of site.
        Parameters:
        name - Name of Site.
        Returns:
        a primary URL of site.
        Throws:
        AMConsoleException - if error occurs when getting the site primary URL.
      • getSiteFailoverURLs

        Set getSiteFailoverURLs​(String name)
                         throws AMConsoleException
        Returns a set of failover URLs of site.
        Parameters:
        name - Name of Site.
        Returns:
        a set of failover URLs of site.
        Throws:
        AMConsoleException - if error occurs when getting the site primary URL.
      • getSiteServers

        Set getSiteServers​(String name)
                    throws AMConsoleException
        Returns a set of servers that belong to site.
        Parameters:
        name - Name of Site.
        Returns:
        a set of servers that belong to site.
        Throws:
        AMConsoleException - if error occurs when getting the servers set.
      • deleteSites

        void deleteSites​(Set sites)
                  throws AMConsoleException
        Deletes a set of sites.
        Parameters:
        sites - Set of of sites to be deleted.
        Throws:
        AMConsoleException - if error occurs when getting the site name.
      • getServerNames

        Set getServerNames()
                    throws AMConsoleException
        Returns a set of server names.
        Returns:
        a set of server names.
        Throws:
        AMConsoleException - if error occurs when getting the server names.
      • getServerSite

        String getServerSite​(String name)
                      throws AMConsoleException
        Returns a site name of which server belongs to.
        Parameters:
        name - Name of Server.
        Returns:
        a site name.
        Throws:
        AMConsoleException - if error occurs when getting the site name.
      • deleteServers

        void deleteServers​(Set servers)
                    throws AMConsoleException
        Deletes a set of servers.
        Parameters:
        servers - Set of of servers to be deleted.
        Throws:
        AMConsoleException - if error occurs when getting the site name.
      • getEditSitePageTitle

        String getEditSitePageTitle​(String siteName)
        Returns edit site title page.
        Parameters:
        siteName - Name of site.
        Returns:
        edit site title page.
      • modifySite

        void modifySite​(String siteName,
                        String primaryURL,
                        Set failoverURLs)
                 throws AMConsoleException
        Modifies site profile.
        Parameters:
        siteName - name of site.
        primaryURL - Primary URL.
        failoverURLs - Failover URLs.
        Throws:
        AMConsoleException - if site profile cannot be modified.
      • cloneServer

        void cloneServer​(String origServer,
                         String cloneServer)
                  throws AMConsoleException
        Clones a server.
        Parameters:
        origServer - Name of the server to be cloned.
        cloneServer - Name of clone server.
        Throws:
        AMConsoleException - if server cannot be cloned.
      • getEditServerPageTitle

        String getEditServerPageTitle​(String serverName)
        Returns edit server title page.
        Parameters:
        serverName - Name of server.
        Returns:
        edit server title page.
      • getServerConfiguration

        Map getServerConfiguration​(String serverName)
                            throws AMConsoleException
        Returns server configuration.
        Parameters:
        serverName - name of server.
        Returns:
        server configuration.
        Throws:
        AMConsoleException - if server profile cannot be retrieved.
      • getServerDefaults

        Map getServerDefaults()
        Returns default server configuration.
        Returns:
        server configuration.
      • updateServerConfigInheritance

        void updateServerConfigInheritance​(String serverName,
                                           Set toInherit,
                                           Set notToInherit)
                                    throws AMConsoleException
        Updates server property inheritance settings.
        Parameters:
        serverName - Name of server.
        toInherit - Properties to inherit.
        notToInherit - Properties not to inherit.
        Throws:
        AMConsoleException - if server profile cannot be updated.
      • getServerConfigObject

        ServerConfigXML getServerConfigObject​(String serverName)
                                       throws AMConsoleException
        Returns the server configuration XML object.
        Parameters:
        serverName - Name of server.
        Returns:
        the server configuration XML object.
        Throws:
        AMConsoleException - if server configuration XML object cannot be return.
      • setServerConfigXML

        void setServerConfigXML​(String serverName,
                                String xml)
                         throws AMConsoleException
        Sets the server configuration XML.
        Parameters:
        serverName - Name of server.
        xml - the server configuration XML.
        Throws:
        AMConsoleException - if server configuration XML cannot be set.