org.eclipse.emf.cdo.spi.common.admin
Class AbstractCDOAdmin
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.container.Container<E>
org.eclipse.net4j.util.container.SetContainer<CDOAdminRepository>
org.eclipse.emf.cdo.spi.common.admin.AbstractCDOAdmin
- All Implemented Interfaces:
- CDOAdmin, Closeable, IContainer<CDOAdminRepository>, INotifier, ILifecycle, ILifecycle.DeferrableActivation
- public abstract class AbstractCDOAdmin
- extends SetContainer<CDOAdminRepository>
- implements CDOAdmin
- Since:
- 4.1
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString |
AbstractCDOAdmin
protected AbstractCDOAdmin(long timeout)
getTimeout
public final long getTimeout()
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface Closeable
close
public void close()
- Specified by:
close
in interface Closeable
getRepositories
public CDOAdminRepository[] getRepositories()
- Specified by:
getRepositories
in interface CDOAdmin
getRepository
public CDOAdminRepository getRepository(String name)
- Specified by:
getRepository
in interface CDOAdmin
waitForRepository
public CDOAdminRepository waitForRepository(String name)
- Specified by:
waitForRepository
in interface CDOAdmin
createRepository
public CDOAdminRepository createRepository(String name,
String type,
Map<String,Object> properties)
- Description copied from interface:
CDOAdmin
- Creates a new remote
repository
and returns its administrative interface.
On the server-side the creation is delegated to an instance of org.eclipse.emf.cdo.server.spi.admin.CDOAdminHandler
that is registered with the server's container
under the given type
argument.
The name
and properties
arguments are passed on to the registered handler.
- Specified by:
createRepository
in interface CDOAdmin
deleteRepository
public boolean deleteRepository(CDOAdminRepository repository,
String type)
sortElements
protected CDOAdminRepository[] sortElements(CDOAdminRepository[] array)
- Overrides:
sortElements
in class SetContainer<CDOAdminRepository>
validateElement
protected boolean validateElement(CDOAdminRepository repository)
- Overrides:
validateElement
in class SetContainer<CDOAdminRepository>
doCreateRepository
protected abstract boolean doCreateRepository(String name,
String type,
Map<String,Object> properties)
doDeleteRepository
protected abstract boolean doDeleteRepository(String name,
String type)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.