]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/lib/vbox/VBoxMachine.java
Introduce ssh file deployment
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / java / org / argeo / slc / lib / vbox / VBoxMachine.java
1 package org.argeo.slc.lib.vbox;
2
3 import org.argeo.slc.UnsupportedException;
4 import org.argeo.slc.build.Distribution;
5 import org.argeo.slc.deploy.DeployedSystem;
6 import org.argeo.slc.deploy.DeploymentData;
7 import org.argeo.slc.deploy.TargetData;
8 import org.springframework.beans.factory.BeanNameAware;
9 import org.springframework.beans.factory.InitializingBean;
10
11 public class VBoxMachine implements DeployedSystem, BeanNameAware,
12 InitializingBean {
13 private String deployedSystemId = null;
14 private String name;
15 private String beanName;
16
17 public String getDeployedSystemId() {
18 return deployedSystemId;
19 }
20
21 public DeploymentData getDeploymentData() {
22 throw new UnsupportedException();
23 }
24
25 public Distribution getDistribution() {
26 throw new UnsupportedException();
27 }
28
29 public TargetData getTargetData() {
30 throw new UnsupportedException();
31 }
32
33 public String getName() {
34 return name;
35 }
36
37 public void setName(String name) {
38 this.name = name;
39 }
40
41 public void setDeployedSystemId(String deployedSystemId) {
42 this.deployedSystemId = deployedSystemId;
43 }
44
45 public void setBeanName(String beanName) {
46 this.beanName = name;
47 }
48
49 public void afterPropertiesSet() throws Exception {
50 if (name == null)
51 name = beanName;
52 }
53
54 }