KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > config > DistributedMethodSpec


1 /*
2  * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.object.config;
6
7 public class DistributedMethodSpec {
8
9   private final String JavaDoc methodExpression;
10   private final boolean runOnAllNodes;
11
12   public DistributedMethodSpec(final String JavaDoc methodExpression, final boolean runOnAllNodes) {
13     this.methodExpression = methodExpression;
14     this.runOnAllNodes = runOnAllNodes;
15   }
16
17   public String JavaDoc getMethodExpression() {
18     return methodExpression;
19   }
20
21   public boolean runOnAllNodes() {
22     return runOnAllNodes;
23   }
24
25   public String JavaDoc toString() {
26     return "DistributedMethodSpec{methodExpression=" + methodExpression + ", runOnAllNodes=" + runOnAllNodes + "}";
27   }
28 }
29
Popular Tags