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

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


    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());
      }
      Properties propertiesMeta = sss.get(meta);
      Iterator<Entry<Object, Object>> iteratorMeta = propertiesMeta.entrySet().iterator();
      while(iteratorMeta.hasNext()) {
        Entry<Object, Object> entryMeta = iteratorMeta.next();
        System.out.println(meta+":"+entryMeta.getKey()+"="+entryMeta.getValue());
      }
View Full Code Here


      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);
        }
      }
      map = mapRevised;
View Full Code Here

    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++;
        Properties propertiesSvc = entry.get(IStateServices.svc);
        Properties propertiesMeta = entry.get(IStateServices.meta);
        String name = getValue(propertiesMeta,IServicesRegistry.endpoint,"");
        String user = getValue(propertiesMeta,IServicesRegistry.user,"");
        String sid = getValue(propertiesMeta,IServicesRegistry.numeric_id,"");
        String instances = getValue(propertiesMeta,IStateServices.instances,"");
        String deployments = getDeployments(servicesRegistry,propertiesMeta);
View Full Code Here

TOP

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

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.