]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.specs/src/main/java/org/argeo/slc/execution/SlcAgentDescriptor.java
Remove SlcExecution and process packages
[gpl/argeo-slc.git] / runtime / org.argeo.slc.specs / src / main / java / org / argeo / slc / execution / SlcAgentDescriptor.java
1 /*
2 * Copyright (C) 2007-2012 Argeo GmbH
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.argeo.slc.execution;
17
18 import java.io.Serializable;
19 import java.util.ArrayList;
20 import java.util.List;
21
22
23 public class SlcAgentDescriptor implements Cloneable, Serializable {
24 private static final long serialVersionUID = 1L;
25 private String uuid;
26 private String host;
27 private List<ExecutionModuleDescriptor> moduleDescriptors = new ArrayList<ExecutionModuleDescriptor>();
28
29 public SlcAgentDescriptor() {
30
31 }
32
33 public SlcAgentDescriptor(SlcAgentDescriptor template) {
34 uuid = template.uuid;
35 host = template.host;
36 moduleDescriptors.addAll(template.moduleDescriptors);
37 }
38
39 public String getUuid() {
40 return uuid;
41 }
42
43 public void setUuid(String uuid) {
44 this.uuid = uuid;
45 }
46
47 public String getHost() {
48 return host;
49 }
50
51 public void setHost(String host) {
52 this.host = host;
53 }
54
55 public List<ExecutionModuleDescriptor> getModuleDescriptors() {
56 return moduleDescriptors;
57 }
58
59 public void setModuleDescriptors(
60 List<ExecutionModuleDescriptor> modulesDescriptors) {
61 this.moduleDescriptors = modulesDescriptors;
62 }
63
64 @Override
65 public String toString() {
66 return host + " #" + uuid;
67 }
68 }