Package org.jgroups.protocols
Class INJECT_VIEW
- java.lang.Object
-
- org.jgroups.stack.Protocol
-
- org.jgroups.protocols.INJECT_VIEW
-
- All Implemented Interfaces:
Lifecycle
public class INJECT_VIEW extends Protocol
Simple protocol to inject an arbitrary view on one or more cluster nodes. INJECT_VIEW exposes a managed operation (injectView) capable of injecting a view by parsing the view state from a string. The string format is A=A/B/C;B=B/C;C=C (where A,B,C are node names), this would inject view [A,B,C] with A as leader in node A, view [B,C] with B as leader in node B and view [C] in node C. In order to leverage the injection on multiple nodes at once use a tool like probe.sh (https://github.com/belaban/JGroups/blob/master/tests/other/org/jgroups/tests/Probe.java)- Since:
- 4.0.10
- Author:
- Andrea Tarocchi, Ugo Landini
- See Also:
GMS
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAMES_SEPARATOR
static java.lang.String
NODE_VIEWS_SEPARATOR
static java.lang.String
VIEW_SEPARATOR
-
Fields inherited from class org.jgroups.stack.Protocol
after_creation_hook, down_prot, ergonomics, id, local_addr, log, policies, stack, stats, up_prot
-
-
Constructor Summary
Constructors Constructor Description INJECT_VIEW()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
injectView(java.lang.String newView)
-
Methods inherited from class org.jgroups.stack.Protocol
accept, addPolicy, addr, addr, afterCreationHook, destroy, down, down, down, enableStats, getAddress, getComponents, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getPolicies, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, init, isErgonomics, level, parse, policies, providedDownServices, providedUpServices, removePolicy, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setAddress, setDownProtocol, setErgonomics, setId, setLevel, setPolicies, setProtocolStack, setSocketFactory, setUpProtocol, setValue, start, statsEnabled, stop, toString, up, up, up
-
-
-
-
Field Detail
-
NODE_VIEWS_SEPARATOR
public static final java.lang.String NODE_VIEWS_SEPARATOR
- See Also:
- Constant Field Values
-
VIEW_SEPARATOR
public static final java.lang.String VIEW_SEPARATOR
- See Also:
- Constant Field Values
-
NAMES_SEPARATOR
public static final java.lang.String NAMES_SEPARATOR
- See Also:
- Constant Field Values
-
-