Esempio n. 1
0
 /**
  * All known session Ids.
  *
  * <p>Provided primarily for debugging.
  */
 public String[] allSessionIds() {
   final String[] ids = new String[sessionsByThread.size()];
   int i = 0;
   for (final IsisSession data : sessionsByThread.values()) {
     ids[i++] = data.getId();
   }
   return ids;
 }
Esempio n. 2
0
 /** The {@link IsisSession} for specified {@link IsisSession#getId()}. */
 protected IsisSession getSessionInstance(final String executionContextId) {
   for (final IsisSession data : sessionsByThread.values()) {
     if (data.getId().equals(executionContextId)) {
       return data;
     }
   }
   return null;
 }