|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.connection.ZeroConfigWorkspaceServer
public class ZeroConfigWorkspaceServer
A server that IOM Bridge for Java will start and connect to. IOM Bridge for Java will look in the Windows registry for the SAS command and use it to start a workspace server, and it will connect to that workspace server. No Object Spawner nor Metadata server is required. The workspace server will always run under the same user ID as the Java process even if the program passes the user name and password of a different user in the getConnection(userName,password) method. Therefore, it is recommended that you use the getConnection() method with no arguments.
Typical usage:
server = new ZeroConfigWorkspaceServer(); config = new ManualConnectionFactoryConfiguration(server); manager = new ConnectionFactoryManager(); factory = manager.getFactory(config); cred = new SecurityPackageCredential(); cx = factory.getConnection(cred); try {...} finally {cx.close();}
Field Summary |
---|
Constructor Summary | |
---|---|
ZeroConfigWorkspaceServer()
Construct a zero-config workspace server. |
|
ZeroConfigWorkspaceServer(java.lang.String sasCommand)
Construct a zero-config workspace server using the given command to start SAS. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object that)
|
java.lang.String |
getSasCommand()
Get the sasCommand attribute. |
int |
hashCode()
|
void |
setSasCommand(java.lang.String sasCommand)
Set the sasCommand attribute. |
SASURI |
toURI(Credential credential,
java.lang.String cxID)
|
Methods inherited from class com.sas.services.connection.TCPIPServer |
---|
getHost, getNormalizedHost, getPort, setHost, setPort |
Constructor Detail |
---|
public ZeroConfigWorkspaceServer()
public ZeroConfigWorkspaceServer(java.lang.String sasCommand)
sasCommand
- the command to start SASMethod Detail |
---|
public SASURI toURI(Credential credential, java.lang.String cxID)
toURI
in class BridgeServer
public void setSasCommand(java.lang.String sasCommand)
sasCommand
- the sasCommand attributepublic java.lang.String getSasCommand()
public boolean equals(java.lang.Object that)
equals
in class BridgeServer
public int hashCode()
hashCode
in class BridgeServer
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |