congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DME2Manager.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.att.aft.dme2.api.DME2Manager
constructor

Best Java code snippets using com.att.aft.dme2.api.DME2Manager.<init> (Showing top 10 results out of 315)

origin: com.att.cadi/cadi-aaf

private DME2Manager newManager(PropAccess access) throws CadiException {
  Properties props = access.getDME2Properties();
  // Critical that TLS Settings not ignored
  try {
    return new DME2Manager("AAFCon",props);
  } catch (DME2Exception e) {
    throw new CadiException(e);
  }
}
origin: org.onap.aaf.cadi/cadi-aaf

private DME2Manager newManager(PropAccess access) throws CadiException {
  Properties props = access.getDME2Properties();
  // Critical that TLS Settings not ignored
  try {
    return new DME2Manager("AAFCon",props);
  } catch (DME2Exception e) {
    throw new CadiException(e);
  }
}
origin: org.onap.aaf.cadi/cadi-client

public DME2Locator(Access access, DME2Manager dm, String service, String version, String envContext, String routeOffer, boolean removeSelf) throws DME2Exception, UnknownHostException, LocatorException {
  this.access = access;
  if(dm==null) {
    this.dm = new DME2Manager("DME2Locator created DME2Manager",System.getProperties());
  } else {
    this.dm = dm;
  }
  this.service = service;
  this.version = version;
  this.envContext = envContext;
  this.routeOffer = routeOffer;
  refresh();
  if(thisMachine==null) {
    // Can't get from dm... 
    thisMachine = InetAddress.getLocalHost().getHostName();
    thisPort = 0;
  } else {
    thisPort = dm.getPort();
  }
  this.removeSelf = removeSelf;
}
origin: org.onap.dmaap.messagerouter.msgrtr/msgrtr

    + "routeOffer=" + routeOffer;
DME2Manager manager = new DME2Manager("testEndpointPublish", props);
manager.setClientCredentials("sh301n", "");
DME2EndpointRegistry svcRegistry = manager.getEndpointRegistry();
origin: org.onap.aaf.cadi/cadi-client

    dprops = System.getProperties();
  dm = this.dm = new DME2Manager("DME2Locator created DME2Manager",dprops);
} else {
  this.dm = dm;
origin: org.onap.aaf.cadi/cadi-client

this.access = access;
if(dm==null) {
  dm = this.dm = new DME2Manager("DME2Locator created DME2Manager",System.getProperties());
} else {
  this.dm = dm;
origin: org.onap.aaf.cadi/cadi-client

public DME2Locator(Access access, DME2Manager dm, String service, String version, String envContext, String routeOffer, boolean removeSelf) throws DME2Exception, UnknownHostException, LocatorException {
  this.access = access;
  if(dm==null) {
    this.dm = new DME2Manager("DME2Locator created DME2Manager",System.getProperties());
  } else {
    this.dm = dm;
  }
  this.service = service;
  this.version = version;
  this.envContext = envContext;
  this.routeOffer = routeOffer;
  refresh();
  DME2Server server = dm.getServer(); 
  if(server == null) {
    thisMachine = InetAddress.getLocalHost().getHostName();
    thisPort = 0;
  } else {
    try {
      thisMachine = server.getServerProperties().getHostname();
      //thisPort = server.getPort();
      thisPort = server.getServerProperties().getPort();
    } catch(NullPointerException np) { // BAD BOY, DME2...
      access.log(Level.ERROR, "WARNING: DME2 threw a NullPointer Exception getting Server Machine and Port");
      thisMachine = InetAddress.getLocalHost().getHostName();
      thisPort = 0;
    }
  }
  this.removeSelf = removeSelf;
}
origin: org.onap.aaf.cadi/cadi-client

public AAFClient(RosettaEnv env) throws Exception {
  this.env = env;
  Access access = new EnvAccess(env);
  String user = access.getProperty(Config.AAF_MECHID,null);
  String password = access.decrypt(access.getProperty(Config.AAF_MECHPASS,null), true);
  
  SecurityInfoC<HttpURLConnection> si = new SecurityInfoC<HttpURLConnection>(access);
  DME2Manager dm = new DME2Manager("APIclient DME2Manager", System.getProperties());
  DME2Locator loc = new DME2Locator(access, dm, access.getProperty(Config.AAF_URL,null));
  int TIMEOUT = Integer.parseInt(access.getProperty(Config.AAF_CONN_TIMEOUT, "30000"));
  hman = new HMangr(access, loc).readTimeout(TIMEOUT).apiVersion("2.0");
  ss = new HBasicAuthSS(user, password, si);
}
origin: com.att.cadi/cadi-aaf

connectTest(dl);
dm =  new DME2Manager("DME2Manager",pa.getProperties());
origin: org.onap.aaf.cadi/cadi-aaf

connectTest(dl);
dm =  new DME2Manager("DME2Manager",pa.getProperties());
com.att.aft.dme2.apiDME2Manager<init>

Popular methods of DME2Manager

  • refresh
  • getDefaultInstance
  • getEndpointRegistry
  • newClient
  • findEndpoints
  • getConfig
  • getEndpoints
  • getHostname
  • getPort
  • getServer
  • setClientCredentials
  • setClientCredentials

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 14 Best Plugins for Eclipse
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