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 47 @Description("Client-view of a cluster's server, i.e. a target server with which this instance can communicate") 48 public interface ServerConnectorMXBean extends ManagedObjectMXBean { 49 52 @Description("The configured Cluster which contains the server") 53 public ClusterMXBean getCluster(); 54 55 58 @Description("The configured index of this server in the cluster, used for distributed objects.") 59 public int getClusterIndex(); 60 61 64 @Description("The configured timeout for a client connect to the server") 65 @Units("milliseconds") 66 public long getConnectTimeout(); 67 68 71 @Description("The configured IP address or host name of the server") 72 public String getAddress(); 73 74 77 @Description("The configured port number of the target server") 78 public int getPort(); 79 80 85 @Description("The configured timeout for assuming a target server remains" + 86 " unavailable once a connection attempt fails." + 87 " When the timeout period elapses another" + 88 " attempt is made to connect to the target server") 89 @Units("milliseconds") 90 public long getRecoverTime(); 91 92 97 @Description("The configured timeout for an idle socket that is connected" + 98 " to the target server. If the socket is not" + 99 " used within the timeout period the idle" + 100 " connection is closed") 101 @Units("milliseconds") 102 public long getIdleTime(); 103 104 108 @Description("The configured timeout for a client read from the server") 109 @Units("milliseconds") 110 public long getSocketTimeout(); 111 112 115 @Description("The configured warmup time in milliseconds for ramping up connections to the server") 116 @Units("milliseconds") 117 public long getWarmupTime(); 118 119 123 @Description("The configured load balance weight. Weights over 100 will get more traffic and weights less than 100 will get less traffic") 124 public int getWeight(); 125 126 130 133 @Description("The current lifecycle state of the client") 134 public String getState(); 135 136 140 144 @Description("The current number of connections actively being used" + 145 " to communicate with the target server") 146 public int getConnectionActiveCount(); 147 148 152 @Description("The current number of idle connections in the connection pool") 153 public int getConnectionIdleCount(); 154 155 158 @Description("The total number of new connections that have been made" + 159 " to the target server") 160 public long getConnectionNewCountTotal(); 161 162 165 @Description("The total number of keepalive connections that have been made" + 166 " to the target server") 167 public long getConnectionKeepaliveCountTotal(); 168 169 173 @Description("The total number of failed connections attempts" + 174 " to the target server") 175 public long getConnectionFailCountTotal(); 176 177 180 @Description("The current last time a connection attempt failed") 181 public Date getLastFailTime(); 182 183 187 @Description("The total number of busy responses" + 188 " from the target server") 189 public long getConnectionBusyCountTotal(); 190 191 194 @Description("The current last time the target server refused a request because it was busy") 195 public Date getLastBusyTime(); 196 197 200 @Description("The load average of the backend server") 201 public double getServerCpuLoadAvg(); 202 203 206 @Description("Enables connections to the target server") 207 public void start(); 208 209 212 @Description("Enable only sticky-session requests to the target server") 213 public void enableSessionOnly(); 214 215 218 @Description("Disables connections to the target server") 219 public void stop(); 220 221 224 @Description("Tries to connect to the target server, returning true if successful") 225 public boolean ping(); 226 } 227 | Popular Tags |