org.jboss.system.server.profileservice.repository
Class HotDeploymentRepository

java.lang.Object
  extended by org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
      extended by org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository
          extended by org.jboss.system.server.profileservice.repository.BasicDeploymentRepository
              extended by org.jboss.system.server.profileservice.repository.HotDeploymentRepository
All Implemented Interfaces:
org.jboss.profileservice.spi.DeploymentRepository
Direct Known Subclasses:
ClusteredDeploymentRepository, ProfileServiceDeploymentRepositoryAdapter.DeploymentScannerProfile

public class HotDeploymentRepository
extends BasicDeploymentRepository

A deployment repository, with hot deployment capabilities.

Version:
$Revision: 87159 $
Author:
Emanuel Muckenhuber, Ales Justin

Field Summary
 
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository
ignoreFlags
 
Fields inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
log, uris
 
Constructor Summary
HotDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key, URI[] uris)
           
 
Method Summary
protected  void applyAddedDeployments(URI applicationDir, List<org.jboss.profileservice.spi.ModificationInfo> modified, List<org.jboss.virtual.VirtualFile> added)
          Apply added deployments.
protected  void checkForAdditions(List<org.jboss.profileservice.spi.ModificationInfo> modified)
          Check for additions.
protected  void cleanUpRoot(org.jboss.virtual.VirtualFile vf)
          A way for the hot-deployment repository to cleanup the root (modification checker).
protected  org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker getChecker()
          Get the structure modified checker.
 Collection<org.jboss.profileservice.spi.ModificationInfo> getModifiedDeployments()
           
 void setChecker(org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker checker)
          Set the checker.
 
Methods inherited from class org.jboss.system.server.profileservice.repository.BasicDeploymentRepository
addDeployment, addDeploymentContent, addDeploymentContent, getUploadUri, internalAddDeployment, isFailIfAlreadyExists, load, lockRead, lockWrite, remove, removeDeployment, removeDeployment, setFailIfAlreadyExists, setUploadUri, unlockRead, unlockWrite
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractDeploymentRepository
acceptsDeployment, clearDeploymentContentFlags, create, getDeployment, getDeploymentContent, getDeploymentContentFlags, getProfileKey, getRepositoryNames, hasDeploymentContentFlags, lockDeploymentContent, setDeploymentContentFlags, unload, unlockDeploymentContent
 
Methods inherited from class org.jboss.system.server.profileservice.repository.AbstractVFSProfileSource
addedDeployment, addedDeployments, addVirtualFileCache, createDeployment, destroy, findDeploymentContent, getCachedVirtualFile, getCachedVirtualFile, getDeploymentFilter, getDeploymentNames, getDeployments, getLastModified, getRepositoryURIs, isRecursiveScan, loadApplications, setDeploymentFilter, setRecursiveScan, updateLastModfied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.profileservice.spi.DeploymentRepository
getDeploymentNames, getDeployments, getLastModified, getRepositoryURIs
 

Constructor Detail

HotDeploymentRepository

public HotDeploymentRepository(org.jboss.profileservice.spi.ProfileKey key,
                               URI[] uris)
Method Detail

getChecker

protected org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker getChecker()
Get the structure modified checker.

Returns:
the checker

setChecker

public void setChecker(org.jboss.deployers.vfs.spi.structure.modified.StructureModificationChecker checker)
Set the checker.

Parameters:
checker - the checker

getModifiedDeployments

public Collection<org.jboss.profileservice.spi.ModificationInfo> getModifiedDeployments()
                                                                                 throws Exception
Specified by:
getModifiedDeployments in interface org.jboss.profileservice.spi.DeploymentRepository
Overrides:
getModifiedDeployments in class BasicDeploymentRepository
Throws:
Exception

checkForAdditions

protected void checkForAdditions(List<org.jboss.profileservice.spi.ModificationInfo> modified)
                          throws Exception
Check for additions.

Parameters:
modified - the modified list
Throws:
Exception - for any error

applyAddedDeployments

protected void applyAddedDeployments(URI applicationDir,
                                     List<org.jboss.profileservice.spi.ModificationInfo> modified,
                                     List<org.jboss.virtual.VirtualFile> added)
                              throws Exception
Apply added deployments.

Parameters:
applicationDir - the app dir
modified - the modifed list
added - the added deployments
Throws:
Exception - for any error

cleanUpRoot

protected void cleanUpRoot(org.jboss.virtual.VirtualFile vf)
Description copied from class: BasicDeploymentRepository
A way for the hot-deployment repository to cleanup the root (modification checker).

Overrides:
cleanUpRoot in class BasicDeploymentRepository
Parameters:
vf - the deployment root


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.