oracle.dmt.odm
Class DataMiningServer
java.lang.Object
|
+--oracle.dmt.odm.DataMiningServer
- public class DataMiningServer
- extends java.lang.Object
An instance of DataMiningServer
is used as a proxy to create
connections to a Data Mining Server.
- Since:
- 9.0.1
DataMiningServer(java.lang.String url,
java.lang.String userName,
java.lang.String password)
Creates a Data Mining Server with specified information. |
DataMiningServer(java.lang.String url,
java.lang.String userName,
java.lang.String password,
java.util.Locale locale)
Creates a Data Mining Server with specified information. |
Type | Method |
Connection |
login()
Given the parameters set in the Data Mining Server instance, logs into
the server and returns a Connection instance. |
void |
logout(Connection connection)
Closes the specified connection to the Data Mining Server. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataMiningServer
public DataMiningServer(java.lang.String url,
java.lang.String userName,
java.lang.String password)
throws InvalidArgumentException
- Creates a Data Mining Server with specified information.
- Parameters:
url
- URL (jdbc:oracle:thin:@host:port:sid)userName
- user idpassword
- user password- Throws:
InvalidArgumentException
- is thrown
- when the url/userName/password are null
- when the userName/password length >30 characters
- when the url is invalid
DataMiningServer
public DataMiningServer(java.lang.String url,
java.lang.String userName,
java.lang.String password,
java.util.Locale locale)
throws InvalidArgumentException
- Creates a Data Mining Server with specified information.
- Parameters:
url
- URL (jdbc:oracle:thin:@host:port:sid)userName
- user idpassword
- user passwordloc
- locale- Throws:
InvalidArgumentException
- is thrown
- when the url/userName/password are null
- when the userName/password length >30 characters
- when the url is invalid
login
public Connection login()
throws ODMException
- Given the parameters set in the Data Mining Server instance, logs into
the server and returns a
Connection
instance.
- Returns:
- Connection - Connection to be used for subsequent access to the Data mining Server.
- Throws:
ODMException
- is thrown
- when login fails
logout
public void logout(Connection connection)
throws InvalidArgumentException,
ODMException
- Closes the specified connection to the Data Mining Server. The connection cannot be reused after logout.
- Parameters:
connection
- - a valid connection to a Data Mining Server.- Throws:
InvalidArgumentException
- is thrown
- when the connection is nullODMException
- is thrown
- when logout fails