1 29 30 package com.caucho.management.server; 31 32 import com.caucho.jmx.Description; 33 import com.caucho.jmx.Units; 34 35 import java.util.Date ; 36 37 48 @Description("The Resin Server running on this JVM instance") 49 public interface ServerMXBean { 50 54 57 @Description("The server id used when starting this instance" 58 + " of Resin, the value of `-server'") 59 public String getId(); 60 61 65 68 @Description("The cluster contains the peer servers") 69 public ClusterMXBean getCluster(); 70 71 74 @Description("Ports accept socket connections") 75 public PortMXBean []getPorts(); 76 77 80 @Description("The thread pool for the server") 81 public ThreadPoolMXBean getThreadPool(); 82 83 86 @Description("The cluster port handles management and cluster messages") 87 public PortMXBean getClusterPort(); 88 89 93 96 @Description("A SelectManager handles keepalive without requiring a thread") 97 public boolean isSelectManagerEnabled(); 98 99 102 @Description("Detailed statistics causes various parts of Resin to keep" 103 + " more detailed statistics at the possible expense of" 104 +" some performance") 105 public boolean isDetailedStatistics(); 106 107 111 114 @Description("The current lifecycle state") 115 public String getState(); 116 117 120 @Description("The time that this instance was last started or restarted") 121 public Date getStartTime(); 122 123 127 130 @Description("The current number of threads that are servicing requests") 131 public int getThreadActiveCount(); 132 133 137 @Description("The current number of connections that are" + 138 " in the keepalive state and are using" + 139 " a thread to maintain the connection") 140 public int getThreadKeepaliveCount(); 141 142 146 @Description("The current number of connections that are" + 147 " in the keepalive state and are using" + 148 " select to maintain the connection") 149 public int getSelectKeepaliveCount(); 150 151 155 @Description("The total number of requests serviced by the" 156 + " server since it started") 157 public long getRequestCountTotal(); 158 159 163 @Description("The total number of requests that have ended" 164 + " up in the keepalive state") 165 public long getKeepaliveCountTotal(); 166 167 171 @Description("The total number of connections that have" + 172 " terminated with a client disconnect") 173 long getClientDisconnectCountTotal(); 174 175 179 @Description("The total duration in milliseconds that" 180 + " requests serviced by this service have taken") 181 @Units("milliseconds") 182 long getRequestTimeTotal(); 183 184 188 @Description("The total number of bytes that requests" 189 + " serviced by this server have read") 190 @Units("bytes") 191 long getRequestReadBytesTotal(); 192 193 197 @Description("The total number of bytes that requests" 198 + " serviced by this server have written") 199 @Units("bytes") 200 long getRequestWriteBytesTotal(); 201 202 205 @Description("The invocation cache is an internal cache used" 206 + " by Resin to optimize the handling of urls") 207 public long getInvocationCacheHitCountTotal(); 208 209 212 @Description("The invocation cache is an internal cache used" 213 + " by Resin to optimize the handling of urls") 214 public long getInvocationCacheMissCountTotal(); 215 216 219 @Description("The current total amount of memory available for the JVM, in bytes") 220 @Units("bytes") 221 public long getRuntimeMemory(); 222 223 226 @Description("The current free amount of memory available for the JVM, in bytes") 227 @Units("bytes") 228 public long getRuntimeMemoryFree(); 229 230 233 @Description("The current CPU load average") 234 public double getCpuLoadAvg(); 235 236 240 243 @Description("Exit this instance cleanly and allow the wrapper script to" 244 + " start a new JVM") 245 public void restart(); 246 247 } 248 | Popular Tags |