Looking up a Secured Engine Using the API

The following code snippet demonstrates how to look up a secured engine with the API:

//  The registry port, host name, and engine name of the engine to look up.
//    These configuration options are only used for looking up the remote security.
Configuration remoteConfig = fluxFactory.makeConfiguration();
//   Look up the remote security. This method will look up a remote security
//  object that is associated with the engine running at the port, host, and
//  server specified in the "remoteConfig" object.
RemoteSecurity remoteSecurity = fluxFactory.lookupRemoteSecurity(remoteConfig);
//  Logging in to the remote security returns a reference to the engine.
Engine engine = remoteSecurity.login("admin""admin");
Was this article helpful?
0 out of 0 found this helpful



Please sign in to leave a comment.