Changeset 92 for branches/supervisor/src/main/java/omq/supervisor
- Timestamp:
- 10/01/13 12:02:41 (11 years ago)
- Location:
- branches/supervisor/src/main/java/omq/supervisor
- Files:
-
- 2 added
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/supervisor/src/main/java/omq/supervisor/OmqSettings.java
r91 r92 1 1 package omq.supervisor; 2 2 3 import java.io.Serializable; 3 4 import java.util.Properties; 4 5 5 public class OmqSettings { 6 public class OmqSettings implements Serializable { 7 8 6 9 10 /** 11 * 12 */ 13 private static final long serialVersionUID = 1L; 7 14 private String reference; 8 15 private String className; -
branches/supervisor/src/main/java/omq/supervisor/Supervisor.java
r91 r92 1 1 package omq.supervisor; 2 2 3 import java.util.Map; 4 import java.util.Set; 3 import omq.Remote; 5 4 6 import omq.common.broker.RemoteBroker; 5 public interface Supervisor extends Remote { 7 6 8 public class Supervisor { 7 public void subscribe(String brokerName) throws Exception; 9 8 10 private Set<String> bindReferences; 11 private Map<String, RemoteBroker> brokers; 9 public void spawnObject(OmqSettings settings) throws Exception; 12 10 13 private void checkObject() {14 String reference = null;15 16 int numObjects = 0;17 18 if(minObjects > numObjects || maxMessages < numEncuats){19 spawn:20 pregunta a tots i qui no té l'objecte li poses21 }else if(numEncuats < minMessages && minObjects > numObjects){22 delete:23 pregunta a tots i qui té l'objecte li treus24 }25 }26 11 }
Note: See TracChangeset
for help on using the changeset viewer.