|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.repository.cluster.ClusteringService
public class ClusteringService

The service that provides the observation bus for a clustered (or unclustered) environment.
| Nested Class Summary | |
|---|---|
protected class |
ClusteringService.Administrator
The administrative component for this service. |
| Constructor Summary | |
|---|---|
ClusteringService()
|
|
| Method Summary | |
|---|---|
protected ClusteringConfig |
createDefaultConfiguration()
|
ServiceAdministrator |
getAdministrator()
|
ExecutionContext |
getExecutionContext()
|
boolean |
hasObservers()
Determine whether this particular bus currently has any observers. |
protected boolean |
isServiceTerminated()
|
void |
notify(Changes changes)
Method that is called for each set of changes from the Observable instance(s) with which this
observer is registered. |
boolean |
register(Observer observer)
Register the supplied observer. |
boolean |
setClusteringConfig(ClusteringConfig config)
Set the configuration for the clustering. |
void |
setExecutionContext(ExecutionContext executionContext)
|
void |
shutdown()
Unregister all registered observers, and mark this as no longer accepting new registered observers. |
protected void |
shutdownService()
|
void |
start()
Prepare this bus for operation by starting any resources. |
protected void |
startService()
|
boolean |
unregister(Observer observer)
Unregister the supplied observer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusteringService()
| Method Detail |
|---|
public ExecutionContext getExecutionContext()
public void setExecutionContext(ExecutionContext executionContext)
executionContext - Sets executionContext to the specified value.public boolean setClusteringConfig(ClusteringConfig config)
config - the new configuration, or null if the default configuration should be used
public boolean hasObservers()
hasObservers in interface ObservationBusObservationBus.hasObservers()public boolean register(Observer observer)
register in interface Observableobserver - the observer to be added; may be null
Observable.register(org.modeshape.graph.observe.Observer)public boolean unregister(Observer observer)
unregister in interface Observableobserver - the observer to be removed; may not be null
Observable.unregister(org.modeshape.graph.observe.Observer)public void notify(Changes changes)
set of changes from the Observable instance(s) with which this
observer is registered.
notify in interface Observerchanges - the changes that are being publishedObserver.notify(org.modeshape.graph.observe.Changes)public ServiceAdministrator getAdministrator()
getAdministrator in interface AdministeredServiceAdministeredService.getAdministrator()public void start()
This is equivalent to calling getAdminstrator().start() and can be called multiple times.
start in interface ObservationBusObservationBus.start()public void shutdown()
This is equivalent to calling getAdminstrator().shutdown().
shutdown in interface ObservationBusObservationBus.shutdown()protected void startService()
protected void shutdownService()
protected boolean isServiceTerminated()
protected ClusteringConfig createDefaultConfiguration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||