use of org.ow2.proactive.resourcemanager.common.util.RMListenerProxy in project scheduling by ow2-proactive.
the class RMProxyUserInterfaceTest method createRMCachingProxyUserInterface.
private RMListenerProxy createRMCachingProxyUserInterface() throws Exception {
RMListenerProxy proxyUserInterface = PAActiveObject.newActive(RMListenerProxy.class, new Object[] {});
final RMAuthentication auth = rmHelper.getRMAuth();
final PublicKey pubKey = auth.getPublicKey();
final Credentials adminCreds = Credentials.createCredentials(new CredData(TestUsers.TEST.username, TestUsers.TEST.password), pubKey);
proxyUserInterface.init(RMTHelper.getLocalUrl(), adminCreds);
return proxyUserInterface;
}
Aggregations