org.objectweb.jonas.mail
Interface MailServiceImplMBean

All Known Implementing Classes:
MailServiceImpl

public interface MailServiceImplMBean

This interface provides a description for the mail service management.

Author:
Ludovic Bert, Florent Benoit

Method Summary
 void createMailFactoryMBean(java.lang.String name, java.util.Properties props)
          Create a mail factory with the specified properties and register it into the registry.
 java.lang.Integer getCurrentNumberOfMailFactories()
           
 java.lang.Integer getCurrentNumberOfMimeMailFactories()
           
 java.lang.Integer getCurrentNumberOfSessionMailFactories()
           
 java.util.Properties getMailFactoryPropertiesFile(java.lang.String configFile)
           
 void unbindMailFactoryMBean(java.lang.String name)
          Unregister the factory binded with the given name.
 

Method Detail

createMailFactoryMBean

public void createMailFactoryMBean(java.lang.String name,
                                   java.util.Properties props)
                            throws MailServiceException
Create a mail factory with the specified properties and register it into the registry.
Parameters:
name - the name of the mail factory
props - the properties used to configure the mail factory.
Throws:
MailServiceException - if the creation or the registration of the factory failed.
java.rmi.RemoteException - if rmi call failed.

unbindMailFactoryMBean

public void unbindMailFactoryMBean(java.lang.String name)
                            throws MailServiceException
Unregister the factory binded with the given name.
Parameters:
name - the name of the factory.
Throws:
MailServiceException - if the unregistration of the factory failed.
java.rmi.RemoteException - if rmi call failed.

getCurrentNumberOfSessionMailFactories

public java.lang.Integer getCurrentNumberOfSessionMailFactories()
Returns:
Integer Number of mail Session mail factories available in JOnAS

getCurrentNumberOfMimeMailFactories

public java.lang.Integer getCurrentNumberOfMimeMailFactories()
Returns:
Integer Number of internet.MimePartDataSource mail factories available in JOnAS

getCurrentNumberOfMailFactories

public java.lang.Integer getCurrentNumberOfMailFactories()
Returns:
Integer Total number of mail factories available in JOnAS

getMailFactoryPropertiesFile

public java.util.Properties getMailFactoryPropertiesFile(java.lang.String configFile)
                                                  throws java.lang.Exception
Returns:
mail factory configuration properties from a local file