Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.remoting
Class ServerImpl

java.lang.Object
  extended by org.nuxeo.runtime.remoting.ServerImpl
All Implemented Interfaces:
Server

public class ServerImpl
extends java.lang.Object
implements Server

Author:
Bogdan Stefanescu

Constructor Summary
ServerImpl(RemotingService service, RuntimeService runtime)
           
 
Method Summary
 void contributeExtension(Extension extension, java.lang.String xmlContent)
           
 java.util.Collection<ComponentInstance> getActiveComponents()
           
 byte[] getClass(ComponentName component, java.lang.String name)
           
 ComponentInstance getComponent(ComponentName name)
           
 ComponentInstance getComponent(java.lang.String name)
           
 ComponentName[] getComponents()
           
 ServerConfiguration getConfiguration(InvokerLocator locator, Version version)
           
 java.lang.String getDescription()
           
 byte[] getLocalResource(ComponentName component, java.lang.String name)
           
 java.lang.String getName()
           
 java.lang.String getProductInfo()
          Gets the product info as a string of the form: ProductName ProductVersion.
 java.util.Properties getProperties()
          Gets the runtime properties as a Java properties file content.
 java.util.Collection<RegistrationInfo> getRegistrations()
           
 byte[] getResource(ComponentName component, java.lang.String name)
           
 java.util.Map<java.lang.String,java.lang.Object[][]> getSecurityDomains()
          Gets the login configuration of this server.
 java.lang.String getServerAddress()
           
 java.lang.String[] getServiceBindings()
          Returns the service binding configuration as a string array containing the following informations: [group, serviceInterface, name, locator], [group, serviceInterface, name, locator], ...
 java.util.Properties[] getServiceHosts()
          Returns the service locators as an array of service locator properties.
 boolean hasComponent(ComponentName name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerImpl

public ServerImpl(RemotingService service,
                  RuntimeService runtime)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Server

getProductInfo

public java.lang.String getProductInfo()
Description copied from interface: Server
Gets the product info as a string of the form: ProductName ProductVersion.

Specified by:
getProductInfo in interface Server
Returns:
the product info

getServiceBindings

public java.lang.String[] getServiceBindings()
Description copied from interface: Server
Returns the service binding configuration as a string array containing the following informations:
 [group, serviceInterface, name, locator], [group, serviceInterface, name, locator], ...
 
So each service binding takes 4 consecutive entries in the array.

Specified by:
getServiceBindings in interface Server
Returns:
the service bindings

getServiceHosts

public java.util.Properties[] getServiceHosts()
                                       throws java.lang.Exception
Description copied from interface: Server
Returns the service locators as an array of service locator properties.

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)

    Specified by:
    getServiceHosts in interface Server
    Returns:
    an array containing the service locators descriptor properties
    Throws:
    java.lang.Exception

  • getSecurityDomains

    public java.util.Map<java.lang.String,java.lang.Object[][]> getSecurityDomains()
                                                                            throws java.lang.Exception
    Description copied from interface: Server
    Gets the login configuration of this server. The login configuration is a map of SecurityDomain. A security domains is defined by a name and an array of AppConfigurationEntry objects

    Since these objects are not serializable they will be represented as an Object[] array of 3 elements:

    1. the login module name stored as a String
    2. the login module control flag stored as a String
    3. the login module options stored as a Map
    So the entry value in the returned map is an Object[3][] array of 3 length object arrays describing the AppConfigurationEntry.

    Specified by:
    getSecurityDomains in interface Server
    Returns:
    a map describing the security domains available on the server
    Throws:
    java.lang.Exception
    See Also:
    AppConfigurationEntry, SecurityDomain

    getProperties

    public java.util.Properties getProperties()
    Description copied from interface: Server
    Gets the runtime properties as a Java properties file content.

    Specified by:
    getProperties in interface Server

    getComponents

    public ComponentName[] getComponents()
    Specified by:
    getComponents in interface Server

    hasComponent

    public boolean hasComponent(ComponentName name)
    Specified by:
    hasComponent in interface Server

    getActiveComponents

    public java.util.Collection<ComponentInstance> getActiveComponents()
    Specified by:
    getActiveComponents in interface Server

    getComponent

    public ComponentInstance getComponent(java.lang.String name)
    Specified by:
    getComponent in interface Server

    getComponent

    public ComponentInstance getComponent(ComponentName name)
    Specified by:
    getComponent in interface Server

    getDescription

    public java.lang.String getDescription()
    Specified by:
    getDescription in interface Server

    getRegistrations

    public java.util.Collection<RegistrationInfo> getRegistrations()
    Specified by:
    getRegistrations in interface Server

    getServerAddress

    public java.lang.String getServerAddress()
    Specified by:
    getServerAddress in interface Server

    getConfiguration

    public ServerConfiguration getConfiguration(InvokerLocator locator,
                                                Version version)
                                         throws ConfigurationException
    Specified by:
    getConfiguration in interface Server
    Throws:
    ConfigurationException

    contributeExtension

    public void contributeExtension(Extension extension,
                                    java.lang.String xmlContent)
                             throws java.lang.Exception
    Throws:
    java.lang.Exception

    getLocalResource

    public byte[] getLocalResource(ComponentName component,
                                   java.lang.String name)
    Specified by:
    getLocalResource in interface Server

    getResource

    public byte[] getResource(ComponentName component,
                              java.lang.String name)
    Specified by:
    getResource in interface Server

    getClass

    public byte[] getClass(ComponentName component,
                           java.lang.String name)
    Specified by:
    getClass in interface Server

    Nuxeo Enterprise Platform 5.4

    Copyright © 2010 Nuxeo SAS. All Rights Reserved.