From: Scott S. <sco...@jb...> - 2006-07-10 17:04:39
|
User: starksm Date: 06/07/10 13:04:37 Added: src/main/org/jboss/deployment/scanner VFSDeploymentScanner.java Log: A deployment scanner that integrates with the VFS and ProfileService Revision Changes Path 1.1 date: 2006/07/10 17:04:37; author: starksm; state: Exp;system2/src/main/org/jboss/deployment/scanner/VFSDeploymentScanner.java Index: VFSDeploymentScanner.java =================================================================== /* * JBoss, Home of Professional Open Source * Copyright 2005, JBoss Inc., and individual contributors as indicated * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.jboss.deployment.scanner; import org.jboss.profileservice.spi.ProfileService; import org.jboss.vfs.VFSFactory; /** * An interface for a VFS deployment scanner service * * @version $Revision$ * @author Sco...@jb... */ public interface VFSDeploymentScanner { public VFSFactory getVFSFactory(); public void setVFSFactory(VFSFactory factory); /** * * @param ps */ void setProfileService(ProfileService ps); public ProfileService getProfileService(); /** * Set the scan period for the scanner. * * @param period - The time in milliseconds between scans. */ void setScanPeriod(long period); /** * Get the scan period for the scanner. * * @return The time in milliseconds between scans. */ long getScanPeriod(); /** * Set the periodic scan mode enabled/disabled state. Manual scanning can * still be performed by calling {@link #scan}. * * @param flag - true to enable or false to disable period based scanning. */ void setScanEnabled(boolean flag); /** * Check if period based scanning is enabled. * * @return True if enabled, false if disabled. */ boolean isScanEnabled(); /** * Scan for deployment changes. * * @throws IllegalStateException Not initialized. * @throws Exception Scan failed. */ void scan() throws Exception; } |