| Modifier and Type | Class and Description |
|---|---|
| private class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final Balancer | |
| private final ByteBufferPool | |
| private final ProxyConnectionPool | |
| private final ConnectionPoolManager | |
| private final ModClusterContainer | |
| private final List | |
| private static final int | |
| private static final int | |
| private static final int | |
| private final int | |
| private static final AtomicInteger | |
| private final XnioIoThread | |
| private final String | |
| private final NodeLbStatus | |
| private final NodeConfig | |
| private static final int | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| pack-priv static final AtomicInteger | |
| private final List |
| Access | Constructor and Description |
|---|---|
| protected | Node(NodeConfig nodeConfig, Balancer balancerConfig, XnioIoThread ioThread, ByteBufferPool bufferPool, ModClusterContainer container)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| protected void | checkHealth(long
the threshold after which the node should be removed threshold, NodeHealthChecker the node health checker healthChecker)Check the health of the node and try to ping it if necessary. |
| private void | |
| pack-priv void | |
| public Balancer | |
| public ProxyConnectionPool | |
| pack-priv Context | Returns: the context,null if there is no matching contextthe context path path, List<String> the aliases aliases)Get a context. |
| pack-priv Collection | |
| public int | |
| pack-priv int | |
| public int | |
| pack-priv XnioIoThread | |
| public String | |
| public int | |
| public int | Returns: the load statusGet the current load status, based on the number of elections and the current load; |
| public NodeConfig | |
| public NodeStatus | |
| pack-priv List | |
| private int | |
| pack-priv void | |
| protected void | |
| pack-priv boolean | |
| protected boolean | |
| protected void | |
| protected void | |
| pack-priv void | ping(final HttpServerExchange
the http server exchange exchange, final NodePingUtil.the ping callback callbackAsync ping from the user |
| pack-priv Context | Returns: the created contextthe context path path, final List<String> virtualHosts)Register a context. |
| pack-priv Context | |
| pack-priv void | |
| protected void | |
| public String | |
| protected void |
| ACTIVE_PING | back to summary |
|---|---|
| private static final int ACTIVE_PING | |
| balancerConfig | back to summary |
|---|---|
| private final Balancer balancerConfig | |
| bufferPool | back to summary |
|---|---|
| private final ByteBufferPool bufferPool | |
| connectionPool | back to summary |
|---|---|
| private final ProxyConnectionPool connectionPool | |
| connectionPoolManager | back to summary |
|---|---|
| private final ConnectionPoolManager connectionPoolManager | |
| container | back to summary |
|---|---|
| private final ModClusterContainer container | |
| contexts | back to summary |
|---|---|
| private final List<Context> contexts | |
| ERROR | back to summary |
|---|---|
| private static final int ERROR | |
| ERROR_MASK | back to summary |
|---|---|
| private static final int ERROR_MASK | |
| HOT_STANDBY | back to summary |
|---|---|
| private static final int HOT_STANDBY | |
| id | back to summary |
|---|---|
| private final int id | |
| idGen | back to summary |
|---|---|
| private static final AtomicInteger idGen | |
| ioThread | back to summary |
|---|---|
| private final XnioIoThread ioThread | |
| jvmRoute | back to summary |
|---|---|
| private final String jvmRoute | |
| lbStatus | back to summary |
|---|---|
| private final NodeLbStatus lbStatus | |
| nodeConfig | back to summary |
|---|---|
| private final NodeConfig nodeConfig | |
| REMOVED | back to summary |
|---|---|
| private static final int REMOVED | |
| state | back to summary |
|---|---|
| private volatile int state | |
| stateUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<Node> stateUpdater | |
| vHostIdGen | back to summary |
|---|---|
| pack-priv static final AtomicInteger vHostIdGen | |
| vHosts | back to summary |
|---|---|
| private final List<Node. | |
| Node | back to summary |
|---|---|
| protected Node(NodeConfig nodeConfig, Balancer balancerConfig, XnioIoThread ioThread, ByteBufferPool bufferPool, ModClusterContainer container) | |
| checkAvailable | back to summary |
|---|---|
| protected boolean checkAvailable(final boolean existingSession) | |
| checkHealth | back to summary |
|---|---|
| protected void checkHealth(long threshold, NodeHealthChecker healthChecker) Check the health of the node and try to ping it if necessary.
| |
| clearActivePing | back to summary |
|---|---|
| private void clearActivePing() | |
| elected | back to summary |
|---|---|
| pack-priv void elected() This node got elected to serve a request! | |
| getBalancer | back to summary |
|---|---|
| public Balancer getBalancer() | |
| getConnectionPool | back to summary |
|---|---|
| public ProxyConnectionPool getConnectionPool() Get or create the connection pool for this node.
| |
| getContext | back to summary |
|---|---|
| pack-priv Context getContext(final String path, List<String> aliases) Get a context. | |
| getContexts | back to summary |
|---|---|
| pack-priv Collection | |
| getElected | back to summary |
|---|---|
| public int getElected() | |
| getElectedDiff | back to summary |
|---|---|
| pack-priv int getElectedDiff() | |
| getId | back to summary |
|---|---|
| public int getId() | |
| getIoThread | back to summary |
|---|---|
| pack-priv XnioIoThread getIoThread() | |
| getJvmRoute | back to summary |
|---|---|
| public String getJvmRoute() Get the JVM route.
| |
| getLoad | back to summary |
|---|---|
| public int getLoad() Get the load information. Add the error information for clients.
| |
| getLoadStatus | back to summary |
|---|---|
| public int getLoadStatus() Get the current load status, based on the number of elections and the current load;
| |
| getNodeConfig | back to summary |
|---|---|
| public NodeConfig getNodeConfig() | |
| getStatus | back to summary |
|---|---|
| public NodeStatus getStatus() | |
| getVHosts | back to summary |
|---|---|
| pack-priv List | |
| healthCheckFailed | back to summary |
|---|---|
| private int healthCheckFailed() Mark a node in error. Mod_cluster has a threshold after which broken nodes get removed. | |
| healthCheckPing | back to summary |
|---|---|
| pack-priv void healthCheckPing(final long threshold, NodeHealthChecker healthChecker) | |
| hotStandby | back to summary |
|---|---|
| protected void hotStandby() | |
| isHotStandby | back to summary |
|---|---|
| pack-priv boolean isHotStandby() | |
| isInErrorState | back to summary |
|---|---|
| protected boolean isInErrorState() | |
| markInError | back to summary |
|---|---|
| protected void markInError() | |
| markRemoved | back to summary |
|---|---|
| protected void markRemoved() | |
| ping | back to summary |
|---|---|
| pack-priv void ping(final HttpServerExchange exchange, final NodePingUtil. Async ping from the user
| |
| registerContext | back to summary |
|---|---|
| pack-priv Context registerContext(final String path, final List<String> virtualHosts) Register a context. | |
| removeContext | back to summary |
|---|---|
| pack-priv Context removeContext(final String path, final List<String> aliases) | |
| resetLbStatus | back to summary |
|---|---|
| pack-priv void resetLbStatus() | |
| resetState | back to summary |
|---|---|
| protected void resetState() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| updateLoad | back to summary |
|---|---|
| protected void updateLoad(final int i) | |
| Access | Constructor and Description |
|---|---|
| private |
| NodeConnectionPoolManager | back to summary |
|---|---|
| private NodeConnectionPoolManager() | |
| clearError | back to summary |
|---|---|
| public boolean clearError() Implements io. Doc from io. Clear the connection errors.
| |
| getMaxCachedConnections | back to summary |
|---|---|
| public int getMaxCachedConnections() Implements io. Doc from io. Get the maximum number of cached (idle) connections per thread.
| |
| getMaxConnections | back to summary |
|---|---|
| public int getMaxConnections() Implements io. Doc from io. Get the maximum number of connections per thread.
| |
| getMaxQueueSize | back to summary |
|---|---|
| public int getMaxQueueSize() Implements io. Doc from io. Get the maximum number of requests which can be queued if there are no connections available.
| |
| getProblemServerRetry | back to summary |
|---|---|
| public int getProblemServerRetry() Implements io.
| |
| getSMaxConnections | back to summary |
|---|---|
| public int getSMaxConnections() Implements io. Doc from io. Get number of cached connections above which are closed after the time to live.
| |
| getTtl | back to summary |
|---|---|
| public long getTtl() Implements io. Doc from io. Get the time to live for idle connections.
| |
| handleError | back to summary |
|---|---|
| public boolean handleError() Implements io. Doc from io. Handle a connection error.
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable() Implements io. Doc from io. Check whether pool is available
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final int | |
| private final Node |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public int | |
| pack-priv Node |
| aliases | back to summary |
|---|---|
| private final List<String> aliases | |
| id | back to summary |
|---|---|
| private final int id | |
| node | back to summary |
|---|---|
| private final Node node | |
| VHostMapping | back to summary |
|---|---|
| pack-priv VHostMapping(Node node, List<String> aliases) | |
| getAliases | back to summary |
|---|---|
| public List | |
| getId | back to summary |
|---|---|
| public int getId() | |
| getNode | back to summary |
|---|---|
| pack-priv Node getNode() | |