/** * Get a subregistry. * @param cid The platform id. * @return The registry. */ public IServiceRegistry getSubregistry(final IComponentIdentifier cid) { return (IServiceRegistry)readActionSync(new IResultCommand<Object, Void>() { public Object execute(Void args) { IServiceRegistry ret = delegate.getSubregistry(cid); return ret; } }, "getSubregistry"); }
/** * Test if a service is included. * @param ser The service. * @return True if is included. */ public boolean isIncluded(final IComponentIdentifier cid, final IService ser) { // return delegate.isIncluded(cid, ser); return (Boolean)readActionSync(new IResultCommand<Object, Void>() { public Object execute(Void args) { boolean ret = delegate.isIncluded(cid, ser); return ret; } }, "isIncluded"); }
/** * todo: WARNING: dangerous method that exposes the internal data structure * Get the service map. * @return The full service map. */ public Map<ClassInfo, Set<IService>> getServiceMap() { return (Map<ClassInfo, Set<IService>>)readActionSync(new IResultCommand<Object, Void>() { public Object execute(Void args) { Map<ClassInfo, Set<IService>> ret = delegate.getServiceMap(); return ret; } }, "getServiceMap"); }
/** * Get queries per type. * @param type The interface type. If type is null all services are returned. * @return The queries. */ public <T> Set<ServiceQueryInfo<T>> getQueries(final ClassInfo type) { return (Set<ServiceQueryInfo<T>>)readActionSync(new IResultCommand<Object, Void>() { public Object execute(Void args) { Set<ServiceQueryInfo<T>> ret = delegate.getQueries(type); return ret; } }, "getQueries"); }
/** * Search for services. */ public <T> Collection<T> searchServices(final ClassInfo type, final IComponentIdentifier cid, final String scope) { return (Collection<T>)readActionSync(new IResultCommand<Object, Void>() { public Object execute(Void args) { return delegate.searchServices(type, cid, scope); } public String toString() { return "searchServicesStep: "+type+" "+readercnt; } }, "searchServices"); }
/** * Search for service. */ public <T> T searchService(final ClassInfo type, final IComponentIdentifier cid, final String scope, final IFilter<T> filter) { return (T)readActionSync(new IResultCommand<Object, Void>() { public Object execute(Void args) { return delegate.searchService(type, cid, scope, filter); } public String toString() { return "searchService2Step: "+type+" "+readercnt; } }, "searchService2"); }
/** * Search for service. */ public <T> Collection<T> searchServices(final ClassInfo type, final IComponentIdentifier cid, final String scope, final IFilter<T> filter) { return (Collection<T>)readActionSync(new IResultCommand<Object, Void>() { public Object execute(Void args) { return delegate.searchServices(type, cid, scope, filter); } public String toString() { return "searchServices2Step: "+type+" "+readercnt; } }, "searchServices2"); }
/** * Search for services. */ // read public <T> T searchService(final ClassInfo type, final IComponentIdentifier cid, final String scope, final boolean excluded) { return (T)readActionSync(new IResultCommand<Object, Void>() { public Object execute(Void args) { return delegate.searchService(type, cid, scope, excluded); } public String toString() { return "searchServiceStep: "+type+" "+readercnt; } }, "searchService"); }
return (ISubscriptionIntermediateFuture)readActionSync(new IResultCommand<Object, Void>()
return (IFuture<T>)readActionSync(new IResultCommand<Object, Void>()
return (IFuture<T>)readActionSync(new IResultCommand<Object, Void>() return (ISubscriptionIntermediateFuture)readActionSync(new IResultCommand<Object, Void>()