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); } }
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); } }
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; }
+ "routeOffer=" + routeOffer; DME2Manager manager = new DME2Manager("testEndpointPublish", props); manager.setClientCredentials("sh301n", ""); DME2EndpointRegistry svcRegistry = manager.getEndpointRegistry();
dprops = System.getProperties(); dm = this.dm = new DME2Manager("DME2Locator created DME2Manager",dprops); } else { this.dm = dm;
this.access = access; if(dm==null) { dm = this.dm = new DME2Manager("DME2Locator created DME2Manager",System.getProperties()); } else { this.dm = dm;
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; }
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); }
connectTest(dl); dm = new DME2Manager("DME2Manager",pa.getProperties());
connectTest(dl); dm = new DME2Manager("DME2Manager",pa.getProperties());