Permalink
Browse files

The specific context for VMM requests

  • Loading branch information...
1 parent d732c3c commit 3bb2d747559e501d9e9dd1ba07888a7ac799a862 @carlasouza carlasouza committed Jul 21, 2011
@@ -0,0 +1,48 @@
+package org.globus.workspace.service.impls.async;
+
+
+import org.globus.workspace.Lager;
+import org.globus.workspace.TempLocator;
+
+public class VMMRequestContext {
+
+ private final int id;
+ private final String name;
+ private final TempLocator locator;
+ private final Lager lager;
+
+ public VMMRequestContext(int id,
+ String name,
+ TempLocator aLocator,
+ Lager lagerImpl) {
+
+ this.id = id;
+ this.name = name;
+
+ if (aLocator == null) {
+ throw new IllegalArgumentException("aLocator may not be null");
+ }
+ this.locator = aLocator;
+
+ if (lagerImpl == null) {
+ throw new IllegalArgumentException("lagerImpl may not be null");
+ }
+ this.lager = lagerImpl;
+ }
+
+ public int getId() {
+ return this.id;
+ }
+
+ public String getName() {
+ return this.name;
+ }
+
+ public TempLocator getLocator() {
+ return this.locator;
+ }
+
+ public Lager lager() {
+ return this.lager;
+ }
+}

0 comments on commit 3bb2d74

Please sign in to comment.