Package step.client.eventbroker
Class RemoteEventBrokerClient
- java.lang.Object
-
- step.client.AbstractRemoteClient
-
- step.client.eventbroker.RemoteEventBrokerClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable,EventBrokerClient
public class RemoteEventBrokerClient extends step.client.AbstractRemoteClient implements EventBrokerClient
-
-
Field Summary
Fields Modifier and Type Field Description static StringservicePath
-
Constructor Summary
Constructors Constructor Description RemoteEventBrokerClient()RemoteEventBrokerClient(step.client.credentials.ControllerCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<String,Boolean>clear()Map<String,Boolean>clearGroup(String group)Map<String,Object>clearStats()step.plugins.events.EventconsumeEvent(String id)step.plugins.events.EventconsumeEventByGroupAndName(String group, String name)Set<String>getDistinctGroupNames()Map<String,Set<step.plugins.events.Event>>getEventBrokerGroupMap()Map<String,Set<step.plugins.events.Event>>getEventBrokerGroupMap(int skip, int limit)Map<String,step.plugins.events.Event>getEventBrokerIdMap()Map<String,step.plugins.events.Event>getEventBrokerIdMap(int skip, int limit)StringgetEventBrokerStatus()Deprecated.Set<step.plugins.events.Event>getFullGroup(String group)Map<String,Object>getGlobalStats()intgetGroupSize(String group)Set<step.plugins.events.Event>getGroupSkipLimit(String group, int skip, int limit)Map<String,Object>getGroupStats(String group)step.plugins.events.EventpeekEvent(String id)step.plugins.events.EventpeekEventByGroupAndName(String group, String name)step.plugins.events.EventputEvent(step.plugins.events.Event event)Map<String,Object>setCircuitBreakerThreshold(long circuitBreakerThreshold)-
Methods inherited from class step.client.AbstractRemoteClient
close, executeRequest, notImplemented, requestBuilder, requestBuilder
-
-
-
-
Field Detail
-
servicePath
public static String servicePath
-
-
Method Detail
-
getEventBrokerStatus
@Deprecated public String getEventBrokerStatus()
Deprecated.
-
getEventBrokerIdMap
public Map<String,step.plugins.events.Event> getEventBrokerIdMap()
- Specified by:
getEventBrokerIdMapin interfaceEventBrokerClient
-
getEventBrokerIdMap
public Map<String,step.plugins.events.Event> getEventBrokerIdMap(int skip, int limit)
- Specified by:
getEventBrokerIdMapin interfaceEventBrokerClient
-
getEventBrokerGroupMap
public Map<String,Set<step.plugins.events.Event>> getEventBrokerGroupMap()
- Specified by:
getEventBrokerGroupMapin interfaceEventBrokerClient
-
getEventBrokerGroupMap
public Map<String,Set<step.plugins.events.Event>> getEventBrokerGroupMap(int skip, int limit)
- Specified by:
getEventBrokerGroupMapin interfaceEventBrokerClient
-
putEvent
public step.plugins.events.Event putEvent(step.plugins.events.Event event)
- Specified by:
putEventin interfaceEventBrokerClient
-
peekEvent
public step.plugins.events.Event peekEvent(String id)
- Specified by:
peekEventin interfaceEventBrokerClient
-
peekEventByGroupAndName
public step.plugins.events.Event peekEventByGroupAndName(String group, String name) throws Exception
- Specified by:
peekEventByGroupAndNamein interfaceEventBrokerClient- Throws:
Exception
-
consumeEvent
public step.plugins.events.Event consumeEvent(String id)
- Specified by:
consumeEventin interfaceEventBrokerClient
-
consumeEventByGroupAndName
public step.plugins.events.Event consumeEventByGroupAndName(String group, String name) throws Exception
- Specified by:
consumeEventByGroupAndNamein interfaceEventBrokerClient- Throws:
Exception
-
clear
public Map<String,Boolean> clear()
- Specified by:
clearin interfaceEventBrokerClient
-
clearGroup
public Map<String,Boolean> clearGroup(String group)
- Specified by:
clearGroupin interfaceEventBrokerClient
-
getGlobalStats
public Map<String,Object> getGlobalStats()
- Specified by:
getGlobalStatsin interfaceEventBrokerClient
-
getGroupStats
public Map<String,Object> getGroupStats(String group)
- Specified by:
getGroupStatsin interfaceEventBrokerClient
-
clearStats
public Map<String,Object> clearStats()
- Specified by:
clearStatsin interfaceEventBrokerClient
-
getGroupSkipLimit
public Set<step.plugins.events.Event> getGroupSkipLimit(String group, int skip, int limit) throws Exception
- Specified by:
getGroupSkipLimitin interfaceEventBrokerClient- Throws:
Exception
-
getFullGroup
public Set<step.plugins.events.Event> getFullGroup(String group)
- Specified by:
getFullGroupin interfaceEventBrokerClient
-
getDistinctGroupNames
public Set<String> getDistinctGroupNames()
- Specified by:
getDistinctGroupNamesin interfaceEventBrokerClient
-
getGroupSize
public int getGroupSize(String group)
- Specified by:
getGroupSizein interfaceEventBrokerClient
-
setCircuitBreakerThreshold
public Map<String,Object> setCircuitBreakerThreshold(long circuitBreakerThreshold)
- Specified by:
setCircuitBreakerThresholdin interfaceEventBrokerClient
-
-