|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.dist.Distd
Distd is an abstract class for all daemon objects. Its implementation is protocol dependent (eg CORBA or RMI). This is an abstract class that needs to be subclassed (see org.objectweb.jac.dist.rmi.RMIDistd). Daemons hold containers which themselves hold remote objects.
init()
,
newContainer(String)
,
newContainer(String,String)
,
run()
Field Summary | |
protected static Hashtable |
containers
Containers hold by the current daemon. |
protected static String[] |
flags
Registered flags. |
static long |
inputCount
The number of bytes that have been transmitted to the input of this deamon. |
protected static String |
localContainerName
Store the local container name. |
protected static String[] |
options
Registered options. |
static long |
outputCount
The number of bytes that have been transmitted to the output of this deamon. |
static String |
referenceContainerName
Store the reference container. |
protected static boolean |
verbose
verbose tells whether information message should be printed or not |
Constructor Summary | |
Distd(String[] args)
The is the main constructor of Distd. |
Method Summary | |
static boolean |
containsContainer(RemoteContainer container)
Test whether the daemon contains a given container. |
static String |
getFullHostName(String name)
Get the full host name from an incomplete host name. |
static String |
getLocalContainerName()
Get the local container name. |
abstract void |
init()
This abstract method initializes the underlying communication protocol. |
protected abstract RemoteContainer |
newContainer(String name)
This abstract method creates a new container. |
protected abstract RemoteContainer |
newContainer(String name,
String className)
This abstract method creates a new container and instantiates a given class. |
protected static Hashtable |
parseArguments(String[] args,
String[] flags,
String[] options)
Parse command line arguments composed of flags, options and files. |
abstract void |
run()
This abstract method enters the event loop of the underlying communication protocol. |
static Hashtable |
stringArrayToHashtable(String[] strs)
Store a string array into a hashtable. |
protected static void |
usage()
Display command line arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static long outputCount
public static long inputCount
public static String referenceContainerName
protected static String localContainerName
protected static final String[] flags
protected static final String[] options
protected static boolean verbose
protected static Hashtable containers
Constructor Detail |
public Distd(String[] args)
args
- command line argumentsMethod Detail |
public static Hashtable stringArrayToHashtable(String[] strs)
strs
- the string array
public abstract void init()
protected abstract RemoteContainer newContainer(String name)
name
- the container name
protected abstract RemoteContainer newContainer(String name, String className)
name
- the container nameclassName
- the name of the class to instantiate
public abstract void run()
public static String getFullHostName(String name)
For instance, if the local host name is h1:
name
- the incomplete host name
public static String getLocalContainerName()
protected static void usage()
protected static Hashtable parseArguments(String[] args, String[] flags, String[] options)
args
- command line argumentsflags
- registered flags (e.g. -verbose, -quiet, etc.)options
- registered options (e.g. -d classes, etc.)
public static boolean containsContainer(RemoteContainer container)
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |