org.apache.james.remotemanager
Class RemoteManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.avalon.cornerstone.services.connection.AbstractHandlerFactory
          extended by org.apache.james.socket.AbstractJamesService
              extended by org.apache.james.remotemanager.RemoteManager
All Implemented Interfaces:
org.apache.avalon.cornerstone.services.connection.ConnectionHandlerFactory, org.apache.avalon.excalibur.pool.ObjectFactory, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, RemoteManagerMBean

public class RemoteManager
extends AbstractJamesService
implements RemoteManagerMBean

Provides a really rude network interface to administer James. Allow to add accounts. TODO: -improve protocol -add remove user -much more...

Version:
1.0.0, 24/04/1999

Field Summary
 
Fields inherited from class org.apache.james.socket.AbstractJamesService
backlog, BACKLOG_NAME, bindTo, connectionLimit, connectionName, DEFAULT_BACKLOG, DEFAULT_TIMEOUT, HELLO_NAME, helloName, port, serverSocket, serverSocketType, theHandlerPool, theWatchdogFactory, threadGroup, threadPool, timeout, TIMEOUT_NAME
 
Constructor Summary
RemoteManager()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
protected  java.lang.Object getConfigurationData()
           
protected  int getDefaultPort()
          Get the default port for this server type.
 java.lang.String getServiceType()
          This method returns the type of service provided by this server.
 ProtocolHandler newProtocolHandlerInstance()
           
 void service(org.apache.avalon.framework.service.ServiceManager componentManager)
           
 void setBayesianAnalyzerManagement(BayesianAnalyzerManagementService bayesianAnalyzerManagement)
          Set the BayesianAnalyzerManagementService
 void setDomainListManagement(DomainListManagementService domListManagement)
          Set the DomainListManagementService
 void setMailServer(MailServer mailServer)
          Set the MailServer
 void setProcessorManagement(ProcessorManagementService processorManagement)
          Set the ProcessorManagementService
 void setSpoolManagement(SpoolManagementService spoolManagement)
          Set the SpoolManagementService
 void setStore(org.apache.avalon.cornerstone.services.store.Store store)
          Set the Store
 void setUsers(UsersRepository users)
          Set the UsersRepository
 void setUsersStore(UsersStore usersStore)
          Set the UserStore
 void setVirtualUserTableManagement(VirtualUserTableManagementService vutManagement)
          Set the VirtualUserTableManagementService
 
Methods inherited from class org.apache.james.socket.AbstractJamesService
createConnectionHandler, decommission, dispose, getCreatedClass, getLocalHostName, getNetworkInterface, getPort, getSocketType, getWatchdogFactory, initialize, isDefaultTLSEnabled, isEnabled, newHandler, newInstance, releaseConnectionHandler, setConnectionManager, setStreamDumpDir
 
Methods inherited from class org.apache.avalon.cornerstone.services.connection.AbstractHandlerFactory
contextualize
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.james.remotemanager.RemoteManagerMBean
getNetworkInterface, getPort, getSocketType, isEnabled
 

Constructor Detail

RemoteManager

public RemoteManager()
Method Detail

setUsersStore

public void setUsersStore(UsersStore usersStore)
Set the UserStore

Parameters:
usersStore - the UserStore

setUsers

public void setUsers(UsersRepository users)
Set the UsersRepository

Parameters:
users - the UsersRepository

setSpoolManagement

public void setSpoolManagement(SpoolManagementService spoolManagement)
Set the SpoolManagementService

Parameters:
spoolManagement - the SpoolManagementService

setMailServer

public void setMailServer(MailServer mailServer)
Set the MailServer

Parameters:
mailServer - the MailServer

setStore

public void setStore(org.apache.avalon.cornerstone.services.store.Store store)
Set the Store

Parameters:
store - the Store

setBayesianAnalyzerManagement

public void setBayesianAnalyzerManagement(BayesianAnalyzerManagementService bayesianAnalyzerManagement)
Set the BayesianAnalyzerManagementService

Parameters:
bayesianAnalyzerManagement - the BayesianAnalyzerManagementService

setProcessorManagement

public void setProcessorManagement(ProcessorManagementService processorManagement)
Set the ProcessorManagementService

Parameters:
processorManagement - the ProcessorManagementService

setVirtualUserTableManagement

public void setVirtualUserTableManagement(VirtualUserTableManagementService vutManagement)
Set the VirtualUserTableManagementService

Parameters:
vutManagement - the VirtualUserTableManagementService

setDomainListManagement

public void setDomainListManagement(DomainListManagementService domListManagement)
Set the DomainListManagementService

Parameters:
domListManagement - the DomainListManagementService

service

public void service(org.apache.avalon.framework.service.ServiceManager componentManager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Overrides:
service in class AbstractJamesService
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(ServiceManager)

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class AbstractJamesService
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(Configuration)

getDefaultPort

protected int getDefaultPort()
Description copied from class: AbstractJamesService
Get the default port for this server type. It is strongly recommended that subclasses of this class override this method to specify the default port for their specific server type.

Overrides:
getDefaultPort in class AbstractJamesService
Returns:
the default port
See Also:
AbstractJamesService.getDefaultPort()

getServiceType

public java.lang.String getServiceType()
Description copied from class: AbstractJamesService
This method returns the type of service provided by this server. This should be invariant over the life of the class. Subclasses may override this implementation. This implementation parses the complete class name and returns the undecorated class name.

Overrides:
getServiceType in class AbstractJamesService
Returns:
description of this server
See Also:
AbstractJamesService.getServiceType()

newProtocolHandlerInstance

public ProtocolHandler newProtocolHandlerInstance()
Specified by:
newProtocolHandlerInstance in class AbstractJamesService
See Also:
AbstractJamesService.newProtocolHandlerInstance()

getConfigurationData

protected java.lang.Object getConfigurationData()
Specified by:
getConfigurationData in class AbstractJamesService
See Also:
AbstractJamesService.getConfigurationData()


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.