Package org.jgroups.protocols
Class INJECT_VIEW
java.lang.Object
org.jgroups.stack.Protocol
org.jgroups.protocols.INJECT_VIEW
- All Implemented Interfaces:
Lifecycle
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
- See Also:
-
Field Summary
FieldsFields 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 -
Method Summary
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 Details
-
NODE_VIEWS_SEPARATOR
- See Also:
-
VIEW_SEPARATOR
- See Also:
-
NAMES_SEPARATOR
- See Also:
-
-
Constructor Details
-
INJECT_VIEW
public INJECT_VIEW()
-
-
Method Details
-
injectView
-