org.sadun.util.polling
Interface ManagedDirectoryPollerMBean

All Known Subinterfaces:
InstrumentedManagedDirectoryPollerMBean, InstrumentedManagedDirectoryPollerServiceMBean, ManagedDirectoryPollerServiceMBean
All Known Implementing Classes:
InstrumentedManagedDirectoryPoller, InstrumentedManagedDirectoryPollerService, ManagedDirectoryPoller, ManagedDirectoryPollerService

public interface ManagedDirectoryPollerMBean

An MBean interface for the directory poller. Most methods are the one exposed by DirectoryPoller; some additional methods are provided to ease management with consoles not treating array values or nonprimitive (or String) objects

Version:
1.4
Author:
cris

Method Summary
 void addControlledDirectory(java.lang.String dir)
           
 void addNotificationListener(ObjectName objectName)
           
 void addNotificationListener(java.lang.String mbeanServerName, ObjectName objectName)
           
 int countControlledDirectories()
           
 java.lang.String getAcceptedFilenamePattern()
           
 boolean getAutoMove()
           
 java.lang.String getAutoMoveDirectoryPath(java.lang.String directory)
           
 long getBaseTime(java.lang.String directory)
           
 java.lang.String getControlledDirectories()
           
 java.lang.String getControlledDirectory(int i)
           
 java.lang.String getEventsOrdering()
           
 java.lang.String getFilenameFilterFactory()
           
 java.lang.String getFilenameFilterFactoryClass()
           
 java.lang.String getFilesSortComparatorClass()
           
 java.io.FilenameFilter getFilter()
           
 java.lang.String getJMXSequenceNumberGeneratorClass()
           
 java.lang.String getJMXTimerObjectName()
           
 long getPollInterval()
           
 java.lang.String getPollManagerFactory()
           
 java.lang.String getPollManagerFactoryClass()
           
 boolean isBypassLockedFiles()
           
 boolean isDebugExceptions()
           
 boolean isPollingTimeBased()
           
 boolean isRunning()
           
 boolean isSendSingleFileEvent()
           
 boolean isStartBySleeping()
           
 boolean isTimeBased()
           
 boolean isUsingJMXTimer()
           
 boolean isVerbose()
           
 java.lang.String listControlledDirectories()
           
 java.lang.String listInstalledPollManagers()
           
 void removeControlledDirectory(java.lang.String dir)
           
 void removeNotificationListener(ObjectName objectName)
           
 void removeNotificationListener(java.lang.String mbeanServerName, ObjectName objectName)
           
 void setAcceptedFilenamePattern(java.lang.String filenamePattern)
           
 void setAutoMove(boolean v)
           
 void setAutoMoveDirectoryPath(java.lang.String directory, java.lang.String automoveDirectory)
           
 void setBaseTime(java.lang.String directory, long time)
           
 void setBypassLockedFiles(boolean supportSlowTransfer)
           
 void setControlledDirectories(java.lang.String commaSeparatedList)
           
 void setDebugExceptions(boolean debugExceptions)
           
 void setEventsOrdering(java.lang.String expr)
           
 void setFilenameFilterFactoryClass(java.lang.String filenameFilterFactoryClsName)
           
 void setFilesSortComparatorClass(java.lang.String fileComparatorClassName)
           
 void setJMXSequenceNumberGeneratorClass(java.lang.String sequenceNumberGeneratorClass)
           
 void setJMXTimerObjectName(java.lang.String jMXTimerObjectName)
           
 void setPollingTimeBased(boolean v)
           
 void setPollInterval(long pollInterval)
           
 void setPollManagerFactoryClass(java.lang.String pollManagerFactoryClsName)
           
 void setSendSingleFileEvent(boolean v)
           
 void setStartBySleeping(boolean v)
           
 void setTimeBased(boolean v)
           
 void setUsingJMXTimer(boolean v)
           
 void setVerbose(boolean v)
           
 void shutDown()
           
 void startUp()
           
 

Method Detail

setVerbose

public void setVerbose(boolean v)

isVerbose

public boolean isVerbose()

setAutoMove

public void setAutoMove(boolean v)

getAutoMove

public boolean getAutoMove()

getAutoMoveDirectoryPath

public java.lang.String getAutoMoveDirectoryPath(java.lang.String directory)
                                          throws MBeanException
Throws:
MBeanException

startUp

public void startUp()
             throws MBeanException
Throws:
MBeanException

isRunning

public boolean isRunning()
                  throws MBeanException
Throws:
MBeanException

getPollInterval

public long getPollInterval()

setPollInterval

public void setPollInterval(long pollInterval)

shutDown

public void shutDown()
              throws MBeanException
Throws:
MBeanException

removeControlledDirectory

public void removeControlledDirectory(java.lang.String dir)
                               throws MBeanException
Throws:
MBeanException

addControlledDirectory

public void addControlledDirectory(java.lang.String dir)
                            throws MBeanException
Throws:
MBeanException

getControlledDirectory

public java.lang.String getControlledDirectory(int i)
                                        throws MBeanException
Throws:
MBeanException

countControlledDirectories

public int countControlledDirectories()
                               throws MBeanException
Throws:
MBeanException

setStartBySleeping

public void setStartBySleeping(boolean v)

isStartBySleeping

public boolean isStartBySleeping()

setSendSingleFileEvent

public void setSendSingleFileEvent(boolean v)

isSendSingleFileEvent

public boolean isSendSingleFileEvent()

setBaseTime

public void setBaseTime(java.lang.String directory,
                        long time)

getBaseTime

public long getBaseTime(java.lang.String directory)

getControlledDirectories

public java.lang.String getControlledDirectories()

setControlledDirectories

public void setControlledDirectories(java.lang.String commaSeparatedList)

listControlledDirectories

public java.lang.String listControlledDirectories()

listInstalledPollManagers

public java.lang.String listInstalledPollManagers()

isTimeBased

public boolean isTimeBased()

isPollingTimeBased

public boolean isPollingTimeBased()

setPollingTimeBased

public void setPollingTimeBased(boolean v)

setPollManagerFactoryClass

public void setPollManagerFactoryClass(java.lang.String pollManagerFactoryClsName)
                                throws java.lang.InstantiationException,
                                       java.lang.IllegalAccessException,
                                       java.lang.ClassNotFoundException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

getPollManagerFactoryClass

public java.lang.String getPollManagerFactoryClass()

getPollManagerFactory

public java.lang.String getPollManagerFactory()

setUsingJMXTimer

public void setUsingJMXTimer(boolean v)

isUsingJMXTimer

public boolean isUsingJMXTimer()

getJMXTimerObjectName

public java.lang.String getJMXTimerObjectName()

setJMXTimerObjectName

public void setJMXTimerObjectName(java.lang.String jMXTimerObjectName)

setAutoMoveDirectoryPath

public void setAutoMoveDirectoryPath(java.lang.String directory,
                                     java.lang.String automoveDirectory)

getFilter

public java.io.FilenameFilter getFilter()

setFilenameFilterFactoryClass

public void setFilenameFilterFactoryClass(java.lang.String filenameFilterFactoryClsName)
                                   throws java.lang.InstantiationException,
                                          java.lang.IllegalAccessException,
                                          java.lang.ClassNotFoundException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

getFilenameFilterFactoryClass

public java.lang.String getFilenameFilterFactoryClass()

getFilenameFilterFactory

public java.lang.String getFilenameFilterFactory()

setAcceptedFilenamePattern

public void setAcceptedFilenamePattern(java.lang.String filenamePattern)

getAcceptedFilenamePattern

public java.lang.String getAcceptedFilenamePattern()

setEventsOrdering

public void setEventsOrdering(java.lang.String expr)

getEventsOrdering

public java.lang.String getEventsOrdering()

setFilesSortComparatorClass

public void setFilesSortComparatorClass(java.lang.String fileComparatorClassName)
                                 throws java.lang.InstantiationException,
                                        java.lang.IllegalAccessException,
                                        java.lang.ClassNotFoundException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

getFilesSortComparatorClass

public java.lang.String getFilesSortComparatorClass()

setJMXSequenceNumberGeneratorClass

public void setJMXSequenceNumberGeneratorClass(java.lang.String sequenceNumberGeneratorClass)
                                        throws MBeanException
Throws:
MBeanException

getJMXSequenceNumberGeneratorClass

public java.lang.String getJMXSequenceNumberGeneratorClass()

addNotificationListener

public void addNotificationListener(java.lang.String mbeanServerName,
                                    ObjectName objectName)
                             throws InstanceNotFoundException
Throws:
InstanceNotFoundException

addNotificationListener

public void addNotificationListener(ObjectName objectName)
                             throws InstanceNotFoundException
Throws:
InstanceNotFoundException

removeNotificationListener

public void removeNotificationListener(ObjectName objectName)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException
Throws:
InstanceNotFoundException
ListenerNotFoundException

removeNotificationListener

public void removeNotificationListener(java.lang.String mbeanServerName,
                                       ObjectName objectName)
                                throws InstanceNotFoundException,
                                       ListenerNotFoundException
Throws:
InstanceNotFoundException
ListenerNotFoundException

isBypassLockedFiles

public boolean isBypassLockedFiles()

setBypassLockedFiles

public void setBypassLockedFiles(boolean supportSlowTransfer)

isDebugExceptions

public boolean isDebugExceptions()

setDebugExceptions

public void setDebugExceptions(boolean debugExceptions)

setTimeBased

public void setTimeBased(boolean v)


Copyright © 1999, 2000 Cristiano Sadun. This software is released under GPL.