3853N/A/*
3853N/A * CDDL HEADER START
3853N/A *
3853N/A * The contents of this file are subject to the terms of the
3853N/A * Common Development and Distribution License, Version 1.0 only
3853N/A * (the "License"). You may not use this file except in compliance
3853N/A * with the License.
3853N/A *
3853N/A * You can obtain a copy of the license at
3853N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
3853N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
3853N/A * See the License for the specific language governing permissions
3853N/A * and limitations under the License.
3853N/A *
3853N/A * When distributing Covered Code, include this CDDL HEADER in each
3853N/A * file and include the License file at
3853N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
3853N/A * add the following below this CDDL HEADER, with the fields enclosed
3853N/A * by brackets "[]" replaced with your own identifying information:
3853N/A * Portions Copyright [yyyy] [name of copyright owner]
3853N/A *
3853N/A * CDDL HEADER END
3853N/A *
3853N/A *
4945N/A * Copyright 2008-2009 Sun Microsystems, Inc.
3853N/A */
3853N/A
3853N/Apackage org.opends.guitools.controlpanel.task;
3853N/A
3853N/Aimport static org.opends.messages.AdminToolMessages.*;
3853N/A
4945N/Aimport java.util.ArrayList;
4945N/A
3853N/Aimport org.opends.guitools.controlpanel.datamodel.ControlPanelInfo;
3853N/Aimport org.opends.guitools.controlpanel.ui.ProgressDialog;
3853N/Aimport org.opends.messages.Message;
3853N/A
3853N/A/**
3853N/A * The task called when we want to start the server.
3853N/A *
3853N/A */
3853N/Apublic class StartServerTask extends StartStopTask
3853N/A{
3853N/A
3853N/A /**
3853N/A * Constructor of the task.
3853N/A * @param info the control panel information.
3853N/A * @param dlg the progress dialog where the task progress will be displayed.
3853N/A */
3853N/A public StartServerTask(ControlPanelInfo info, ProgressDialog dlg)
3853N/A {
3853N/A super(info, dlg);
3853N/A }
3853N/A
3853N/A /**
3853N/A * {@inheritDoc}
3853N/A */
3853N/A public Type getType()
3853N/A {
3853N/A return Type.START_SERVER;
3853N/A }
3853N/A
3853N/A /**
3853N/A * {@inheritDoc}
3853N/A */
3853N/A public Message getTaskDescription()
3853N/A {
3853N/A return INFO_CTRL_PANEL_START_SERVER_TASK_DESCRIPTION.get();
3853N/A }
3853N/A
3853N/A /**
3853N/A * {@inheritDoc}
3853N/A */
3853N/A protected String getCommandLinePath()
3853N/A {
3853N/A return getCommandLinePath("start-ds");
3853N/A }
4945N/A
4945N/A /**
4945N/A * {@inheritDoc}
4945N/A */
4945N/A protected ArrayList<String> getCommandLineArguments()
4945N/A {
4945N/A ArrayList<String> args = new ArrayList<String>();
4945N/A args.add("--timeout");
4945N/A args.add("0");
4945N/A return args;
4945N/A }
3853N/A};