Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1595)

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/ServerStatus.java

Issue 303233007: First cut at server timing tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed some bugs, added tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/ServerStatus.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/ServerStatus.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/ServerStatus.java
new file mode 100644
index 0000000000000000000000000000000000000000..1f0c1185360bbbffa711daea9c198fe34a7f9bc5
--- /dev/null
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/ServerStatus.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 2014, the Dart project authors.
+ *
+ * Licensed under the Eclipse Public License v1.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.eclipse.org/legal/epl-v10.html
+ *
+ * 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 com.google.dart.server;
+
+/**
+ * Instances of the class {@code ServerStatus} represent the current state of the server.
+ *
+ * @coverage dart.server
+ */
+public class ServerStatus {
+ /**
+ * The current status of analysis.
+ */
+ private AnalysisStatus analysisStatus;
+
+ /**
+ * Initialize a newly created status object.
+ */
+ public ServerStatus() {
+ super();
+ }
+
+ /**
+ * Return the current status of analysis, or {@code null} if the analysis status was not included
+ * in the status that was reported.
+ *
+ * @return the current status of analysis
+ */
+ public AnalysisStatus getAnalysisStatus() {
+ return analysisStatus;
+ }
+
+ /**
+ * Set the current status of analysis to the given status.
+ *
+ * @param analysisStatus the current status of analysis
+ */
+ public void setAnalysisStatus(AnalysisStatus analysisStatus) {
+ this.analysisStatus = analysisStatus;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698