/*
 * TeamSpaceConfigProxy.java
 *
 * Created on September 5, 2002, 11:20 AM
 */

package tspace.jmx.config;

/**
 * Client Proxy for accessing {@link TeamSpaceConfigMBean}
 *
 * @author  Herve Tchepannou
 * @version $Revision$
 */
public class TeamSpaceConfigProxy
    extends tspace.jmx.BaseMBeanProxy
    implements TeamSpaceConfigMBean
{
    public TeamSpaceConfigProxy()
    {
        super( TeamSpaceConfig.MBEAN_NAME );
    }    
    
    
///////////////////////////////////////////////////////////////
// TeamSpaceConfigMBean interface
///////////////////////////////////////////////////////////////
    public void init() 
        throws Exception
    {
        invoke( "init", new Class[] {}, new String[] {} );
    }
    
    public String getHomeDir() 
        throws Exception
    {
        return ( String )getAttribute( "HomeDir" );
    }
    
    public String getFilesDir() 
        throws Exception
    {
        return ( String )getAttribute( "FilesDir" );
    }    

    public String getConfigDir() 
        throws Exception
    {
        return ( String )getAttribute( "ConfigDir" );
    }    

    public String getTemplatesDir() 
        throws Exception
    {
        return ( String )getAttribute( "TemplatesDir" );
    }    
    
    public String getMailFrom() 
        throws Exception
    {
        return ( String )getAttribute( "MailFrom" );
    }    
}
