oracle.panama.messaging.transport
Interface FailOverHook
- public interface FailOverHook
The fail-over hook interface. FailOverHook
should be implemented by the customer as a part of the
configuration of the transport system. Given a
destination and a different delivery type, the
fail-over hook finds out the fail-over destination.
Fail-over is not implemented in v2 yet.
Type | Method |
void |
destroy()
Destroy the fail-over hook. |
Destination |
getFailOverDestination(Destination d,
java.lang.String t)
Find the fail-over destination given a destination
and a different delivery type. |
java.lang.String |
getVersion()
Get the version of the fail-over hook. |
void |
init(java.util.Properties properties)
Initialize the fail-over hook. |
init
public void init(java.util.Properties properties)
- Initialize the fail-over hook.
- Parameters:
properties
- the fail-over hook's properties.
destroy
public void destroy()
- Destroy the fail-over hook.
getVersion
public java.lang.String getVersion()
- Get the version of the fail-over hook.
- Returns:
- the version of the fail-over hook.
getFailOverDestination
public Destination getFailOverDestination(Destination d,
java.lang.String t)
- Find the fail-over destination given a destination
and a different delivery type.
- Parameters:
d
- the destination.t
- the fail-over delivery type.- Returns:
- the fail-over destination.