|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
darx.Darx
public class Darx
This is the server implementation which, as main objective, provides the means for running DARX tasks on the local host.
Field Summary | |
---|---|
protected static java.rmi.registry.Registry |
local_registry
The RMIregistry serving this specific location ( |
protected static java.lang.String |
myName
The local server's name |
protected static int |
myPortNb
The local server's port number |
protected static java.lang.String |
myURL
The local server's URL |
protected static int |
ns_port_nb
The port number of the name server. |
protected static java.lang.String |
ns_url
The URL of the name server. |
protected static NameServer |
nserver
The stub providing access to the name server functionalities. |
static java.lang.String |
SERVICE_NAME
The generic service name |
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
Darx()
Constructs a new DARX server instance. |
Method Summary | |
---|---|
(package private) static void |
analyseCommandLine(java.lang.String[] parameters)
Analyses the command line in order to fill in specific runtime info: the URL and port number of the name server if the default value is not used, as well as the port number of the DARX server if the default value (6789) is not used. |
TaskShellHandle |
createReplicant(ReplicantInfo info,
DarxTask task)
Creates a task replica on the current server. |
RemoteTask |
findTask(java.lang.String task_name)
Generates a remote reference to the current leader of the task which corresponds to the given generic name. |
void |
killReplicant(java.lang.String task_name)
Destroys the local replicant corresponding to the specified task. |
static void |
main(java.lang.String[] params)
|
RemoteTask |
startTask(DarxTask task)
Starts the execution of a new replication group leader on the current server. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static NameServer nserver
protected static java.lang.String ns_url
protected static int ns_port_nb
protected static java.rmi.registry.Registry local_registry
protected static java.lang.String myURL
protected static java.lang.String myName
protected static int myPortNb
public static final java.lang.String SERVICE_NAME
Constructor Detail |
---|
public Darx() throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public static void main(java.lang.String[] params)
static void analyseCommandLine(java.lang.String[] parameters)
parameters
- the String array containing the parameters, can be
void if default values are used and debug mode is offpublic RemoteTask startTask(DarxTask task) throws java.rmi.RemoteException
startTask
in interface DarxServer
task
- the DarxTask
to be started on this server.
java.rmi.RemoteException
DarxTask.activateTask(String, int)
public TaskShellHandle createReplicant(ReplicantInfo info, DarxTask task) throws java.rmi.RemoteException
TaskShell
of the group
leader when it has to be replicated.
createReplicant
in interface DarxServer
info
- the ReplicantInfo
of the new replica.task
- the DarxTask
to be replicated on this server.
java.rmi.RemoteException
public void killReplicant(java.lang.String task_name) throws java.rmi.RemoteException
killReplicant
in interface DarxServer
task_name
- the name of the task to which the replicant belongs
java.rmi.RemoteException
public RemoteTask findTask(java.lang.String task_name) throws java.rmi.RemoteException
NameServer
services.
findTask
in interface DarxServer
java.rmi.RemoteException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |