com.sun.xml.ws.api.ha
Class HaInfo

java.lang.Object
  extended by com.sun.xml.ws.api.ha.HaInfo

public class HaInfo
extends Object

This class has HA information

This would help a loadbalancer to put the request(in case of a fail-over) on a replica instance that has all the related data. Even if there is no loadbalancer, a backing store could locate the information by directly going to the correct replica instance. This would also help any part of the runtime to know about failover case(and in-turn may invalidate local caches).

To achieve this functionality, it carries two pieces of information:

  1. key - Related BackingStore keys can use this info for their HashableKey impl. First store creates this object, and subsequent related stores use the same key.
  2. replicaInstance - where the related info is replicated

This can be accessed from Packet using Packet.HA_INFO property by the runtime. This object is created typically

Since:
JAX-WS RI 2.2.2

Constructor Summary
HaInfo(String key, String replicaInstance, boolean failOver)
           
 
Method Summary
 String getKey()
           
 String getReplicaInstance()
           
 boolean isFailOver()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HaInfo

public HaInfo(String key,
              String replicaInstance,
              boolean failOver)
Method Detail

getReplicaInstance

public String getReplicaInstance()

getKey

public String getKey()

isFailOver

public boolean isFailOver()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.