BfsFileSync lookupFile(String path) { if (path.startsWith("bfs:")) { path = path.substring("bfs:".length()); } if (path.startsWith("//")) { } else if (path.startsWith("/")) { path = "//" + path; } return _rootServiceRef.service(path).as(BfsFileSync.class); }
protected BfsFileSync lookupFile(String fullPath) { return _root.service(fullPath).as(BfsFileSync.class); }
StoreSync<?> lookup(String path) { return _self.service(_scheme + "://" + _podName + path).as(StoreSync.class); }
protected BfsPath(BfsPathRoot rootPath, ServiceRef rootServiceRef, String userPath, String newPath) { super(rootPath, userPath, newPath); Objects.requireNonNull(rootPath); Objects.requireNonNull(rootServiceRef); _root = rootPath; _rootServiceRef = rootServiceRef; if (newPath.startsWith("/") && ! newPath.startsWith("//")) { newPath = "//" + newPath; } _file = rootServiceRef.service(newPath).as(BfsFileSync.class); Objects.requireNonNull(_file); }
@OnInit public void onInit(Result<Void> result) { _self = ServiceRef.current().service(_id).as(RabbitPipeImpl.class); try { _config = RabbitConfig.from(_c, _id); if (_logger.isLoggable(Level.FINE)) { _logger.log(Level.FINE, "onInit: " + _id + ", " + _config); } connect(); result.ok(null); } catch (Exception e) { _logger.log(Level.WARNING, "onInit: cannot connect, " + _id + ", " + _config, e); result.fail(e); } }
ServiceRef parentRef = inbox.serviceRef(); Object childLookup = parentRef.service(_keyPath);
ServiceRef parentRef = inbox.serviceRef(); Object childLookup = parentRef.service(_keyPath);