|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.runtime.remoting.RemotingService
public class RemotingService
Field Summary | |
---|---|
static String |
DEFAULT_LOCATOR
|
static String |
INVOKER_NAME
|
static ComponentName |
NAME
|
Constructor Summary | |
---|---|
RemotingService()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
applicationStarted, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INVOKER_NAME
public static final ComponentName NAME
public static final String DEFAULT_LOCATOR
Constructor Detail |
---|
public RemotingService()
Method Detail |
---|
public static Server connect(String locatorURI) throws Exception
Exception
public static Server connect(String host, int port) throws Exception
host
- the remote hostport
- the remote port
Exception
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 context
Exception
- 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 context
Exception
- if an error occurs during activationpublic Server getServer()
public boolean isServer()
public static void main(String[] args)
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |