Package step.client.eventbroker
Class RemoteEventBrokerClient
- java.lang.Object
-
- step.client.AbstractRemoteClient
-
- step.client.eventbroker.RemoteEventBrokerClient
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,EventBrokerClient
public class RemoteEventBrokerClient extends step.client.AbstractRemoteClient implements EventBrokerClient
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
servicePath
-
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 java.util.Map<java.lang.String,java.lang.Boolean>
clear()
java.util.Map<java.lang.String,java.lang.Boolean>
clearGroup(java.lang.String group)
java.util.Map<java.lang.String,java.lang.Object>
clearStats()
step.plugins.events.Event
consumeEvent(java.lang.String id)
step.plugins.events.Event
consumeEventByGroupAndName(java.lang.String group, java.lang.String name)
java.util.Set<java.lang.String>
getDistinctGroupNames()
java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>>
getEventBrokerGroupMap()
java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>>
getEventBrokerGroupMap(int skip, int limit)
java.util.Map<java.lang.String,step.plugins.events.Event>
getEventBrokerIdMap()
java.util.Map<java.lang.String,step.plugins.events.Event>
getEventBrokerIdMap(int skip, int limit)
java.lang.String
getEventBrokerStatus()
Deprecated.java.util.Set<step.plugins.events.Event>
getFullGroup(java.lang.String group)
java.util.Map<java.lang.String,java.lang.Object>
getGlobalStats()
int
getGroupSize(java.lang.String group)
java.util.Set<step.plugins.events.Event>
getGroupSkipLimit(java.lang.String group, int skip, int limit)
java.util.Map<java.lang.String,java.lang.Object>
getGroupStats(java.lang.String group)
step.plugins.events.Event
peekEvent(java.lang.String id)
step.plugins.events.Event
peekEventByGroupAndName(java.lang.String group, java.lang.String name)
step.plugins.events.Event
putEvent(step.plugins.events.Event event)
java.util.Map<java.lang.String,java.lang.Object>
setCircuitBreakerThreshold(long circuitBreakerThreshold)
-
Methods inherited from class step.client.AbstractRemoteClient
close, executeRequest, notImplemented, requestBuilder, requestBuilder
-
-
-
-
Method Detail
-
getEventBrokerStatus
@Deprecated public java.lang.String getEventBrokerStatus()
Deprecated.
-
getEventBrokerIdMap
public java.util.Map<java.lang.String,step.plugins.events.Event> getEventBrokerIdMap()
- Specified by:
getEventBrokerIdMap
in interfaceEventBrokerClient
-
getEventBrokerIdMap
public java.util.Map<java.lang.String,step.plugins.events.Event> getEventBrokerIdMap(int skip, int limit)
- Specified by:
getEventBrokerIdMap
in interfaceEventBrokerClient
-
getEventBrokerGroupMap
public java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>> getEventBrokerGroupMap()
- Specified by:
getEventBrokerGroupMap
in interfaceEventBrokerClient
-
getEventBrokerGroupMap
public java.util.Map<java.lang.String,java.util.Set<step.plugins.events.Event>> getEventBrokerGroupMap(int skip, int limit)
- Specified by:
getEventBrokerGroupMap
in interfaceEventBrokerClient
-
putEvent
public step.plugins.events.Event putEvent(step.plugins.events.Event event)
- Specified by:
putEvent
in interfaceEventBrokerClient
-
peekEvent
public step.plugins.events.Event peekEvent(java.lang.String id)
- Specified by:
peekEvent
in interfaceEventBrokerClient
-
peekEventByGroupAndName
public step.plugins.events.Event peekEventByGroupAndName(java.lang.String group, java.lang.String name) throws java.lang.Exception
- Specified by:
peekEventByGroupAndName
in interfaceEventBrokerClient
- Throws:
java.lang.Exception
-
consumeEvent
public step.plugins.events.Event consumeEvent(java.lang.String id)
- Specified by:
consumeEvent
in interfaceEventBrokerClient
-
consumeEventByGroupAndName
public step.plugins.events.Event consumeEventByGroupAndName(java.lang.String group, java.lang.String name) throws java.lang.Exception
- Specified by:
consumeEventByGroupAndName
in interfaceEventBrokerClient
- Throws:
java.lang.Exception
-
clear
public java.util.Map<java.lang.String,java.lang.Boolean> clear()
- Specified by:
clear
in interfaceEventBrokerClient
-
clearGroup
public java.util.Map<java.lang.String,java.lang.Boolean> clearGroup(java.lang.String group)
- Specified by:
clearGroup
in interfaceEventBrokerClient
-
getGlobalStats
public java.util.Map<java.lang.String,java.lang.Object> getGlobalStats()
- Specified by:
getGlobalStats
in interfaceEventBrokerClient
-
getGroupStats
public java.util.Map<java.lang.String,java.lang.Object> getGroupStats(java.lang.String group)
- Specified by:
getGroupStats
in interfaceEventBrokerClient
-
clearStats
public java.util.Map<java.lang.String,java.lang.Object> clearStats()
- Specified by:
clearStats
in interfaceEventBrokerClient
-
getGroupSkipLimit
public java.util.Set<step.plugins.events.Event> getGroupSkipLimit(java.lang.String group, int skip, int limit) throws java.lang.Exception
- Specified by:
getGroupSkipLimit
in interfaceEventBrokerClient
- Throws:
java.lang.Exception
-
getFullGroup
public java.util.Set<step.plugins.events.Event> getFullGroup(java.lang.String group)
- Specified by:
getFullGroup
in interfaceEventBrokerClient
-
getDistinctGroupNames
public java.util.Set<java.lang.String> getDistinctGroupNames()
- Specified by:
getDistinctGroupNames
in interfaceEventBrokerClient
-
getGroupSize
public int getGroupSize(java.lang.String group)
- Specified by:
getGroupSize
in interfaceEventBrokerClient
-
setCircuitBreakerThreshold
public java.util.Map<java.lang.String,java.lang.Object> setCircuitBreakerThreshold(long circuitBreakerThreshold)
- Specified by:
setCircuitBreakerThreshold
in interfaceEventBrokerClient
-
-