congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DME2Manager.refresh
Code IndexAdd Tabnine to your IDE (free)

How to use
refresh
method
in
com.att.aft.dme2.api.DME2Manager

Best Java code snippets using com.att.aft.dme2.api.DME2Manager.refresh (Showing top 5 results out of 315)

origin: org.onap.aaf.cadi/cadi-client

@Override
public void invalidate() throws CadiException {
  try {
    manager.refresh();
  } catch (Exception e) {
    throw new CadiException(e);
  }
}
origin: org.onap.aaf.cadi/cadi-client

  @Override
  public boolean refresh() {
    try {
      dm.refresh();
      //endpoints = dm.findEndpoints(service, version, envContext, routeOffer, true);
      if(removeSelf) {
//                for(int i=0;i<endpoints.length;++i) {
//                    if(endpoints[i].getPort()==thisPort && endpoints[i].getHost().equals(thisMachine))
//                        endpoints[i]=null;
        }
      //}
      //return endpoints.length!=0;
    } catch (Exception e) {
      access.log(Level.ERROR, e.getMessage());
    }
    return false;
  }
 
origin: org.onap.aaf.cadi/cadi-client

@Override
public boolean refresh() {
  try {
    dm.refresh();
    endpoints = dm.findEndpoints(service, version, envContext, routeOffer, true);
    if(removeSelf) {
      for(int i=0;i<endpoints.length;++i) {
        if(endpoints[i].getPort()==thisPort && endpoints[i].getHost().equals(thisMachine))
          endpoints[i]=null;
      }
    }
    return endpoints.length!=0;
  } catch (Exception e) {
    access.log(Level.ERROR, e.getMessage());
  }
  return false;
}
origin: com.att.cadi/cadi-aaf

@Override
public <RET> RET best(Retryable<RET> retryable) throws LocatorException, CadiException, APIException {
  // NOTE: DME2 had Retry Logic embedded lower.  
  try {
    return (retryable.code(rclient(initURI,ss)));
  } catch (ConnectException e) {
    // DME2 should catch
    try {
      manager.refresh();
    } catch (Exception e1) {
      throw new CadiException(e1);
    }
    throw new CadiException(e);
  }
}

origin: org.onap.aaf.cadi/cadi-aaf

@Override
public <RET> RET best(Retryable<RET> retryable) throws LocatorException, CadiException, APIException {
  // NOTE: DME2 had Retry Logic embedded lower.  
  try {
    return (retryable.code(rclient(initURI,ss)));
  } catch (ConnectException e) {
    // DME2 should catch
    try {
      manager.refresh();
    } catch (Exception e1) {
      throw new CadiException(e1);
    }
    throw new CadiException(e);
  }
}
 
com.att.aft.dme2.apiDME2Managerrefresh

Popular methods of DME2Manager

  • <init>
  • getDefaultInstance
  • getEndpointRegistry
  • newClient
  • findEndpoints
  • getConfig
  • getEndpoints
  • getHostname
  • getPort
  • getServer
  • setClientCredentials
  • setClientCredentials

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BoxLayout (javax.swing)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now