public class RmiRegistryAgent extends AbstractAgent
rmi://localhost:1099| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_HOSTNAME |
static int |
DEFAULT_PORT |
static String |
DEFAULT_SERVER_URI |
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
muleContext, namePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
RmiRegistryAgent() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
String |
getDescription()
Should be a 1 line description of the agent
|
String |
getHost() |
String |
getPort() |
Registry |
getRmiRegistry() |
String |
getServerUri() |
void |
initialise()
Method used to perform any initialisation work.
|
boolean |
isCreateRegistry() |
void |
registered() |
void |
setCreateRegistry(boolean createRegistry) |
void |
setHost(String host) |
void |
setPort(String port) |
void |
setRmiRegistry(Registry rmiRegistry) |
void |
setServerUri(String serverUri) |
void |
start() |
void |
stop() |
void |
unregistered() |
getDependentAgents, getName, setMuleContext, setNameprotected transient org.apache.commons.logging.Log logger
public static final String DEFAULT_HOSTNAME
public static final int DEFAULT_PORT
public static final String DEFAULT_SERVER_URI
public String getDescription()
AgentgetDescription in interface AgentgetDescription in class AbstractAgentpublic void registered()
public void unregistered()
public void start()
throws MuleException
MuleExceptionpublic void stop()
throws MuleException
MuleExceptionpublic void dispose()
Disposablepublic void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface Initialisableinitialise in class AbstractAgentInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic Registry getRmiRegistry()
public void setRmiRegistry(Registry rmiRegistry)
public String getServerUri()
public void setServerUri(String serverUri)
public boolean isCreateRegistry()
public void setCreateRegistry(boolean createRegistry)
public String getHost()
public void setHost(String host)
public String getPort()
public void setPort(String port)
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.