Package org.jgroups.protocols
Class INJECT_VIEW
- java.lang.Object
-
- org.jgroups.stack.Protocol
-
- org.jgroups.protocols.INJECT_VIEW
-
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, log, 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, afterCreationHook, destroy, down, down, enableStats, getConfigurableObjects, getDownProtocol, getDownServices, getId, getIdsAbove, getLevel, getLog, getName, getProtocolStack, getSocketFactory, getThreadFactory, getTransport, getUpProtocol, getUpServices, getValue, init, isErgonomics, level, parse, providedDownServices, providedUpServices, requiredDownServices, requiredUpServices, resetStatistics, resetStats, setDownProtocol, setErgonomics, setId, setLevel, setProtocolStack, setSocketFactory, setUpProtocol, setValue, start, statsEnabled, stop, 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
-
-