001/* 002 * Sonar, open source software quality management tool. 003 * Copyright (C) 2008-2012 SonarSource 004 * mailto:contact AT sonarsource DOT com 005 * 006 * Sonar is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 3 of the License, or (at your option) any later version. 010 * 011 * Sonar is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public 017 * License along with Sonar; if not, write to the Free Software 018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 019 */ 020package org.sonar.wsclient.services; 021 022/** 023 * @author Evgeny Mandrikov 024 */ 025public class Server extends Model { 026 027 public static enum Status { 028 SETUP, 029 UP, 030 DOWN, 031 032 /** 033 * @since 3.3 034 */ 035 MIGRATION_RUNNING 036 } 037 038 private String id; 039 private String version; 040 private Status status; 041 private String statusMessage; 042 043 public String getVersion() { 044 return version; 045 } 046 047 public String getId() { 048 return id; 049 } 050 051 public Server setVersion(String s) { 052 this.version = s; 053 return this; 054 } 055 056 public Server setId(String id) { 057 this.id = id; 058 return this; 059 } 060 061 public Status getStatus() { 062 return status; 063 } 064 065 public String getStatusMessage() { 066 return statusMessage; 067 } 068 069 public Server setStatus(Status status) { 070 this.status = status; 071 return this; 072 } 073 074 public Server setStatusMessage(String statusMessage) { 075 this.statusMessage = statusMessage; 076 return this; 077 } 078 079}