1 2 package SOFA.Connector.Boot; 3 4 import SOFA.SOFAnode.Run.Deployment.DeplDock; 5 6 10 public class DeplDockSRole extends SOFA.Connector.RoleBaseImpl implements CNDeplDock { 11 12 private SOFA.SOFAnode.Run.Deployment.DeplDock tgt = null; 13 14 public DeplDockSRole() {} 15 16 public void link(Object target) throws SOFA.Connector.LinkException { 17 tgt = (DeplDock) target; 18 } 19 20 public SOFA.SOFAnode.Run.Deployment.TechnologyDescriptor[] describeUnderlyingEnvironment() { 21 return tgt.describeUnderlyingEnvironment(); 22 } 23 24 public SOFA.Connector.Reference instantiate(SOFA.SOFAnode.Run.Deployment.DeploymentDescriptor dd, String name) throws SOFA.SOFAnode.Run.Deployment.DeploymentException { 25 return tgt.instantiate(dd, name); 26 } 27 28 public String [] namesOfAllRunningComponents() { 29 return tgt.namesOfAllRunningComponents(); 30 } 31 32 public String [] namesOfAllRunningApplications() { 33 return tgt.namesOfAllRunningApplications(); 34 } 35 36 public SOFA.Connector.Reference getReference(String name) throws SOFA.SOFAnode.Run.Deployment.DeploymentException { 37 return tgt.getReference(name); 38 } 39 40 public void removeComponent(String name) throws SOFA.SOFAnode.Run.Deployment.DeploymentException { 41 tgt.removeComponent(name); 42 } 43 } 44 | Popular Tags |