Class 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  
      • Fields inherited from class step.client.AbstractRemoteClient

        client, cookies, 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.Closeable

        close
    • Field Detail

      • servicePath

        public static java.lang.String servicePath
    • Constructor Detail

      • RemoteEventBrokerClient

        public RemoteEventBrokerClient​(step.client.credentials.ControllerCredentials credentials)
      • RemoteEventBrokerClient

        public RemoteEventBrokerClient()
    • 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 interface EventBrokerClient
      • getEventBrokerIdMap

        public java.util.Map<java.lang.String,​step.plugins.events.Event> getEventBrokerIdMap​(int skip,
                                                                                                   int limit)
        Specified by:
        getEventBrokerIdMap in interface EventBrokerClient
      • getEventBrokerGroupMap

        public java.util.Map<java.lang.String,​java.util.Set<step.plugins.events.Event>> getEventBrokerGroupMap()
        Specified by:
        getEventBrokerGroupMap in interface EventBrokerClient
      • getEventBrokerGroupMap

        public java.util.Map<java.lang.String,​java.util.Set<step.plugins.events.Event>> getEventBrokerGroupMap​(int skip,
                                                                                                                     int limit)
        Specified by:
        getEventBrokerGroupMap in interface EventBrokerClient
      • putEvent

        public step.plugins.events.Event putEvent​(step.plugins.events.Event event)
        Specified by:
        putEvent in interface EventBrokerClient
      • peekEvent

        public step.plugins.events.Event peekEvent​(java.lang.String id)
        Specified by:
        peekEvent in interface EventBrokerClient
      • peekEventByGroupAndName

        public step.plugins.events.Event peekEventByGroupAndName​(java.lang.String group,
                                                                 java.lang.String name)
                                                          throws java.lang.Exception
        Specified by:
        peekEventByGroupAndName in interface EventBrokerClient
        Throws:
        java.lang.Exception
      • consumeEvent

        public step.plugins.events.Event consumeEvent​(java.lang.String id)
        Specified by:
        consumeEvent in interface EventBrokerClient
      • consumeEventByGroupAndName

        public step.plugins.events.Event consumeEventByGroupAndName​(java.lang.String group,
                                                                    java.lang.String name)
                                                             throws java.lang.Exception
        Specified by:
        consumeEventByGroupAndName in interface EventBrokerClient
        Throws:
        java.lang.Exception
      • clear

        public java.util.Map<java.lang.String,​java.lang.Boolean> clear()
        Specified by:
        clear in interface EventBrokerClient
      • clearGroup

        public java.util.Map<java.lang.String,​java.lang.Boolean> clearGroup​(java.lang.String group)
        Specified by:
        clearGroup in interface EventBrokerClient
      • getGlobalStats

        public java.util.Map<java.lang.String,​java.lang.Object> getGlobalStats()
        Specified by:
        getGlobalStats in interface EventBrokerClient
      • getGroupStats

        public java.util.Map<java.lang.String,​java.lang.Object> getGroupStats​(java.lang.String group)
        Specified by:
        getGroupStats in interface EventBrokerClient
      • clearStats

        public java.util.Map<java.lang.String,​java.lang.Object> clearStats()
        Specified by:
        clearStats in interface EventBrokerClient
      • 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 interface EventBrokerClient
        Throws:
        java.lang.Exception
      • getFullGroup

        public java.util.Set<step.plugins.events.Event> getFullGroup​(java.lang.String group)
        Specified by:
        getFullGroup in interface EventBrokerClient
      • setCircuitBreakerThreshold

        public java.util.Map<java.lang.String,​java.lang.Object> setCircuitBreakerThreshold​(long circuitBreakerThreshold)
        Specified by:
        setCircuitBreakerThreshold in interface EventBrokerClient