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()
Server
ProductName ProductVersion
.getProductInfo
in interface Server
public 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 Server
public Properties[] getServiceHosts() throws Exception
Server
There 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 Server
Exception
public Map<String,Object[][]> getSecurityDomains() throws Exception
Server
AppConfigurationEntry
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 Server
Exception
AppConfigurationEntry
,
SecurityDomain
public Properties getProperties()
Server
getProperties
in interface Server
public ComponentName[] getComponents()
getComponents
in interface Server
public boolean hasComponent(ComponentName name)
hasComponent
in interface Server
public Collection<ComponentInstance> getActiveComponents()
getActiveComponents
in interface Server
public ComponentInstance getComponent(String name)
getComponent
in interface Server
public ComponentInstance getComponent(ComponentName name)
getComponent
in interface Server
public String getDescription()
getDescription
in interface Server
public Collection<RegistrationInfo> getRegistrations()
getRegistrations
in interface Server
public String getServerAddress()
getServerAddress
in interface Server
public ServerConfiguration getConfiguration(InvokerLocator locator, Version version) throws ConfigurationException
getConfiguration
in interface Server
ConfigurationException
public void contributeExtension(Extension extension, String xmlContent) throws Exception
Exception
public byte[] getLocalResource(ComponentName component, String name)
getLocalResource
in interface Server
public byte[] getResource(ComponentName component, String name)
getResource
in interface Server
public byte[] getClass(ComponentName component, String name)
Copyright © 2011 Nuxeo SA. All Rights Reserved.