com.sun.xml.ws.commons.ha
Class HaContext

java.lang.Object
  extended by com.sun.xml.ws.commons.ha.HaContext

public class HaContext
extends Object

Runtime HA context implemented using thread local state data

Author:
Marek Potociar (marek.potociar at sun.com)

Nested Class Summary
static class HaContext.State
          Internal state data of the HA context
 
Constructor Summary
HaContext()
           
 
Method Summary
static String asString(HaInfo haInfo)
           
static void clear()
           
static HaInfo currentHaInfo()
           
static HaContext.State currentState()
           
static boolean failoverDetected()
           
static HaContext.State initFrom(HaContext.State newState)
           
static HaContext.State initFrom(Packet packet)
           
static void udpateReplicaInstance(String replicaInstance)
           
static void updateHaInfo(HaInfo newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HaContext

public HaContext()
Method Detail

initFrom

public static HaContext.State initFrom(Packet packet)

initFrom

public static HaContext.State initFrom(HaContext.State newState)

currentState

public static HaContext.State currentState()

clear

public static void clear()

currentHaInfo

public static HaInfo currentHaInfo()

udpateReplicaInstance

public static void udpateReplicaInstance(String replicaInstance)

updateHaInfo

public static void updateHaInfo(HaInfo newValue)

failoverDetected

public static boolean failoverDetected()

asString

public static String asString(HaInfo haInfo)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.