Package org.apache.uima.ducc.common.persistence.services

Examples of org.apache.uima.ducc.common.persistence.services.StateServicesDirectory


 
  public void refreshCache() {
    try {
      ServicesRegistryMap mapRevised = new ServicesRegistryMap();
      IStateServices iss = StateServices.getInstance();
      StateServicesDirectory ssd = iss.getStateServicesDirectory();
      if(!ssd.getDescendingKeySet().isEmpty()) {
        for(Integer key : ssd.getDescendingKeySet()) {
          StateServicesSet entry = ssd.get(key);
          Properties propertiesSvc = entry.get(IServicesRegistry.svc);
          Properties propertiesMeta = entry.get(IServicesRegistry.meta);
          ServicesRegistryMapPayload value = new ServicesRegistryMapPayload(propertiesSvc, propertiesMeta);
          mapRevised.put(key, value);
        }
View Full Code Here


    }
    ArrayList<String> metaList = ss.getMetaList();
    for(String fname : metaList) {
      System.out.println(fname);
    }
    StateServicesDirectory ssd = ss.getStateServicesDirectory();
    NavigableSet<Integer> keySet = ssd.getDescendingKeySet();
    Iterator<Integer> iterator = keySet.iterator();
    while(iterator.hasNext()) {
      Integer i = iterator.next();
      StateServicesSet sss = ssd.get(i);
      Properties propertiesSvc = sss.get(svc);
      Iterator<Entry<Object, Object>> iteratorSvc = propertiesSvc.entrySet().iterator();
      while(iteratorSvc.hasNext()) {
        Entry<Object, Object> entrySvc = iteratorSvc.next();
        System.out.println(svc+":"+entrySvc.getKey()+"="+entrySvc.getValue());
View Full Code Here

    ArrayList<String> users = getServicesUsers(request);
   
    ServicesRegistry servicesRegistry = ServicesRegistry.getInstance();
   
    IStateServices iss = StateServices.getInstance();
    StateServicesDirectory ssd = iss.getStateServicesDirectory();
    int nac = 0;
    if(ssd.getDescendingKeySet().size() > 0) {
      for(Integer key : ssd.getDescendingKeySet()) {
        StateServicesSet entry = ssd.get(key);
        boolean list = DuccWebUtil.isListable(request, users, maxRecords, nac, entry);
        if(!list) {
          continue;
        }
        nac++;
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.common.persistence.services.StateServicesDirectory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.