1 19 20 24 25 package org.netbeans.modules.j2ee.deployment.plugins.api; 26 27 32 33 public class ServerDebugInfo { 34 35 public static final String TRANSPORT_SOCKET = "dt_socket"; public static final String TRANSPORT_SHMEM = "dt_shmem"; 38 41 private String transport = TRANSPORT_SOCKET; 42 43 46 private String host = "localhost"; 48 51 private String shmemName = ""; 52 53 56 private int port; 57 58 public ServerDebugInfo(String host, String shmemName) { 59 setTransport(TRANSPORT_SHMEM); 60 setHost(host); 61 setShmemName(shmemName); 62 } 63 64 public ServerDebugInfo(String host, int port) { 65 setTransport(TRANSPORT_SOCKET); 66 setHost(host); 67 setPort(port); 68 } 69 70 74 public String getTransport() { 75 return this.transport; 76 } 77 78 82 public void setTransport(String transport) { 83 this.transport = transport; 84 } 85 86 90 public String getHost() { 91 return this.host; 92 } 93 94 98 public void setHost(String host) { 99 this.host = host; 100 } 101 102 106 public String getShmemName() { 107 return this.shmemName; 108 } 109 110 114 public void setShmemName(String shmemName) { 115 this.shmemName = shmemName; 116 } 117 118 122 public int getPort() { 123 return this.port; 124 } 125 126 130 public void setPort(int port) { 131 this.port = port; 132 } 133 134 } 135 | Popular Tags |