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();remoteConfig.setRegistryPort(1099);remoteConfig.setHost("localhost");remoteConfig.setServerName("Flux");// 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"); |
Comments
Please sign in to leave a comment.