Configure the full reports-to cache 

The full reports-to cache is one of the two in-memory caches used by Profiles to support the organizational structure views.


Before starting


To edit configuration files, use the IBM WAS wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.


About this task


The full reports-to cache is used to populate the full reports-to chain view available under the business card in a profile. The cache contains the specified number of top employees in the organizational pyramid. It is not intended to store an entry for each profile; it stores the profiles of those people at the top of the chain who are included in many full report-to chain views.
When you use this procedure to change the default behavior of the cache, it changes the behavior permanently, but requires a server restart. To change the cache behavior in a production environment without having to disrupt service, see Controlling cache operations. But, any changes you make to the runtime cache are overwritten by the setting in the configuration file when the server next restarts.


Procedure


To manage the display of report-chain information using the full reports-to cache...

  1. From the dmgr host:

      cd $DMGR_PROFILE/bin
      ./wsadmin.sh -jython
      execfile("profilesAdmin.py")

      If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, pick the node where the file is stored.

  2. Check out the Profiles configuration files:

      ProfilesConfigService.checkOutConfig("<working_directory>", "<cell_name>")where:

      • <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied and are stored while you make changes to them. Use forward slashes (/) to separate directories in the file path, even if you are using the Microsoft Windows operating system.

          Note: AIX and Linux only: The directory must grant write permissions or the command does not complete successfully.

      • <cell_name> is the name of the WAS cell hosting the Profiles application. This argument is required. It is also case-sensitive, so type it with care. If you do not know the cell name, you can determine it by typing the following command in the wsadmin command processor: print AdminControl.getCell()

      For example:

      • AIX or Linux:

          ProfilesConfigService.checkOutConfig("/opt/prof/temp","foo01Cell01")

      • Microsoft Windows:

          ProfilesConfigService.checkOutConfig("c:/prof/temp","foo01Cell01")

  • To configure the full reports-to cache, use the following command:

      ProfilesConfigService.updateConfig(<property>, <value>)

      where

      • <property> is one of the editable Profiles configuration properties.

      • <value> is the new value with which you want to set that property.

      The following table displays information regarding the properties that you can configure for the full reports-to chain cache, and the type of data that you can enter for them.

      Table 1. Full reports-to chain cache properties

      Option Description
      fullReportsToChainCache.enabled Enables or disables the full reports-to cache.

      This property takes a Boolean value: true or false. The value must be formatted in lowercase.

      fullReportsToChainCache.ceouid The corporate directory user ID of the person who will appear at the top of the organizational structure.

      This property takes a UID value.

      fullReportsToChainCache.size The number of employee entries that should be loaded into the cache.

      This property takes an integer value.

      fullReportsToChainCache.refreshTime Determines the time of day in 24-hour time format that Profiles performs the first scheduled reloading of the cache.

      The property value must be expressed in hours and minutes using this formatting: HH:MM.

      fullReportsToChainCache.refreshInterval The time in minutes between cache reload operations.

      This property takes an integer value.

      fullReportsToChainCache.startDelay The time in minutes that Profiles should wait after starting before loading the cache for the first time.

      This property takes an integer value.


      For example, to disable the cache, enter:

      ProfilesConfigService.updateConfig("fullReportsToChainCache.enabled","false")

  • After making changes, check the configuration files back in, and do so during the same wsadmin session in which you checked them out for the changes to take effect. See Apply property changes in Profiles for information about how to save and apply your changes.


    Parent topic

    Administer cache

    Related tasks
    Apply property changes in Profiles

    +

    Search Tips   |   Advanced Search