Package org.teiid.adminapi

Examples of org.teiid.adminapi.Session


    Collection<Session> sessions = admin.getSessions();
   
    int size = sessions.size();
    assertTrue( size >= 1);
   
    Session found = null;
    for (Session s: sessions) {
      if (s.getUserName().equals("admin@teiid-security")) {
        found = s;
        break;
      }
    }
   
    assertNotNull(found);
   
    admin.terminateSession(found.getSessionId());
   
    sessions = admin.getSessions();
    assertTrue(sessions.size() == (size-1));
    c.close();
  }
View Full Code Here

TOP

Related Classes of org.teiid.adminapi.Session

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.