public class WebSocketService extends Object implements Closeable
| Constructor and Description |
|---|
WebSocketService(org.apache.pulsar.common.policies.data.ClusterData localCluster,
ServiceConfiguration config) |
WebSocketService(WebSocketProxyConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addConsumer(ConsumerHandler consumer) |
boolean |
addProducer(ProducerHandler producer) |
boolean |
addReader(ReaderHandler reader) |
void |
close() |
AuthenticationService |
getAuthenticationService() |
AuthorizationService |
getAuthorizationService() |
ServiceConfiguration |
getConfig() |
ConfigurationCacheService |
getConfigurationCache() |
org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<ConsumerHandler>> |
getConsumers() |
ScheduledExecutorService |
getExecutor() |
ZooKeeperCache |
getGlobalZkCache() |
org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<ProducerHandler>> |
getProducers() |
ProxyStats |
getProxyStats() |
org.apache.pulsar.client.api.PulsarClient |
getPulsarClient() |
org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<ReaderHandler>> |
getReaders() |
ZooKeeperClientFactory |
getZooKeeperClientFactory() |
boolean |
isAuthenticationEnabled() |
boolean |
isAuthorizationEnabled() |
boolean |
removeConsumer(ConsumerHandler consumer) |
boolean |
removeProducer(ProducerHandler producer) |
boolean |
removeReader(ReaderHandler reader) |
void |
start() |
public WebSocketService(WebSocketProxyConfiguration config)
public WebSocketService(org.apache.pulsar.common.policies.data.ClusterData localCluster,
ServiceConfiguration config)
public void start()
throws PulsarServerException,
org.apache.pulsar.client.api.PulsarClientException,
MalformedURLException,
javax.servlet.ServletException,
javax.websocket.DeploymentException
PulsarServerExceptionorg.apache.pulsar.client.api.PulsarClientExceptionMalformedURLExceptionjavax.servlet.ServletExceptionjavax.websocket.DeploymentExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic AuthenticationService getAuthenticationService()
public AuthorizationService getAuthorizationService()
public ZooKeeperCache getGlobalZkCache()
public ZooKeeperClientFactory getZooKeeperClientFactory()
public org.apache.pulsar.client.api.PulsarClient getPulsarClient()
throws IOException
IOExceptionpublic ProxyStats getProxyStats()
public ConfigurationCacheService getConfigurationCache()
public ScheduledExecutorService getExecutor()
public boolean isAuthenticationEnabled()
public boolean isAuthorizationEnabled()
public boolean addProducer(ProducerHandler producer)
public org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<ProducerHandler>> getProducers()
public boolean removeProducer(ProducerHandler producer)
public boolean addConsumer(ConsumerHandler consumer)
public org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<ConsumerHandler>> getConsumers()
public boolean removeConsumer(ConsumerHandler consumer)
public boolean addReader(ReaderHandler reader)
public org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<ReaderHandler>> getReaders()
public boolean removeReader(ReaderHandler reader)
public ServiceConfiguration getConfig()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.