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

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • String (java.lang)
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JCheckBox (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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