if (jpda.getState() == JPDADebugger.STATE_STOPPED) { // the session is suspended. AttachingDICookie attCookie = (AttachingDICookie)o; String shmName = attCookie.getSharedMemoryName(); if (shmName!=null) { if (shmName.startsWith(port)) {
@Override public void run() { if (ServerRegistry.getInstance().getServerInstance(url) == null) { return; } Target target = _retrieveTarget(null); ServerDebugInfo sdi = getServerDebugInfo(target); if (sdi == null) { LOGGER.log(Level.FINE, "DebuggerInfo cannot be found for: " + ServerInstance.this); return; // give it up } AttachingDICookie attCookie = (AttachingDICookie)session.lookupFirst(null, AttachingDICookie.class); if (attCookie == null) { LOGGER.log(Level.FINE, "AttachingDICookie cannot be found for: " + ServerInstance.this); return; // give it up } if (ServerDebugInfo.TRANSPORT_SHMEM.equals(sdi.getTransport())) { String shmem = attCookie.getSharedMemoryName(); if (shmem != null && shmem.equalsIgnoreCase(sdi.getShmemName())) { registerListener(session); } } else { String host = attCookie.getHostName(); if (host != null && isSameHost(host, sdi.getHost()) && attCookie.getPortNumber() == sdi.getPort()) { registerListener(session); } } } });
private boolean isDebugged() { J2eeModuleProvider jmp = getProject().getLookup().lookup(J2eeModuleProvider.class); ServerDebugInfo sdi = jmp.getServerDebugInfo(); if (sdi == null) { return false; } Session[] sessions = DebuggerManager.getDebuggerManager().getSessions(); for (int i=0; i < sessions.length; i++) { Session s = sessions[i]; if (s != null) { Object o = s.lookupFirst(null, AttachingDICookie.class); if (o != null) { AttachingDICookie attCookie = (AttachingDICookie)o; if (sdi.getTransport().equals(ServerDebugInfo.TRANSPORT_SHMEM)) { if (attCookie.getSharedMemoryName().equalsIgnoreCase(sdi.getShmemName())) { return true; } } else { if (attCookie.getHostName().equalsIgnoreCase(sdi.getHost()) && attCookie.getPortNumber() == sdi.getPort()) { return true; } } } } } return false; }
AttachingDICookie attCookie = (AttachingDICookie)o; if (sdi.getTransport().equals(ServerDebugInfo.TRANSPORT_SHMEM)) { if (attCookie.getSharedMemoryName().equalsIgnoreCase(sdi.getShmemName())) { return true;
AttachingDICookie attCookie = (AttachingDICookie)o; if (ServerDebugInfo.TRANSPORT_SHMEM.equals(sdi.getTransport())) { if (attCookie.getSharedMemoryName().equalsIgnoreCase(sdi.getShmemName())) { return true;
AttachingDICookie attCookie = (AttachingDICookie) o; if (sdi.getTransport().equals(ServerDebugInfo.TRANSPORT_SHMEM)) { String shmem = attCookie.getSharedMemoryName(); if (shmem == null) { continue;
AttachingDICookie attCookie = (AttachingDICookie)o; if (sdi.getTransport().equals(ServerDebugInfo.TRANSPORT_SHMEM)) { String shmem = attCookie.getSharedMemoryName(); if (shmem == null) continue; if (shmem.equalsIgnoreCase(sdi.getShmemName())) {
String shmem = attCookie.getSharedMemoryName(); if (shmem == null) { continue;
if (jpda.getState() == JPDADebugger.STATE_STOPPED) { // the session is suspended. AttachingDICookie attCookie = (AttachingDICookie)o; String shmName = attCookie.getSharedMemoryName(); if (shmName!=null) { if (shmName.startsWith(sunDm.getHost())) {
if (attCookie != null) { if (sdi.getTransport().equals(ServerDebugInfo.TRANSPORT_SHMEM)) { String shmem = attCookie.getSharedMemoryName(); if (shmem != null && shmem.equalsIgnoreCase(sdi.getShmemName())) { s.kill();