Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.api
Class ServiceHost

java.lang.Object
  extended by org.nuxeo.runtime.api.ServiceHost
All Implemented Interfaces:
Serializable

public class ServiceHost
extends Object
implements Serializable

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Field Summary
static ServiceHost LOCAL_SERVER
           
 
Constructor Summary
ServiceHost()
           
ServiceHost(Class<? extends ServiceLocator> serverClass)
           
ServiceHost(Class<? extends ServiceLocator> serverClass, String[] groups)
           
 
Method Summary
 void dispose()
           
 boolean equals(Object obj)
           
 ServiceGroup[] getGroups()
           
 String getHost()
           
 int getPort()
           
 Properties getProperties()
           
 String getProperty(String key)
           
 String getProperty(String key, String defValue)
           
 ServiceLocator getServiceLocator()
           
 String getServiceLocatorClass()
           
 int hashCode()
           
 Object lookup(ServiceDescriptor sd)
           
 void setAddress(String host, int port)
           
 void setGroups(String[] groups)
           
 void setProperties(Properties properties)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCAL_SERVER

public static final ServiceHost LOCAL_SERVER
Constructor Detail

ServiceHost

public ServiceHost()

ServiceHost

public ServiceHost(Class<? extends ServiceLocator> serverClass)

ServiceHost

public ServiceHost(Class<? extends ServiceLocator> serverClass,
                   String[] groups)
Method Detail

getServiceLocatorClass

public String getServiceLocatorClass()

getHost

public String getHost()

getPort

public int getPort()

setAddress

public void setAddress(String host,
                       int port)

setProperties

public void setProperties(Properties properties)

getProperties

public Properties getProperties()

getProperty

public String getProperty(String key)

getProperty

public String getProperty(String key,
                          String defValue)

setGroups

public void setGroups(String[] groups)

getGroups

public ServiceGroup[] getGroups()

getServiceLocator

public ServiceLocator getServiceLocator()
                                 throws Exception
Throws:
Exception

dispose

public void dispose()

lookup

public Object lookup(ServiceDescriptor sd)
              throws Exception
Throws:
Exception

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.