public void run(){ try { callback.success(syncService.getProgress(topicId)); } catch (Exception e) { callback.error(e); } } });
public void registerProgressHandler(Long topicId, ProgressHandler progressHandler) { try { if (!progressListeners.containsKey(topicId)) { progressListeners.put(topicId, new HashSet<ProgressHandler>()); } progressListeners.get(topicId).add(progressHandler); bimServerClient.getRegistry().registerProgressHandler(topicId, getEndpointid()); } catch (UserException e) { LOGGER.error("", e); } catch (ServerException e) { LOGGER.error("", e); } catch (PublicInterfaceNotFoundException e) { LOGGER.error("", e); } }
public void unregisterProgressHandler(Long topicId, ProgressHandler progressHandler) { try { if (!progressListeners.containsKey(topicId)) { progressListeners.put(topicId, new HashSet<ProgressHandler>()); } progressListeners.get(topicId).remove(progressHandler); bimServerClient.getRegistry().unregisterProgressHandler(topicId, getEndpointid()); } catch (UserException e) { LOGGER.error("", e); } catch (ServerException e) { LOGGER.error("", e); } catch (PublicInterfaceNotFoundException e) { LOGGER.error("", e); } }
public void run(){ try { syncService.registerChangeProgressOnRevision(endPointId, roid, poid); callback.success(); } catch (Exception e) { callback.error(e); } } });
public void run(){ try { syncService.registerChangeProgressOnServer(endPointId); callback.success(); } catch (Exception e) { callback.error(e); } } });
public void run(){ try { syncService.registerChangeProgressOnProject(endPointId, poid); callback.success(); } catch (Exception e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getProgressTopicsOnRevision(poid, roid)); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getProgressTopicsOnProject(poid)); } catch (Exception e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getProgressTopicsOnServer()); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.registerNewExtendedDataOnRevisionHandler(endPointId, roid); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.registerChangeProgressOnRevision(endPointId, roid, poid); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.registerChangeProgressOnServer(endPointId); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.registerChangeProgressOnProject(endPointId, poid); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getProgressTopicsOnRevision(poid, roid)); } catch (Exception e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getProgressTopicsOnProject(poid)); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getProgressTopicsOnServer()); } catch (Exception e) { callback.error(e); } } });
public void run(){ try { callback.success(syncService.getProgress(topicId)); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.unregisterProgressHandler(topicId, endPointId); callback.success(); } catch (Throwable e) { callback.error(e); } } });
public void run(){ try { syncService.registerProgressHandler(topicId, endPointId); callback.success(); } catch (Exception e) { callback.error(e); } } });
private void waitForDonePreparing(long topicId) throws UserException, ServerException, PublicInterfaceNotFoundException { for (int i = 0; i < 10; i++) { SLongActionState progress = bimServerClient.getRegistry().getProgress(topicId); if (progress != null) { if (progress.getTitle() != null && progress.getTitle().equals("Done preparing")) { break; } else if (progress.getState() == SActionState.AS_ERROR) { throw new UserException(Joiner.on(", ").join(progress.getErrors())); } } try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } } }