|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.FileService.komodo.api.Session
public class Session
Implements the Session session class. The constructor takes a user name and password, security mode, and domain?
| Constructor Summary | |
|---|---|
Session(String domainFile,
int securityModel)
Constructor |
|
Session(String userName,
String password,
String domainFile,
int securityModel)
Constructor |
|
Session(URL domainFile,
int securityModel)
Another constructor |
|
| Method Summary | |
|---|---|
int |
changePassword(String oldPassword,
String newPassword)
Change password. |
int |
close()
Close all clients. |
void |
close(FileType type)
Start closing all file types, disconnect from all servers. |
void |
closeImmediate()
close all file types, disconnect from all servers, wait for close to complete and throw away all pending results. |
void |
closeServerGroup(ServerGroup sg)
Close server group instance. |
void |
dump()
Dump Komodo class to stderr, and any interesting has-a classes. |
boolean |
getAddVFT()
Method to check if user has add vft priv |
Admin |
getAdminConnection(String serverName,
boolean useAdminPort)
Method to connection to an admin session |
static float |
getApiVersion()
Get the api version. |
static String |
getApiVersionString()
Get the api version string. |
LinkedList |
getCapabilities()
method to return a list of capabilities for all file types |
Capability |
getCapabilities(String fileType)
Method to return capabilities specific to the input file type |
LinkedList |
getCapabilitiesForGroup(String group)
Method to return capabilities specific to the input file type |
int |
getConnectionTimeout()
Returns the value of the connection timeout. |
String |
getDefaultGroup()
Get the default server group. |
String |
getDir()
Get directory associated with this session. |
LinkedList |
getFileTypeList()
Deprecated. does not respect server group namespace! |
LinkedList |
getFileTypeList(String groupName)
Get a sorted list of file types from a server group. |
String |
getFTServerGroup(String fileTypeName)
Deprecated. method not server group namespace aware |
LinkedList |
getGroupList()
Get a sorted list of server group names. |
boolean |
getOption(int option)
Method to return the option value |
String |
getPassword()
Get password for this Komodo session. |
String |
getRegistry()
Get restart directory. |
String |
getReplicationRoot()
Get directory associated with this session. |
int |
getSecurityModel()
Get the type of security for this session, e.g.: Kerberos, SSL, none. |
String |
getServerGroup(String serverName)
Method to get a server group name from a server name. |
int |
getTcpEndPort()
Method to get TCP port end value |
int |
getTcpStartPort()
Method to get TCP port start value |
int |
getTransactionCount()
Get the current transaction count. |
int |
getTransactionId()
Get new transaction id. |
int |
getUserAccess()
Get user access, Session.ADMIN, Session.READALL, Session.WRITEALL. |
String |
getUserAccessStr()
Get user access, Session.ADMIN, Session.READALL, Session.WRITEALL. |
String |
getUserName()
Get user name for this Komodo session. |
LinkedList |
getVFTCapabilities()
getVFTCapabilities |
Capability |
getVFTCapabilities(String vft)
Method to return a capability object specific to the input vft |
static void |
init()
optional initialization Call to get a head start on loading classes. |
boolean |
isConnected(String fileTypeName)
Deprecated. does not respect server group namespace! |
boolean |
isConnected(String groupName,
String typeName)
See if a file type already has a server proxy connection. |
boolean |
isGroupDefined(String groupName)
Returns true if servergroup passed in as parameter is defined |
boolean |
isLoggedOn()
Checks if login information is set. |
int |
makeDomainFile(String domainFilePath,
String serverGroup)
Make a domain file. |
FileType |
open(String fileTypeName)
Open a file type |
FileType |
open(String groupName,
String typeName)
Open a file type |
Admin |
openAdmin(String serverName)
Method to open an admin session |
ServerGroup |
openServerGroup(String groupName)
Opens a server group. |
void |
postResult(Result result)
Method to post a result to the result queue. |
Result |
result()
Get the next profile representing a command result. |
Result |
result(int timeDelay)
Get the next profile representing a command result. |
void |
setDefaultGroup(String groupName)
Set the default server group. |
String |
setDirectory(String path)
setDirectory for the session. |
void |
setLoginInfo(String userName,
String password)
Set login information. |
boolean |
setOption(int option,
boolean value)
Method to enable/disable an option |
String |
setReplicationRoot(String path)
Sets replication root for the session. |
void |
setTcpPortRange(int start,
int end)
Method to set TCP port range |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Session(String domainFile,
int securityModel)
throws SessionException
domainFile - the full path to a domain file.securityModel - Session.SSL, Session.kerberos, or Session.INSECURE
SessionException - when session init failure
public Session(URL domainFile,
int securityModel)
throws SessionException
domainFile - URL location of domainFilesecurityModel - Session.SSL, Session.kerberos, or Session.INSECURE
SessionException - when session failure
public Session(String userName,
String password,
String domainFile,
int securityModel)
throws SessionException
userName - the user name to connect to the service.password - the user password to connect to the service.domainFile - the full path to a domain file.securityModel - Session.SSL, Session.kerberos, or Session.INSECURE
SessionException - when session failure| Method Detail |
|---|
public static void init()
public static final float getApiVersion()
public static final String getApiVersionString()
public String getRegistry()
public final void setLoginInfo(String userName,
String password)
userName - the user namepassword - the user passwordpublic boolean isLoggedOn()
public final int getSecurityModel()
public boolean setOption(int option,
boolean value)
option - the optionvalue - the on/off flag
public boolean getOption(int option)
option - the option
public String setDirectory(String path)
throws SessionException
path - the string directory
SessionException - when session failurepublic String getDir()
public String setReplicationRoot(String path)
throws SessionException
path - the string directory
SessionException - when session failurepublic String getReplicationRoot()
public Capability getCapabilities(String fileType)
throws SessionException
fileType - the file type name
SessionException - when session failure
public LinkedList getCapabilitiesForGroup(String group)
throws SessionException
fileType - the file type name
SessionException - when session failure
public LinkedList getCapabilities()
throws SessionException
SessionException - when session failure
public LinkedList getVFTCapabilities()
throws SessionException
SessionException - when session failure
public Capability getVFTCapabilities(String vft)
throws SessionException
vft - the virtual file type
SessionException - when session failure
public int getUserAccess()
throws SessionException
SessionException - when session failure
public boolean getAddVFT()
throws SessionException
SessionException - when session failurepublic String getUserAccessStr()
public int changePassword(String oldPassword,
String newPassword)
throws SessionException
oldPassword - the old passwordnewPassword - the new password
SessionException - when session failure
public int makeDomainFile(String domainFilePath,
String serverGroup)
throws SessionException
domainFilePath - the new domain file path.serverGroup - Name of server group to be written to domain file
SessionException - when session failure
public void setTcpPortRange(int start,
int end)
throws SessionException
start - the start valueend - the end value
SessionException - when session failurepublic int getTcpStartPort()
public int getTcpEndPort()
public FileType open(String fileTypeName)
throws SessionException
fileTypeName - file type to open.
SessionException - when session failure
public FileType open(String groupName,
String typeName)
throws SessionException
groupName - the server group nametypeName - the file type name
SessionException - when session failure
public ServerGroup openServerGroup(String groupName)
throws SessionException
groupName - Name of the server group to open
SessionException - if error occurs.
public String getFTServerGroup(String fileTypeName)
throws SessionException
fileTypeName - the name of the filetype
SessionException - when session failure
public String getServerGroup(String serverName)
throws SessionException
serverName - the name of the filetype
SessionException - when session failure
public Admin openAdmin(String serverName)
throws SessionException
serverName - open a server w/o a file type, enrolls connection into
list.
SessionException - when session failure
public Admin getAdminConnection(String serverName,
boolean useAdminPort)
throws SessionException
serverName - open a server w/o a file type.useAdminPort - flag to indicate to use an defined admin port
SessionException - when session failure.public void postResult(Result result)
result - the file profilepublic int getTransactionCount()
public void closeImmediate()
public int close()
throws SessionException
SessionException - when session failure
public void close(FileType type)
throws SessionException
type - the file type to close. If null, close all file types.
SessionException - when session failurepublic void closeServerGroup(ServerGroup sg)
sg - ServerGroup instance to close. If null, method returns
immediately.
public boolean isConnected(String fileTypeName)
throws SessionException
fileTypeName - the file type name
SessionException - when session failure
public boolean isConnected(String groupName,
String typeName)
throws SessionException
fileTypeName - the file type name
SessionException - when session failure
public Result result()
throws SessionException
SessionException - when session failure
public Result result(int timeDelay)
throws SessionException
timeDelay - time in seconds.
SessionException - when session failurepublic int getTransactionId()
public final String getUserName()
public final String getPassword()
public LinkedList getFileTypeList()
throws SessionException
SessionException - when operation fails
public LinkedList getFileTypeList(String groupName)
throws SessionException
groupName - the server group name
SessionException - when operation failspublic LinkedList getGroupList()
public boolean isGroupDefined(String groupName)
servergroup - Name of server group to query
public String getDefaultGroup()
public void setDefaultGroup(String groupName)
throws SessionException
groupName - the server group name
SessionException - when groupName not defined in domain
public void dump()
throws SessionException
SessionException - when session failurepublic int getConnectionTimeout()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||