wt.admin.cache
Interface CacheUpdater

All Known Implementing Classes:
AdminDomainCache.CacheUpdaterContainer, DomainHierarchy

interface CacheUpdater

Updates a cache in response to persistent changes to AdministrativeDomains


Method Summary
 void add(AdministrativeDomain domain)
          Caches an AdministrativeDomain in response to a POST_STORE event
 void delete(AdministrativeDomain domain)
          Deletes a cached AdministrativeDomain in response to a REMOVE event
 void modify(AdministrativeDomain domain)
          Updates a cached AdministrativeDomain in response to a POST_MODIFY event
 void move(AdministrativeDomain domain, AdminDomainRef old_parent, AdminDomainRef new_parent)
          Updates the cache in response to a POST_CHANGE_DOMAIN event on an AdministrativeDomain
 void writeContents(OutputStream os)
          Writes the contents of this cache to an OutputStream for debugging purposes
 

Method Detail

add

public void add(AdministrativeDomain domain)
Caches an AdministrativeDomain in response to a POST_STORE event

Parameters:
domain - a new AdministrativeDomain

delete

public void delete(AdministrativeDomain domain)
Deletes a cached AdministrativeDomain in response to a REMOVE event

Parameters:
domain - a deleted AdministrativeDomain

modify

public void modify(AdministrativeDomain domain)
Updates a cached AdministrativeDomain in response to a POST_MODIFY event

Parameters:
domain - a modified AdministrativeDomain

move

public void move(AdministrativeDomain domain,
                 AdminDomainRef old_parent,
                 AdminDomainRef new_parent)
Updates the cache in response to a POST_CHANGE_DOMAIN event on an AdministrativeDomain

Parameters:
domain - a moved AdministrativeDomain
old_parent - the old parent AdminDomainRef
new_parent - the new parent AdminDomainRef

writeContents

public void writeContents(OutputStream os)
                   throws IOException
Writes the contents of this cache to an OutputStream for debugging purposes

Parameters:
os - an OutputStream to write the contents of a cache to
Throws:
IOException - if there is an I/O error