1 51 52 package org.objectweb.jass.hls.ont; 53 54 import javax.activity.coordination.ServiceManager; 55 import javax.activity.coordination.SignalSet; 56 import javax.activity.coordination.SubordinateSignalSet; 57 import javax.activity.coordination.RecoverableAction; 58 import javax.activity.*; 59 import javax.activity.propertygroup.PropertyGroupManager; 60 import java.io.Serializable ; 61 62 70 public class ONTServiceManager implements ServiceManager { 71 72 public static String SERVICE_NAME = "javax.activity.opennested"; 73 74 private ServiceInformation serviceInfo; 75 76 80 public ONTServiceManager() { 81 serviceInfo = 82 new ServiceInformation(SERVICE_NAME, null, (Serializable ) null); 83 } 84 85 87 90 public ServiceInformation getServiceInformation() { 91 return serviceInfo; 92 } 93 94 99 public SignalSet getSignalSet(String signalSetName) 100 throws SignalSetUnknownException, NoImplementException { 101 102 if (!signalSetName.equals(ONTCompletionSS.COMPLETION_SS_NAME)) 103 throw new SignalSetUnknownException(); 104 return new ONTCompletionSS(); 106 } 107 108 111 public SubordinateSignalSet getSubordinateSignalSet(String signalSetName) 112 throws SignalSetUnknownException, NoImplementException { 113 return null; 114 } 115 116 119 public PropertyGroupManager getPropertyGroupManager(String propertyGroupName) 120 throws PropertyGroupUnknownException { 121 return null; 122 } 123 124 127 public String [] getPropertyGroupNames() { 128 return null; 129 } 130 131 134 public String getCompletionSignalSetName() { 135 return ONTCompletionSS.COMPLETION_SS_NAME; 136 } 137 138 141 public int getActivityType() { 142 return 2; 143 } 144 145 148 public void activityImported(ServiceInformation serviceInfo) { 149 } 150 151 154 155 public SignalSet[] recoverSignalSets(GlobalId globalId) 156 throws ActivityCompletedException, SystemException { 157 return null; 158 } 159 160 163 public RecoverableAction[] recoverActions( 164 GlobalId globalId, 165 String signalSetName) 166 throws SignalSetUnknownException, ActivityCompletedException, SystemException { 167 return new RecoverableAction[0]; 168 } 169 170 } 171 | Popular Tags |