public class RemotingService extends DefaultComponent
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LOCATOR |
static String |
INVOKER_NAME |
static ComponentName |
NAME |
Constructor and Description |
---|
RemotingService() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
static Server |
connect(String locatorURI) |
static Server |
connect(String host,
int port)
Helper method to connect to a remote nuxeo runtime server.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
static void |
disconnect(Server server)
Helper method to disconnect from a remote server.
|
Server |
getServer() |
InvokerLocator |
getServerLocator() |
static String |
getServerURI(String host,
int port)
Deprecated.
must be removed since from runtime 1.5.1 the invoker protocol
may be configurable
|
TransporterServer |
getTransporterServer() |
boolean |
isServer() |
static void |
main(String[] args) |
static String |
ping(String host,
int port)
Deprecated.
should no more be used - use instead
AutoConfigurationService |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public static final String INVOKER_NAME
public static final ComponentName NAME
public static final String DEFAULT_LOCATOR
public static Server connect(String host, int port) throws Exception
host
- the remote hostport
- the remote portException
public static void disconnect(Server server)
@Deprecated public static String getServerURI(String host, int port)
@Deprecated public static String ping(String host, int port)
AutoConfigurationService
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic InvokerLocator getServerLocator()
public TransporterServer getTransporterServer()
public void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic Server getServer()
public boolean isServer()
public static void main(String[] args)
Copyright © 2013 Nuxeo SA. All Rights Reserved.