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() |
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended |
createMetadataStore(String serverUrls,
int sessionTimeoutMs) |
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() |
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() |
boolean |
isAuthenticationEnabled() |
boolean |
isAuthorizationEnabled() |
boolean |
removeConsumer(ConsumerHandler consumer) |
boolean |
removeProducer(ProducerHandler producer) |
boolean |
removeReader(ReaderHandler reader) |
void |
setLocalCluster(org.apache.pulsar.common.policies.data.ClusterData clusterData) |
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 org.apache.pulsar.metadata.api.extended.MetadataStoreExtended createMetadataStore(String serverUrls, int sessionTimeoutMs) throws org.apache.pulsar.metadata.api.MetadataStoreException
org.apache.pulsar.metadata.api.MetadataStoreExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic AuthenticationService getAuthenticationService()
public AuthorizationService getAuthorizationService()
public org.apache.pulsar.client.api.PulsarClient getPulsarClient()
throws IOException
IOExceptionpublic void setLocalCluster(org.apache.pulsar.common.policies.data.ClusterData clusterData)
public 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.