Example: Implementing a side stream advisor
The following example demonstrates how a side stream advisor can be implemented. This sample illustrates suppressing the standard socket opened by the advisor base. Instead, this advisor opens a side stream Java socket to query a server. This procedure can be useful for servers that use a different port from normal client traffic to listen for an advisor query.
Example: Implementing a two-port advisor
The following example shows how to implement a two-port advisor. This custom advisor sample demonstrates the capability to detect failure for one port of a server based upon both its own status and on the status of a different server daemon that is running on another port on the same server machine.
Example: Using data returned from advisors
Whether you use a standard call to an existing part of the application server or add a new piece of code to be the server-side counterpart of your custom advisor, you possibly want to examine the load values returned and change server behavior.
Example: Using data returned from advisors
Whether you use a standard call to an existing part of
the application server or add a new piece of code to be the server-side
counterpart of your custom advisor, you possibly want to examine the
load values returned and change server behavior.
Example: Implementing a side stream advisor
The following example demonstrates how a side stream advisor
can be implemented. This sample illustrates suppressing the standard
socket opened by the advisor base. Instead, this advisor opens a side
stream Java socket to query a server. This procedure can be useful
for servers that use a different port from normal client traffic to
listen for an advisor query.
Example: Implementing a two-port advisor
The following example shows how to implement a two-port
advisor. This custom advisor sample demonstrates the capability to
detect failure for one port of a server based upon both its own status
and on the status of a different server daemon that is running on
another port on the same server machine.