You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ru...@apache.org on 2009/08/24 13:34:54 UTC
svn commit: r807155 -
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/ServerState.java
Author: ruwan
Date: Mon Aug 24 11:34:53 2009
New Revision: 807155
URL: http://svn.apache.org/viewvc?rev=807155&view=rev
Log:
Adding toString to server state
Modified:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/ServerState.java
Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/ServerState.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/ServerState.java?rev=807155&r1=807154&r2=807155&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/ServerState.java (original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/ServerState.java Mon Aug 24 11:34:53 2009
@@ -1,32 +1,63 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.synapse;
-
-/**
- * Represents the server states
- */
-
-public enum ServerState {
- UNDETERMINED,
- INITIALIZABLE,
- INITIALIZED,
- MAINTENANCE,
- STARTED,
- STOPPED
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.synapse;
+
+/**
+ * Represents the server states
+ */
+
+public enum ServerState {
+
+ UNDETERMINED {
+ public String toString() {
+ return "UNDETERMINED";
+ }
+ },
+
+ INITIALIZABLE {
+ public String toString() {
+ return "INITIALIZABLE";
+ }
+ },
+
+ INITIALIZED {
+ public String toString() {
+ return "INITIALIZED";
+ }
+ },
+
+ MAINTENANCE {
+ public String toString() {
+ return "MAINTENANCE";
+ }
+ },
+
+ STARTED {
+ public String toString() {
+ return "STARTED";
+ }
+ },
+
+ STOPPED {
+ public String toString() {
+ return "STOPPED";
+ }
+ }
+}
+