|
Nuxeo Enterprise Platform 5.4 | |||||||||
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 java.lang.String |
DEFAULT_LOCATOR
|
static java.lang.String |
INVOKER_NAME
|
static ComponentName |
NAME
|
Constructor Summary | |
---|---|
RemotingService()
|
Method Summary | |
---|---|
void |
activate(ComponentContext context)
Activates the component. |
static Server |
connect(java.lang.String locatorURI)
|
static Server |
connect(java.lang.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 java.lang.String |
getServerURI(java.lang.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(java.lang.String[] args)
|
static java.lang.String |
ping(java.lang.String host,
int port)
Deprecated. should no more be used - use instead AutoConfigurationService |
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
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 java.lang.String INVOKER_NAME
public static final ComponentName NAME
public static final java.lang.String DEFAULT_LOCATOR
Constructor Detail |
---|
public RemotingService()
Method Detail |
---|
public static Server connect(java.lang.String locatorURI) throws java.lang.Exception
java.lang.Exception
public static Server connect(java.lang.String host, int port) throws java.lang.Exception
host
- the remote hostport
- the remote port
java.lang.Exception
public static void disconnect(Server server)
@Deprecated public static java.lang.String getServerURI(java.lang.String host, int port)
@Deprecated public static java.lang.String ping(java.lang.String host, int port)
AutoConfigurationService
public void activate(ComponentContext context) throws java.lang.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
java.lang.Exception
- if an error occurs during activationpublic InvokerLocator getServerLocator()
public TransporterServer getTransporterServer()
public void deactivate(ComponentContext context) throws java.lang.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
java.lang.Exception
- if an error occurs during activationpublic Server getServer()
public boolean isServer()
public static void main(java.lang.String[] args)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |