ModulesService
class ModulesService (View source)
Methods
Gets the name of the currently running module.
Gets the version of the currently running module.
Gets the id of the currently running instance.
Gets an array of all the modules for the application.
Get an array of all versions associated with a module.
Get the default version of a module.
Get the number of instances set for a version of a module.
Set the number of instances for a version of a module.
Starts all instances of the given version of a module.
Stops all instances of the given version of a module.
Returns the hostname to use when contacting a module.
Details
        at         line 69
                static            string
    getCurrentModuleName()
        
    
    Gets the name of the currently running module.
        at         line 80
                static            string
    getCurrentVersionName()
        
    
    Gets the version of the currently running module.
        at         line 93
                static            string
    getCurrentInstanceId()
        
    
    Gets the id of the currently running instance.
        at         line 105
                static            string[]
    getModules()
        
    
    Gets an array of all the modules for the application.
        at         line 128
                static            string[]
    getVersions(string $module = null)
        
    
    Get an array of all versions associated with a module.
        at         line 161
                static            string
    getDefaultVersion(string $module = null)
        
    
    Get the default version of a module.
        at         line 200
                static            integer
    getNumInstances(string $module = null, string $version = null)
        
    
    Get the number of instances set for a version of a module.
This function does not work on automatically-scaled modules.
        at         line 247
                static            
    setNumInstances($instances, $module = null, $version = null)
        
    
    Set the number of instances for a version of a module.
This function does not work on automatically-scaled modules.
        at         line 297
                static            
    startVersion(string $module, string $version)
        
    
    Starts all instances of the given version of a module.
*
        at         line 337
                static            
    stopVersion(string $module = null, string $version = null)
        
    
    Stops all instances of the given version of a module.
*
        at         line 387
                static            string
    getHostname(string $module = null, string $version = null, string $instance = null)
        
    
    Returns the hostname to use when contacting a module.
*