Package org.cometd.oort
Class OortContainer<T>
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.cometd.oort.OortObject<T>
-
- org.cometd.oort.OortContainer<T>
-
- All Implemented Interfaces:
java.lang.Iterable<OortObject.Info<T>>
,java.util.EventListener
,ConfigurableServerChannel.Initializer
,Oort.CometListener
,org.eclipse.jetty.util.component.Dumpable
,org.eclipse.jetty.util.component.LifeCycle
public abstract class OortContainer<T> extends OortObject<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cometd.oort.OortObject
OortObject.Data<T>, OortObject.Factory<T>, OortObject.Info<T>, OortObject.Listener<T>, OortObject.Merger<T,R>, OortObject.Result<R>
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener, org.eclipse.jetty.util.component.AbstractLifeCycle.StopException
-
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.Initializer
ConfigurableServerChannel.Initializer.Persistent
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.cometd.oort.Oort.CometListener
Oort.CometListener.Event
-
-
Field Summary
-
Fields inherited from class org.cometd.oort.OortObject
OORT_OBJECTS_CHANNEL
-
-
Constructor Summary
Constructors Constructor Description OortContainer(Oort oort, java.lang.String name, OortObject.Factory<T> factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
cometLeft(Oort.CometListener.Event event)
Callback method invoked when a comet leaves the cloudprotected void
doStop()
protected abstract boolean
isItemUpdate(java.util.Map<java.lang.String,java.lang.Object> data)
protected abstract void
onItem(OortObject.Info<T> info, java.util.Map<java.lang.String,java.lang.Object> data)
protected void
onObject(java.util.Map<java.lang.String,java.lang.Object> data)
-
Methods inherited from class org.cometd.oort.OortObject
addListener, cometJoined, configureChannel, deserialize, doStart, dump, getChannelName, getFactory, getInfo, getInfoByObject, getInfos, getLocalSession, getName, getOort, iterator, merge, newInfo, notifyRemoved, notifyUpdated, pullInfo, pushInfo, removeListener, removeListeners, serialize, setAndShare, toString
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop
-
-
-
-
Constructor Detail
-
OortContainer
public OortContainer(Oort oort, java.lang.String name, OortObject.Factory<T> factory)
-
-
Method Detail
-
doStop
protected void doStop()
- Overrides:
doStop
in classOortObject<T>
-
cometLeft
public void cometLeft(Oort.CometListener.Event event)
Description copied from interface:Oort.CometListener
Callback method invoked when a comet leaves the cloud- Specified by:
cometLeft
in interfaceOort.CometListener
- Overrides:
cometLeft
in classOortObject<T>
- Parameters:
event
- the comet event
-
onObject
protected void onObject(java.util.Map<java.lang.String,java.lang.Object> data)
- Overrides:
onObject
in classOortObject<T>
-
isItemUpdate
protected abstract boolean isItemUpdate(java.util.Map<java.lang.String,java.lang.Object> data)
-
onItem
protected abstract void onItem(OortObject.Info<T> info, java.util.Map<java.lang.String,java.lang.Object> data)
-
-