public class SingleObjectPoolServiceTracker<S> extends AbstractObjectPoolServiceTracker<S>
Modifier and Type | Class and Description |
---|---|
static interface |
SingleObjectPoolServiceTracker.ServiceListener<S> |
AbstractObjectPoolServiceTracker.PoolHandler
serviceId
Constructor and Description |
---|
SingleObjectPoolServiceTracker(ObjectPoolTracker<S> poolTracker,
String serviceId,
SingleObjectPoolServiceTracker.ServiceListener<S> listener) |
Modifier and Type | Method and Description |
---|---|
S |
getCurrentService() |
protected int |
getPriority(Dictionary<?,?> properties) |
protected int |
getPriority(Dictionary<?,?> properties,
int defaultPriority) |
protected void |
handleServiceAdded(S service,
Dictionary<?,?> properties) |
protected void |
handleServiceModified(S service,
Dictionary<?,?> properties) |
protected void |
handleServiceRemoved(S service,
Dictionary<?,?> properties) |
protected void |
update() |
close, handlePoolAdd, handlePoolModified, handlePoolRemove, open
public SingleObjectPoolServiceTracker(ObjectPoolTracker<S> poolTracker, String serviceId, SingleObjectPoolServiceTracker.ServiceListener<S> listener)
protected int getPriority(Dictionary<?,?> properties)
protected int getPriority(Dictionary<?,?> properties, int defaultPriority)
protected void handleServiceAdded(S service, Dictionary<?,?> properties)
handleServiceAdded
in class AbstractObjectPoolServiceTracker<S>
protected void handleServiceModified(S service, Dictionary<?,?> properties)
handleServiceModified
in class AbstractObjectPoolServiceTracker<S>
protected void handleServiceRemoved(S service, Dictionary<?,?> properties)
handleServiceRemoved
in class AbstractObjectPoolServiceTracker<S>
protected void update()
public S getCurrentService()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.