Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(725)

Unified Diff: bundles/http/src/main/java/org/sakaiproject/nakamura/api/http/cache/Operation.java

Issue 5350045: OAE 1.0 Clustering Part I of N
Patch Set: Created 12 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: bundles/http/src/main/java/org/sakaiproject/nakamura/api/http/cache/Operation.java
diff --git a/bundles/http/src/main/java/org/sakaiproject/nakamura/api/http/cache/Operation.java b/bundles/http/src/main/java/org/sakaiproject/nakamura/api/http/cache/Operation.java
new file mode 100644
index 0000000000000000000000000000000000000000..deb0c33514bf5ea3d32ab2704d3e10d5495a4565
--- /dev/null
+++ b/bundles/http/src/main/java/org/sakaiproject/nakamura/api/http/cache/Operation.java
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Sakai Foundation (SF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The SF 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.sakaiproject.nakamura.api.http.cache;
+
+import java.io.Serializable;
+
+
+public class Operation implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -5070931567527463763L;
+ private int op;
+ private Object[] v;
+
+ public Operation(int op, Object ... values) {
+ this.op = op;
+ this.v = values;
+ }
+
+ public int getOperation() {
+ return op;
+ }
+
+ @SuppressWarnings("unchecked")
+ public <T> T get(int i) {
+ return (T) v[i];
+ }
+
+}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b