org.yawlfoundation.yawl.resourcing.rsInterface
Class ConnectionCache

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<String,ServiceConnection>
          extended by org.yawlfoundation.yawl.resourcing.rsInterface.ConnectionCache
All Implemented Interfaces:
Serializable, Cloneable, Map<String,ServiceConnection>

public class ConnectionCache
extends Hashtable<String,ServiceConnection>

An extended HashMap to handle connections from external entities (such as the YAWL Editor) and the resource service. The map is of the form [sessionHandle, connection].

Since:
2.0
Author:
Michael Adams
See Also:
Serialized Form
Created/Last Date:
Oct 24, 2007

Method Summary
 void addUser(String userid, String password)
           
 void addUsers(Map<String,String> users)
           
 boolean checkConnection(String handle)
           
 void clearUsers()
           
 String connect(String userid, String password, long timeOutSeconds)
           
 void deleteUser(String userid)
           
 void disconnect(String handle)
           
 void expire(String handle)
           
static ConnectionCache getInstance()
           
 String getPassword(String userid)
           
 boolean hasUser(String userid)
           
 boolean hasUsers()
           
 void shutdown()
           
 void updateUser(String userid, String password)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static ConnectionCache getInstance()

addUsers

public void addUsers(Map<String,String> users)

addUser

public void addUser(String userid,
                    String password)

updateUser

public void updateUser(String userid,
                       String password)

deleteUser

public void deleteUser(String userid)

clearUsers

public void clearUsers()

connect

public String connect(String userid,
                      String password,
                      long timeOutSeconds)

disconnect

public void disconnect(String handle)

expire

public void expire(String handle)

checkConnection

public boolean checkConnection(String handle)

shutdown

public void shutdown()

hasUser

public boolean hasUser(String userid)

hasUsers

public boolean hasUsers()

getPassword

public String getPassword(String userid)


Copyright © 2004-2012 The YAWL Foundation.