- Timestamp:
- 10/15/13 13:21:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/supervisor/src/main/java/omq/common/broker/RemoteBrokerImpl.java
r92 r103 6 6 7 7 import omq.exception.RemoteException; 8 import omq.exception.RetryException; 8 9 import omq.server.RemoteObject; 9 10 … … 43 44 44 45 @Override 45 public boolean hasObject(String reference) {46 public boolean hasObject(String reference) throws RetryException { 46 47 return getBroker().getRemoteObjs().containsKey(reference); 47 48 } 48 49 50 @Override 51 public HasObject hasObjectInfo(String reference) throws RetryException { 52 if (getBroker().getRemoteObjs().containsKey(reference)) { 53 RemoteObject r = getBroker().getRemoteObjs().get(reference); 54 int numThreads = r.getPool().getWorkers().size(); 55 return new HasObject(this.getRef(), reference, true, numThreads); 56 } 57 return new HasObject(this.getRef(), reference, false, 0); 58 } 59 49 60 }
Note: See TracChangeset
for help on using the changeset viewer.