001/* 002 * jPOS Project [http://jpos.org] 003 * Copyright (C) 2000-2026 jPOS Software SRL 004 * 005 * This program is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Affero General Public License as 007 * published by the Free Software Foundation, either version 3 of the 008 * License, or (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Affero General Public License for more details. 014 * 015 * You should have received a copy of the GNU Affero General Public License 016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package org.jpos.q2.iso; 020 021/** 022 * JMX management interface for {@link DirPollAdaptor}. 023 * @author <a href="mailto:apr@cs.com.uy">Alejandro P. Revilla</a> 024 * @version $Revision: 1859 $ $Date: 2003-12-05 23:52:20 -0300 (Fri, 05 Dec 2003) $ 025 */ 026public interface DirPollAdaptorMBean extends org.jpos.q2.QBeanSupportMBean { 027 028 /** 029 * Sets the base directory path. 030 * @param path the directory path 031 */ 032 void setPath(java.lang.String path); 033 034 /** 035 * Sets the thread pool size. 036 * @param size the number of threads 037 */ 038 void setPoolSize(int size); 039 040 /** 041 * Returns the thread pool size. 042 * @return pool size 043 */ 044 int getPoolSize(); 045 046 /** 047 * Returns the base directory path. 048 * @return directory path 049 */ 050 java.lang.String getPath(); 051 052 /** 053 * Sets the polling interval. 054 * @param pollInterval interval in milliseconds 055 */ 056 void setPollInterval(long pollInterval); 057 058 /** 059 * Returns the polling interval. 060 * @return interval in milliseconds 061 */ 062 long getPollInterval(); 063 064 /** 065 * Sets the file extension priorities. 066 * @param priorities blank-separated list of extensions 067 */ 068 void setPriorities(java.lang.String priorities); 069 070 /** 071 * Returns the file extension priorities. 072 * @return blank-separated priority list 073 */ 074 java.lang.String getPriorities(); 075 076 /** 077 * Sets the processor class name. 078 * @param processor fully qualified class name 079 */ 080 void setProcessor(java.lang.String processor); 081 082 /** 083 * Returns the processor class name. 084 * @return fully qualified class name 085 */ 086 java.lang.String getProcessor(); 087 088}