public class ServerImpl extends Object implements Server
| Constructor and Description |
|---|
ServerImpl(RemotingService service,
RuntimeService runtime) |
| Modifier and Type | Method and Description |
|---|---|
void |
contributeExtension(Extension extension,
String xmlContent) |
Collection<ComponentInstance> |
getActiveComponents() |
byte[] |
getClass(ComponentName component,
String name) |
ComponentInstance |
getComponent(ComponentName name) |
ComponentInstance |
getComponent(String name) |
ComponentName[] |
getComponents() |
ServerConfiguration |
getConfiguration(InvokerLocator locator,
Version version) |
String |
getDescription() |
byte[] |
getLocalResource(ComponentName component,
String name) |
String |
getName() |
String |
getProductInfo()
Gets the product info as a string of the form:
ProductName ProductVersion. |
Properties |
getProperties()
Gets the runtime properties as a Java properties file content.
|
Collection<RegistrationInfo> |
getRegistrations() |
byte[] |
getResource(ComponentName component,
String name) |
Map<String,Object[][]> |
getSecurityDomains()
Gets the login configuration of this server.
|
String |
getServerAddress() |
String[] |
getServiceBindings()
Returns the service binding configuration as a string array containing the
following informations:
|
Properties[] |
getServiceHosts()
Returns the service locators as an array of service locator properties.
|
boolean |
hasComponent(ComponentName name) |
public ServerImpl(RemotingService service, RuntimeService runtime)
public String getProductInfo()
ServerProductName ProductVersion.getProductInfo in interface Serverpublic String[] getServiceBindings()
Server[group, serviceInterface, name, locator], [group, serviceInterface, name, locator], ...So each service binding takes 4 consecutive entries in the array.
getServiceBindings in interface Serverpublic Properties[] getServiceHosts() throws Exception
ServerThere are 4 special properties that can be used:
@class - the service locator class name (a String)
@host - the server host (a String)
@port - the server port (an Integer)
@groups - the server service groups (a String array)getServiceHosts in interface ServerExceptionpublic Map<String,Object[][]> getSecurityDomains() throws Exception
ServerAppConfigurationEntry objects
Since these objects are not serializable they will be represented as an
Object[] array of 3 elements:
String
String
Map
Object[3][]
array of 3 length object arrays describing the
AppConfigurationEntry.getSecurityDomains in interface ServerExceptionAppConfigurationEntry,
SecurityDomainpublic Properties getProperties()
ServergetProperties in interface Serverpublic ComponentName[] getComponents()
getComponents in interface Serverpublic boolean hasComponent(ComponentName name)
hasComponent in interface Serverpublic Collection<ComponentInstance> getActiveComponents()
getActiveComponents in interface Serverpublic ComponentInstance getComponent(String name)
getComponent in interface Serverpublic ComponentInstance getComponent(ComponentName name)
getComponent in interface Serverpublic String getDescription()
getDescription in interface Serverpublic Collection<RegistrationInfo> getRegistrations()
getRegistrations in interface Serverpublic String getServerAddress()
getServerAddress in interface Serverpublic ServerConfiguration getConfiguration(InvokerLocator locator, Version version) throws ConfigurationException
getConfiguration in interface ServerConfigurationExceptionpublic void contributeExtension(Extension extension, String xmlContent) throws Exception
Exceptionpublic byte[] getLocalResource(ComponentName component, String name)
getLocalResource in interface Serverpublic byte[] getResource(ComponentName component, String name)
getResource in interface Serverpublic byte[] getClass(ComponentName component, String name)
Copyright © 2012 Nuxeo SA. All Rights Reserved.