Framework
API instead. Will be removed in 5.2.@Deprecated public final class Platform extends Object implements Serializable
It enables the client to access platform services.
A platform is composed one or more servers running in different JVMs. The default server is the one on the same JVM as the client and must have the name "default".
Services are described by a host, port and other optional attributes and are exposing services and repositories to the local platform. These services are exposed via EJB3 remoting. If a service is not found on defined servers the platform will delegate the lookup on the local NXRuntime service registry.
Modifier and Type | Method and Description |
---|---|
void |
addServer(ServerDescriptor sd)
Deprecated.
|
void |
dispose()
Deprecated.
|
Repository |
getDefaultRepository()
Deprecated.
|
String |
getName()
Deprecated.
|
ServerDescriptor[] |
getServers()
Deprecated.
|
<T> T |
getService(Class<T> remoteItf)
Deprecated.
|
CoreSession |
openRepository(String repositoryName)
Deprecated.
|
CoreSession |
openRepository(String repositoryName,
Map<String,Serializable> ctx)
Deprecated.
|
void |
removeServer(String name)
Deprecated.
|
public Platform(String name)
public void addServer(ServerDescriptor sd) throws Exception
Exception
public void removeServer(String name)
public String getName()
public <T> T getService(Class<T> remoteItf) throws Exception
Exception
public CoreSession openRepository(String repositoryName) throws Exception
Exception
public CoreSession openRepository(String repositoryName, Map<String,Serializable> ctx) throws Exception
Exception
public ServerDescriptor[] getServers()
public Repository getDefaultRepository()
public void dispose()
Copyright © 2013 Nuxeo SA. All Rights Reserved.