org.eclipse.emf.cdo.server.protocol
Class ServerCDOResProtocolImpl

java.lang.Object
  extended by org.eclipse.net4j.spring.impl.LoggableImpl
      extended by org.eclipse.net4j.spring.impl.ServiceImpl
          extended by org.eclipse.net4j.core.impl.AbstractProtocol
              extended by org.eclipse.emf.cdo.core.protocol.AbstractCDOResProtocol
                  extended by org.eclipse.emf.cdo.server.protocol.ServerCDOResProtocolImpl
All Implemented Interfaces:
java.util.EventListener, CDOResProtocol, CDOResSignals, ServerCDOResProtocol, org.eclipse.net4j.core.Protocol, org.eclipse.net4j.spring.Loggable, org.eclipse.net4j.spring.Service, org.eclipse.net4j.spring.StateListener, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener

public class ServerCDOResProtocolImpl
extends AbstractCDOResProtocol
implements ServerCDOResProtocol


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.net4j.spring.impl.ServiceImpl
org.eclipse.net4j.spring.impl.ServiceImpl.ServiceStateMachine
 
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.ServerCDOResProtocol
ServerCDOResProtocol.Listener
 
Field Summary
protected  java.util.List<ServerCDOResProtocol.Listener> listeners
           
protected  Mapper mapper
           
protected  org.springframework.transaction.support.TransactionTemplate transactionTemplate
           
 
Fields inherited from class org.eclipse.net4j.spring.impl.ServiceImpl
AUTOSTART_OFF_BITS, AUTOSTART_OFF_MASK, AUTOSTART_OFF_PAD, AUTOSTART_ON_BITS, AUTOSTART_ON_MASK, AUTOSTART_ON_PAD, flags, SERVICE_BITS, SINGLETON_BITS, SINGLETON_MASK, SINGLETON_PAD, STATE_BITS, STATE_MASK, STATE_PAD, VALIDITY_CONSISTENT, VALIDITY_INCONSISTENT, VALIDITY_INVALID
 
Fields inherited from class org.eclipse.net4j.spring.impl.LoggableImpl
GUARANTEED_LOGGING
 
Fields inherited from interface org.eclipse.emf.cdo.core.CDOResProtocol
NO_MORE_RESOURCES, PROTOCOL_NAME
 
Fields inherited from interface org.eclipse.net4j.core.Protocol
CLIENT, SERVER, SYMMETRIC
 
Fields inherited from interface org.eclipse.emf.cdo.core.CDOResSignals
CREATE_RESOURCE, DELETE_RESOURCES, MOVE_RESOURCE, QUERY_ALL_RESOURCES, QUERY_SUB_RESOURCES, RESOURCES_CHANGED
 
Constructor Summary
ServerCDOResProtocolImpl()
           
 
Method Summary
 void addListener(ServerCDOResProtocol.Listener listener)
          Adds a ServerCDOResProtocol.Listener to the list of listeners to be notified about removed resources and invalidated obejcts in the scope of this ServerCDOResProtocol.
 org.eclipse.net4j.core.Indication createIndication(short signalId)
           
protected  void deactivate()
           
 void fireInvalidationNotification(java.util.Collection<java.lang.Long> modifiedOIDs)
           
 void fireRemovalNotification(java.util.Collection<java.lang.Integer> rids)
           
 void fireResourcesChangedNotification(java.util.List<ResourceChangeInfo> resourceChanges)
           
 Mapper getMapper()
           
 org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
           
 int getType()
           
 void removeListener(ServerCDOResProtocol.Listener listener)
          Removes a ServerCDOResProtocol.Listener from the list of listeners to be notified about removed resources and invalidated obejcts in the scope of this ServerCDOResProtocol.
 void setMapper(Mapper mapper)
           
 void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
protected  void validate()
           
 
Methods inherited from class org.eclipse.emf.cdo.core.protocol.AbstractCDOResProtocol
assertValidChannel, getName
 
Methods inherited from class org.eclipse.net4j.core.impl.AbstractProtocol
activate, deregisterChannel, getChannels, getProtocolManager, getTypeString, isClient, isServer, registerChannel, setProtocolManager, typeString
 
Methods inherited from class org.eclipse.net4j.spring.impl.ServiceImpl
addStateListener, adjustPrototypeBeanName, afterPropertiesSet, assertActive, assertNotNull, assertNull, assertStopped, destroy, dispose, doSet, doSet, doSet, doSet, doSet, doSet, doSet, doSet, doSet, dump, dump, dump, getPrototypeCounter, getState, isActive, isAutoStart, isSingleton, isStarted, notifyDependencyActivated, notifyDependencyDeactivating, onApplicationEvent, removeStateListener, searchInconsistency, setApplicationContext, setAutoStart, setState, start, stop, testSetState
 
Methods inherited from class org.eclipse.net4j.spring.impl.LoggableImpl
debug, debug, error, error, fatal, fatal, formatLogMessage, getBeanName, getChild, getContainer, getFullBeanName, getLogger, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isWarnEnabled, setBeanName, toString, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.net4j.core.Protocol
deregisterChannel, getChannels, getName, isClient, isServer, registerChannel
 
Methods inherited from interface org.eclipse.net4j.spring.Service
addStateListener, dump, getState, isActive, isAutoStart, isStarted, removeStateListener, start, stop, testSetState
 
Methods inherited from interface org.eclipse.net4j.spring.Loggable
debug, debug, error, error, fatal, fatal, getBeanName, getChild, getContainer, getFullBeanName, getLogger, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isWarnEnabled, warn, warn
 

Field Detail

mapper

protected Mapper mapper

transactionTemplate

protected org.springframework.transaction.support.TransactionTemplate transactionTemplate

listeners

protected transient java.util.List<ServerCDOResProtocol.Listener> listeners
Constructor Detail

ServerCDOResProtocolImpl

public ServerCDOResProtocolImpl()
Method Detail

getType

public int getType()
Specified by:
getType in interface org.eclipse.net4j.core.Protocol

createIndication

public org.eclipse.net4j.core.Indication createIndication(short signalId)
Specified by:
createIndication in interface org.eclipse.net4j.core.Protocol

getMapper

public Mapper getMapper()
Specified by:
getMapper in interface ServerCDOResProtocol

setMapper

public void setMapper(Mapper mapper)

getTransactionTemplate

public org.springframework.transaction.support.TransactionTemplate getTransactionTemplate()
Specified by:
getTransactionTemplate in interface ServerCDOResProtocol

setTransactionTemplate

public void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)

fireResourcesChangedNotification

public void fireResourcesChangedNotification(java.util.List<ResourceChangeInfo> resourceChanges)
Specified by:
fireResourcesChangedNotification in interface ServerCDOResProtocol

fireInvalidationNotification

public void fireInvalidationNotification(java.util.Collection<java.lang.Long> modifiedOIDs)
Specified by:
fireInvalidationNotification in interface ServerCDOResProtocol

fireRemovalNotification

public void fireRemovalNotification(java.util.Collection<java.lang.Integer> rids)
Specified by:
fireRemovalNotification in interface ServerCDOResProtocol

addListener

public void addListener(ServerCDOResProtocol.Listener listener)
Description copied from interface: ServerCDOResProtocol
Adds a ServerCDOResProtocol.Listener to the list of listeners to be notified about removed resources and invalidated obejcts in the scope of this ServerCDOResProtocol.

Specified by:
addListener in interface ServerCDOResProtocol
Parameters:
listener - The ServerCDOResProtocol.Listener to be added.


removeListener

public void removeListener(ServerCDOResProtocol.Listener listener)
Description copied from interface: ServerCDOResProtocol
Removes a ServerCDOResProtocol.Listener from the list of listeners to be notified about removed resources and invalidated obejcts in the scope of this ServerCDOResProtocol.

Specified by:
removeListener in interface ServerCDOResProtocol
Parameters:
listener - The ServerCDOResProtocol.Listener to be removed.


validate

protected void validate()
                 throws org.eclipse.net4j.spring.ValidationException
Overrides:
validate in class org.eclipse.net4j.core.impl.AbstractProtocol
Throws:
org.eclipse.net4j.spring.ValidationException

deactivate

protected void deactivate()
                   throws java.lang.Exception
Overrides:
deactivate in class org.eclipse.net4j.core.impl.AbstractProtocol
Throws:
java.lang.Exception

Copyright (c) 2004, 2005, 2006 Eike Stepper, Germany.
All Rights Reserved.