TLinkFactory.java. More...
Public Member Functions | |
int | getBlackListedLinkStatus (TLink lnk) |
Returns the original link status which caused the link to be black listed. More... | |
void | setUserType (String type) |
Set the application type string. More... | |
String | getUserName () |
Gets the user name seen in all link requests from this client application. More... | |
void | setUserName (String userName) |
Sets the user name seen in all link requests to that specified. More... | |
void | closeBackgroundGlobalsLinks () |
unpins and closes any background globals links that were started due to synchronous calls to a known globals server. | |
TLink | simpleLink (String devname, String devproperty, TDataType dout, TDataType din, short devaccess) |
Put a new TLink in the link table. More... | |
Static Public Member Functions | |
static int | setAccessLock (String context, String server, AccessLockType lockType, int lockDuration) |
Acquires an access lock to the server specified. More... | |
static int | setAccessLock (String context, String server, AccessLockType lockType, int lockDuration, int lockFlags) |
Acquires an access lock to the server specified. More... | |
static void | removeAccessLock (String context, String server) |
removes an access lock on the server specified. More... | |
static synchronized TLinkFactory | getInstance () |
Insert the method's description here. More... | |
Protected Member Functions | |
void | removeTLink (TLink lnk) |
Remove a TLink from the link table Removes a TLink from the link table by setting the entry explicitly to null. More... | |
TLinkFactory.java.
User interface calls to access available methods from the TLink factory
The available public methods from the TLink factory singleton generally involve configuration settings affecting performance, memory (table capacities) and behavior.
int de.desy.tine.client.TLinkFactory.getBlackListedLinkStatus | ( | TLink | lnk | ) |
Returns the original link status which caused the link to be black listed.
lnk | is the TLink for which the black listed status is desired |
Referenced by de.desy.tine.client.TLink.execute().
|
static |
Insert the method's description here.
Creation date: (8/24/01 3:51:37 PM)
Referenced by de.desy.tine.queryUtils.TQuery.getDeviceContexts(), de.desy.tine.queryUtils.TQuery.getDeviceServers(), de.desy.tine.queryUtils.TQuery.getDeviceSubsystems(), and de.desy.tine.client.TLinkFactory.setAccessLock().
String de.desy.tine.client.TLinkFactory.getUserName | ( | ) |
Gets the user name seen in all link requests from this client application.
|
static |
removes an access lock on the server specified.
A client application can obtain an access lock to the given server provided the caller has WRITE privileges himself. Once the lock is obtained, no other process will be allowed WRITE access regardless of any other access control lists. A lock may be preemptive (LOCK_PREEMTIVE) or persistent (LOCK_PERSISTENT). Preemptive locks may be aborted (LOCK_ABORT) by other callers with WRITE privileges. Persistent locks may not. A client can free a lock he has obtained by calling this method (nominally equivalent to setAccessLock() + AccessLockType.LOCK_CANCEL.
context | is the targeted context of the server |
server | is the targeted device server |
example:
References de.desy.tine.client.TLinkFactory.setAccessLock().
Referenced by de.desy.tine.queryUtils.TQuery.removeAccessLock().
|
protected |
Remove a TLink from the link table Removes a TLink from the link table by setting the entry explicitly to null.
If the link is a TCP/IP link then the termination flag is reset to false in order to give the terminateBucket thread a chance to clean up the connection.
Referenced by de.desy.tine.client.TLink.close().
|
static |
Acquires an access lock to the server specified.
A client application can obtain an access lock to the given server provided the caller has WRITE privileges himself. Once the lock is obtained, no other process will be allowed WRITE access regardless of any other access control lists. A lock may be preemptive (LOCK_PREEMTIVE) or persistent (LOCK_PERSISTENT). Preemptive locks may be aborted (LOCK_ABORT) by other callers with WRITE privileges. Persistent locks may not.
context | is the targeted context of the server |
server | is the targeted device server |
lockType | is the desired lock type: one of AccessLockType.LOCK_CANCEL, AccessLockType.LOCK_PREEPMTIVE, AccessLockType.LOCK_PERSISTENT or AccessLockType.LOCK_ABORT. |
lockDuration | is the requested duration of the lock in seconds. This applies only to preemptive locks. Persistent locks will ignore this parameter and continue to renew the lock until the caller cancels the lock (graceful) or disappears (maximum 60 second wait). |
example:
Referenced by de.desy.tine.client.TLinkFactory.removeAccessLock(), and de.desy.tine.queryUtils.TQuery.setAccessLock().
|
static |
Acquires an access lock to the server specified.
A client application can obtain an access lock to the given server provided the caller has WRITE privileges himself. Once the lock is obtained, no other process will be allowed WRITE access regardless of any other access control lists. A lock may be preemptive (LOCK_PREEMTIVE) or persistent (LOCK_PERSISTENT). Preemptive locks may be aborted (LOCK_ABORT) by other callers with WRITE privileges. Persistent locks may not.
context | is the targeted context of the server |
server | is the targeted device server |
lockType | is the desired lock type: one of AccessLockType.LOCK_CANCEL, AccessLockType.LOCK_PREEPMTIVE, AccessLockType.LOCK_PERSISTENT or AccessLockType.LOCK_ABORT. |
lockDuration | is the requested duration of the lock in seconds. This applies only to preemptive locks. Persistent locks will ignore this parameter and continue to renew the lock until the caller cancels the lock (graceful) or disappears (maximum 60 second wait). |
lockFlags | can contain optional access lock flags such as LOCK_XREAD (exclusive read). |
References de.desy.tine.client.TLinkFactory.getInstance().
void de.desy.tine.client.TLinkFactory.setUserName | ( | String | userName | ) |
Sets the user name seen in all link requests to that specified.
userName | is the desired user name setting |
void de.desy.tine.client.TLinkFactory.setUserType | ( | String | type | ) |
Set the application type string.
type | is the desired type string (default = 'JAVA') |