01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.object.config;
06:
07: public class DistributedMethodSpec {
08:
09: private final String methodExpression;
10: private final boolean runOnAllNodes;
11:
12: public DistributedMethodSpec(final String methodExpression,
13: final boolean runOnAllNodes) {
14: this .methodExpression = methodExpression;
15: this .runOnAllNodes = runOnAllNodes;
16: }
17:
18: public String getMethodExpression() {
19: return methodExpression;
20: }
21:
22: public boolean runOnAllNodes() {
23: return runOnAllNodes;
24: }
25:
26: public String toString() {
27: return "DistributedMethodSpec{methodExpression="
28: + methodExpression + ", runOnAllNodes=" + runOnAllNodes
29: + "}";
30: }
31: }
|