Package com.btmatthews.utils.monitor

Examples of com.btmatthews.utils.monitor.ServerFactory


     * @return The server object that starts and stops the mail server(s).
     */
    private MailServer createServer() {
  final ServerFactoryLocator locator = ServerFactoryLocator
    .getInstance(this);
  final ServerFactory factory = locator.getFactory(serverName);
  MailServer server;
  if (factory == null) {
      server = null;
  } else {
      server = (MailServer) factory.createServer();
  }
  return server;
    }
View Full Code Here


    public void execute() throws MojoFailureException {

        // Create the server

        final ServerFactoryLocator locator = ServerFactoryLocator.getInstance(this);
        final ServerFactory factory = locator.getFactory(getServerType());
        final Server server = factory.createServer();

        // Configure the server

        final Map<String, Object> config = getServerConfig();
        for (final Map.Entry<String, Object> entry : config.entrySet()) {
View Full Code Here

     * @return The server object that starts and stops the mail server(s).
     */
    private MailServer createServer() {
        final ServerFactoryLocator locator = ServerFactoryLocator
                .getInstance(this);
        final ServerFactory factory = locator.getFactory(serverName);
        MailServer server;
        if (factory == null) {
            server = null;
        } else {
            server = (MailServer)factory.createServer();
        }
        return server;
    }
View Full Code Here

TOP

Related Classes of com.btmatthews.utils.monitor.ServerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.