public abstract class AbstractRuleServicePublisher extends Object implements RuleServicePublisher
| Modifier and Type | Field and Description |
|---|---|
protected Collection<RuleServicePublisherListener> |
listeners |
| Constructor and Description |
|---|
AbstractRuleServicePublisher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(RuleServicePublisherListener listener)
Add listener to a publisher
|
void |
clearListeners()
Clear all listeners in publisher
|
void |
deploy(OpenLService service)
Deploys the specified service.
|
protected abstract void |
deployService(OpenLService service) |
protected void |
fireDeployListeners(OpenLService service) |
protected void |
fireUndeployListeners(String serviceName) |
Collection<RuleServicePublisherListener> |
getListeners() |
RulesDeploy.PublisherType |
getPublisherType() |
protected String |
processURL(String url) |
void |
removeListener(RuleServicePublisherListener listener)
Remove listener to a publisher
|
void |
setListeners(Collection<RuleServicePublisherListener> listeners) |
void |
setPublisherType(RulesDeploy.PublisherType publisherType) |
void |
undeploy(String serviceName)
Undeploys currently running service.
|
protected abstract void |
undeployService(String serviceName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServiceByName, getServices, isServiceDeployedprotected Collection<RuleServicePublisherListener> listeners
public void setPublisherType(RulesDeploy.PublisherType publisherType)
public RulesDeploy.PublisherType getPublisherType()
protected void fireDeployListeners(OpenLService service)
protected void fireUndeployListeners(String serviceName)
public void setListeners(Collection<RuleServicePublisherListener> listeners)
public Collection<RuleServicePublisherListener> getListeners()
public void addListener(RuleServicePublisherListener listener)
RuleServicePublisheraddListener in interface RuleServicePublisherlistener - Listener to add.public void clearListeners()
RuleServicePublisherclearListeners in interface RuleServicePublisherpublic void removeListener(RuleServicePublisherListener listener)
RuleServicePublisherremoveListener in interface RuleServicePublisherlistener - Listener to remove.protected abstract void deployService(OpenLService service) throws RuleServiceDeployException
RuleServiceDeployExceptionpublic final void deploy(OpenLService service) throws RuleServiceDeployException
RuleServicePublisherdeploy in interface RuleServicePublisherservice - Service to deploy.RuleServiceDeployExceptionprotected abstract void undeployService(String serviceName) throws RuleServiceUndeployException
RuleServiceUndeployExceptionpublic final void undeploy(String serviceName) throws RuleServiceUndeployException
RuleServicePublisherundeploy in interface RuleServicePublisherserviceName - Name of the service to undeploy.RuleServiceUndeployExceptionCopyright © 2004–2019 OpenL Tablets. All rights reserved.