private void destroy(DatabaseSession session) { if (session.isConnected()) { session.logout(); } sessions.remove(session.getName()); session = null; }
/** * Remove JMX reserved characters from the session name * @return */ protected String getMBeanSessionName() { // Check for a valid session - should never occur though if(null != getDatabaseSession() && null != getDatabaseSession().getName()) { // remove any JMX reserved characters when the session name is file:/drive:/directory return getDatabaseSession().getName().replaceAll("[=,:]", "_"); } else { getAbstractSession().log(SessionLog.WARNING, SessionLog.SERVER, "session_key_for_mbean_name_is_null"); return null; } }
/** * Remove JMX reserved characters from the session name * @return */ protected String getMBeanSessionName() { // Check for a valid session - should never occur though if(null != getDatabaseSession() && null != getDatabaseSession().getName()) { // remove any JMX reserved characters when the session name is file:/drive:/directory return getDatabaseSession().getName().replaceAll("[=,:]", "_"); } else { getAbstractSession().log(SessionLog.WARNING, SessionLog.SERVER, "session_key_for_mbean_name_is_null"); return null; } }
/** * Remove JMX reserved characters from the session name * @param aSession * @return */ private String getMBeanSessionName() { // Check for a valid session - should never occur though if(null != getDatabaseSession() && null != getDatabaseSession().getName()) { // remove any JMX reserved characters when the session name is file:/drive:/directory return getDatabaseSession().getName().replaceAll("[=,:]", "_"); } else { AbstractSessionLog.getLog().log(SessionLog.WARNING, "session_key_for_mbean_name_is_null"); return null; } }