Class MonitorWebScript

java.lang.Object
org.springframework.extensions.webscripts.AbstractWebScript
org.springframework.extensions.webscripts.DeclarativeWebScript
fr.becpg.repo.web.scripts.admin.MonitorWebScript
All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
Direct Known Subclasses:
AdminModuleWebScript

public class MonitorWebScript extends org.springframework.extensions.webscripts.DeclarativeWebScript

MonitorWebScript class.

Version:
$Id: $Id
Author:
matthieu
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    org.springframework.extensions.webscripts.AbstractWebScript.ScriptDetails
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
    Constant AUTHENTICATED_KEY="authenticated"
    private org.alfresco.repo.security.authentication.AbstractAuthenticationService
     
    protected org.alfresco.service.cmr.security.AuthorityService
     
     
    private String
     
    private static final double
    Constant BYTES_TO_MEGA_BYTES=1048576d
    private org.alfresco.service.cmr.repository.ContentService
     
    private DataSource
     
    private static final String
    Constant DOWN_STATUS="DOWN"
     
    private static final org.apache.commons.logging.Log
    Constant logger
    private static final String
    Constant MONITORS_USER_AGENT="beCPG Monitors"
    private org.alfresco.service.namespace.NamespaceService
     
    private static final String
    Constant SOLR_STATUS="solr_status"
    private static final String
    Constant STATUS_KEY="status"
    private static final String
    Constant SUCCESS_STATUS="SUCCESS"
    private static final String
    Constant SYSTEM_PATH="/app:company_home/cm:System/"
    private org.alfresco.repo.tenant.TenantAdminService
     
    private static final String
    Constant UP_STATUS="UP"
    private static final String
    Constant VOLUMETRY_PARAMETER="volumetry"
    private static final String
    Constant VOLUMETRY_QUERY="SELECT ns.uri, qn.local_name, st.protoc"{trunked}
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<String,Object>
    executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
    private String
    extractQNameString(org.alfresco.service.namespace.QName qname)
    extractQNameString.
    protected Set<String>
    fillMonitoringInformation(Map<String,Object> ret, boolean includeTenantUsers)
    fillMonitoringInformation.
    private void
    fillVolumetry.
    void
    setAuthenticationService(org.alfresco.repo.security.authentication.AbstractAuthenticationService authenticationService)
    Setter for the field authenticationService.
    void
    setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
    Setter for the field authorityService.
    void
    Setter for the field batchQueueService.
    void
    setBecpgSchema(String becpgSchema)
    Setter for the field becpgSchema.
    void
    setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
    Setter for the field contentService.
    void
    Setter for the field dataSource.
    void
    Setter for the field licenseManager.
    void
    setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
    Setter for the field namespaceService.
    void
    setTenantAdminService(org.alfresco.repo.tenant.TenantAdminService tenantAdminService)
    Setter for the field tenantAdminService.

    Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript

    execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate

    Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript

    addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • SYSTEM_PATH

      private static final String SYSTEM_PATH
      Constant SYSTEM_PATH="/app:company_home/cm:System/"
      See Also:
    • SUCCESS_STATUS

      private static final String SUCCESS_STATUS
      Constant SUCCESS_STATUS="SUCCESS"
      See Also:
    • AUTHENTICATED_KEY

      private static final String AUTHENTICATED_KEY
      Constant AUTHENTICATED_KEY="authenticated"
      See Also:
    • VOLUMETRY_PARAMETER

      private static final String VOLUMETRY_PARAMETER
      Constant VOLUMETRY_PARAMETER="volumetry"
      See Also:
    • DOWN_STATUS

      private static final String DOWN_STATUS
      Constant DOWN_STATUS="DOWN"
      See Also:
    • UP_STATUS

      private static final String UP_STATUS
      Constant UP_STATUS="UP"
      See Also:
    • STATUS_KEY

      private static final String STATUS_KEY
      Constant STATUS_KEY="status"
      See Also:
    • MONITORS_USER_AGENT

      private static final String MONITORS_USER_AGENT
      Constant MONITORS_USER_AGENT="beCPG Monitors"
      See Also:
    • SOLR_STATUS

      private static final String SOLR_STATUS
      Constant SOLR_STATUS="solr_status"
      See Also:
    • VOLUMETRY_QUERY

      private static final String VOLUMETRY_QUERY
      Constant VOLUMETRY_QUERY="SELECT ns.uri, qn.local_name, st.protoc"{trunked}
      See Also:
    • BYTES_TO_MEGA_BYTES

      private static final double BYTES_TO_MEGA_BYTES
      Constant BYTES_TO_MEGA_BYTES=1048576d
      See Also:
    • logger

      private static final org.apache.commons.logging.Log logger
      Constant logger
    • contentService

      private org.alfresco.service.cmr.repository.ContentService contentService
    • authenticationService

      private org.alfresco.repo.security.authentication.AbstractAuthenticationService authenticationService
    • licenseManager

      private BeCPGLicenseManager licenseManager
    • tenantAdminService

      private org.alfresco.repo.tenant.TenantAdminService tenantAdminService
    • becpgSchema

      private String becpgSchema
    • authorityService

      protected org.alfresco.service.cmr.security.AuthorityService authorityService
    • batchQueueService

      private BatchQueueService batchQueueService
    • dataSource

      private DataSource dataSource
    • namespaceService

      private org.alfresco.service.namespace.NamespaceService namespaceService
  • Constructor Details

    • MonitorWebScript

      public MonitorWebScript()
  • Method Details

    • setNamespaceService

      public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)

      Setter for the field namespaceService.

      Parameters:
      namespaceService - a NamespaceService object
    • setDataSource

      public void setDataSource(DataSource dataSource)

      Setter for the field dataSource.

      Parameters:
      dataSource - a DataSource object
    • executeImpl

      protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
      Overrides:
      executeImpl in class org.springframework.extensions.webscripts.DeclarativeWebScript
    • fillVolumetry

      private void fillVolumetry(Map<String,Object> ret)

      fillVolumetry.

      Parameters:
      ret - a Map object
    • extractQNameString

      private String extractQNameString(org.alfresco.service.namespace.QName qname)

      extractQNameString.

      Parameters:
      qname - a QName object
      Returns:
      a String object
    • fillMonitoringInformation

      protected Set<String> fillMonitoringInformation(Map<String,Object> ret, boolean includeTenantUsers)

      fillMonitoringInformation.

      Parameters:
      ret - a Map object
      includeTenantUsers - a boolean
      Returns:
      a Set object
    • setAuthenticationService

      public void setAuthenticationService(org.alfresco.repo.security.authentication.AbstractAuthenticationService authenticationService)

      Setter for the field authenticationService.

      Parameters:
      authenticationService - a AbstractAuthenticationService object.
    • setContentService

      public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)

      Setter for the field contentService.

      Parameters:
      contentService - a ContentService object.
    • setTenantAdminService

      public void setTenantAdminService(org.alfresco.repo.tenant.TenantAdminService tenantAdminService)

      Setter for the field tenantAdminService.

      Parameters:
      tenantAdminService - a TenantAdminService object
    • setBecpgSchema

      public void setBecpgSchema(String becpgSchema)

      Setter for the field becpgSchema.

      Parameters:
      becpgSchema - a String object
    • setAuthorityService

      public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)

      Setter for the field authorityService.

      Parameters:
      authorityService - a AuthorityService object
    • setBatchQueueService

      public void setBatchQueueService(BatchQueueService batchQueueService)

      Setter for the field batchQueueService.

      Parameters:
      batchQueueService - a BatchQueueService object
    • setLicenseManager

      public void setLicenseManager(BeCPGLicenseManager licenseManager)

      Setter for the field licenseManager.

      Parameters:
      licenseManager - a BeCPGLicenseManager object