/*********************************************************************** * This file is part of iDempiere ERP Open Source * * http://www.idempiere.org * * * * Copyright (C) Contributors * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation; either version 2 * * of the License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * * MA 02110-1301, USA. * **********************************************************************/ package org.compiere.model; import java.util.EventObject; /** * Event for the start up and shutdown of iDempiere server instance. */ public class ServerStateChangeEvent extends EventObject { /** * generated serial id */ private static final long serialVersionUID = -7744346736197438379L; public final static int SERVER_START = 0; public final static int SERVER_STOP = 1; private int eventType; public ServerStateChangeEvent(Object source, int eventType) { super(source); this.eventType = eventType; } public int getEventType() { return eventType; } public void setEventType(int eventType) { this.eventType = eventType; } }