01: /*
02: * Copyright 2004-2005 OpenSymphony
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy
06: * of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations
14: * under the License.
15: *
16: */
17:
18: /*
19: * Previously Copyright (c) 2001-2004 James House
20: */
21: package org.quartz.core;
22:
23: /**
24: * <p>
25: * An object used to pass information about the 'client' to the <code>QuartzScheduler</code>.
26: * </p>
27: *
28: * @see QuartzScheduler
29: *
30: * @author James House
31: */
32: public class SchedulingContext implements java.io.Serializable {
33:
34: /*
35: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36: *
37: * Data members.
38: *
39: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40: */
41:
42: private String instanceId;
43:
44: /*
45: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46: *
47: * Constructors.
48: *
49: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50: */
51:
52: /**
53: * <p>
54: * Construct a SchedulingContext with default values.
55: * </p>
56: */
57: public SchedulingContext() {
58: }
59:
60: /*
61: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
62: *
63: * Interface.
64: *
65: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66: */
67:
68: /**
69: * <p>
70: * get the instanceId in the cluster.
71: * </p>
72: */
73: public String getInstanceId() {
74: return this .instanceId;
75: }
76:
77: /**
78: * <p>
79: * Set the instanceId.
80: * </p>
81: */
82: public void setInstanceId(String instanceId) {
83: this.instanceId = instanceId;
84: }
85:
86: }
|