Class TopologyWebSocketBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior
-
- org.apache.wicket.protocol.ws.api.WebSocketBehavior
-
- org.apache.syncope.client.console.topology.TopologyWebSocketBehavior
-
- All Implemented Interfaces:
Serializable
,IComponentAwareEventSink
,IComponentAwareHeaderContributor
,IClusterable
public class TopologyWebSocketBehavior extends WebSocketBehavior
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfParamOps
confParamOps
protected static String
CONNECTOR_TEST_TIMEOUT_PARAMETER
protected ConnectorRestClient
connectorRestClient
protected Map<String,String>
connectors
protected Integer
connectorTestTimeout
protected String
coreAddress
protected String
domain
protected String
jwt
protected static Logger
LOG
protected static JsonMapper
MAPPER
protected static String
RESOURCE_TEST_TIMEOUT_PARAMETER
protected ResourceRestClient
resourceRestClient
protected Map<String,String>
resources
protected Integer
resourceTestTimeout
protected Set<String>
runningConnCheck
protected Set<String>
runningResCheck
protected ServiceOps
serviceOps
-
Constructor Summary
Constructors Constructor Description TopologyWebSocketBehavior()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
connCheckDone(Collection<String> connectors)
protected void
onMessage(WebSocketRequestHandler handler, TextMessage message)
boolean
resCheckDone(Collection<String> resources)
protected static void
timeoutHandlingConnectionChecker(org.apache.syncope.client.console.topology.TopologyWebSocketBehavior.Checker checker, Integer timeout, Map<String,String> responses, Set<String> running)
-
Methods inherited from class org.apache.wicket.protocol.ws.api.WebSocketBehavior
onAbort, onClose, onConnect, onError, onEvent, onMessage, onPush
-
Methods inherited from class org.apache.wicket.protocol.ws.api.BaseWebSocketBehavior
getBaseUrl, getContext, getContextPath, getFilterPrefix, getPort, getSecurePort, getSessionId, getStatelessHint, getWebSocketSetupScript, renderHead
-
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onException, onRemove, onTag, unbind
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
MAPPER
protected static final JsonMapper MAPPER
-
CONNECTOR_TEST_TIMEOUT_PARAMETER
protected static final String CONNECTOR_TEST_TIMEOUT_PARAMETER
- See Also:
- Constant Field Values
-
RESOURCE_TEST_TIMEOUT_PARAMETER
protected static final String RESOURCE_TEST_TIMEOUT_PARAMETER
- See Also:
- Constant Field Values
-
serviceOps
@SpringBean protected ServiceOps serviceOps
-
confParamOps
@SpringBean protected ConfParamOps confParamOps
-
connectorRestClient
@SpringBean protected ConnectorRestClient connectorRestClient
-
resourceRestClient
@SpringBean protected ResourceRestClient resourceRestClient
-
coreAddress
protected String coreAddress
-
domain
protected String domain
-
jwt
protected String jwt
-
connectorTestTimeout
protected Integer connectorTestTimeout
-
resourceTestTimeout
protected Integer resourceTestTimeout
-
-
Method Detail
-
timeoutHandlingConnectionChecker
protected static void timeoutHandlingConnectionChecker(org.apache.syncope.client.console.topology.TopologyWebSocketBehavior.Checker checker, Integer timeout, Map<String,String> responses, Set<String> running)
-
onMessage
protected void onMessage(WebSocketRequestHandler handler, TextMessage message)
- Overrides:
onMessage
in classWebSocketBehavior
-
connCheckDone
public boolean connCheckDone(Collection<String> connectors)
-
resCheckDone
public boolean resCheckDone(Collection<String> resources)
-
-