Class ResourceDescriptionAddressProcessor

  • All Implemented Interfaces:
    Function<ResourceAddress,​ResourceAddress>

    public class ResourceDescriptionAddressProcessor
    extends Object
    implements Function<ResourceAddress,​ResourceAddress>
    Function which takes a resource address and replaces specific values with "*". Applied to addresses from the r-r-d result before they are ResourceDescriptionRegistry.add(ResourceAddress, ResourceDescription, boolean) added} to the resource description registry.

    The following parts of a resource address are modified by this function:

    • host (only if segments > 1)
    • server-group
    • server (if it's the 2nd segment of the address)
    • server-config (if it's the 2nd segment of the address)

    Examples:

     /host=primary/server-config=server-one → /host=*/server-config=*
     /host=primary/server=server-one/subsystem=data-sources → /host=*/server=*/subsystem=data-sources
     /server-group=main-server-group → /server-group=*
     /subsystem=mail/mail-session=foo/server=bar → /subsystem=mail/mail-session=foo/server=bar