rrdService.service
Class RoundRobinService

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--rrdService.service.RoundRobinService
All Implemented Interfaces:
java.rmi.Remote, RoundRobinServiceItf, java.io.Serializable

public class RoundRobinService
extends java.rmi.server.UnicastRemoteObject
implements RoundRobinServiceItf

The class RoundRobinService is the implemtation of RoundRobinService

Version:
1.0 date : 15/07/2001
key-word
RMI
Author:
Pellier Damien
See Also:
RoundRobinService, RoundRobinServiceItf, Serialized Form

Field Summary
private static RoundRobinLibraryItf homeRoundRobinLibrary
          Ref on stub of homeRoundRobinLibrary
static long imageGCClock
          Time between two executions of th image grabage collector
static LockTable lockTable
          Table of lock on RoundRobin
static java.lang.String rmi
           
private static java.lang.String serviceMountLibrary
          Mount library of RoundRobinService
private static int servicePort
          Port of RoundRobinService
static java.lang.String serviceURL
          URL of RoundRobinService
static java.util.TimeZone timeZone
          time zone of reference for rrdService
 
Fields inherited from class java.rmi.server.UnicastRemoteObject
csf, port, portFactoryParamTypes, portParamTypes, serialVersionUID, ssf
 
Fields inherited from class java.rmi.server.RemoteServer
log, logname
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RoundRobinService()
          Constructor of class RoundRobinService
 
Method Summary
private static RoundRobinLibraryItf createHomeLibrary(java.lang.String path)
          createHomeLibrary create the directory of the home library
 RoundRobinLibraryItf getServiceMountLibrary()
          getServiceMountDirectory return the library of mount of RoundRobinService
 int getServicePort()
          getServicePort return the port of RoundRobinService
 java.lang.String getServiceURL()
          getServiceURL return the URL of RoundRobinService
 java.util.TimeZone getTimeZone()
          getTimeZone returns the time zone of reference of the rrdService
private static void initRoundRobinService(java.lang.String file)
          InitRoundRobinService bind the RoundRobinService to the registry
static void main(java.lang.String[] argv)
          Main methode main of the RoundRobinService
private static void PrintUsage()
          Display usage of the command line
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
, clone, exportObject, exportObject, exportObject, exportObject, readObject, reexport, 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, writeObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

homeRoundRobinLibrary

private static RoundRobinLibraryItf homeRoundRobinLibrary
Ref on stub of homeRoundRobinLibrary

imageGCClock

public static long imageGCClock
Time between two executions of th image grabage collector

lockTable

public static LockTable lockTable
Table of lock on RoundRobin

rmi

public static java.lang.String rmi

serviceMountLibrary

private static java.lang.String serviceMountLibrary
Mount library of RoundRobinService

servicePort

private static int servicePort
Port of RoundRobinService

serviceURL

public static java.lang.String serviceURL
URL of RoundRobinService

timeZone

public static java.util.TimeZone timeZone
time zone of reference for rrdService
Constructor Detail

RoundRobinService

public RoundRobinService()
                  throws java.rmi.RemoteException
Constructor of class RoundRobinService
Method Detail

createHomeLibrary

private static RoundRobinLibraryItf createHomeLibrary(java.lang.String path)
                                               throws java.lang.Exception
createHomeLibrary create the directory of the home library
Parameters:
path - the path of the home library

getServiceMountLibrary

public RoundRobinLibraryItf getServiceMountLibrary()
                                            throws java.rmi.RemoteException
getServiceMountDirectory return the library of mount of RoundRobinService
Specified by:
getServiceMountLibrary in interface RoundRobinServiceItf

getServicePort

public int getServicePort()
                   throws java.rmi.RemoteException
getServicePort return the port of RoundRobinService
Specified by:
getServicePort in interface RoundRobinServiceItf

getServiceURL

public java.lang.String getServiceURL()
                               throws java.rmi.RemoteException
getServiceURL return the URL of RoundRobinService
Specified by:
getServiceURL in interface RoundRobinServiceItf

getTimeZone

public java.util.TimeZone getTimeZone()
                               throws java.rmi.RemoteException
getTimeZone returns the time zone of reference of the rrdService
Specified by:
getTimeZone in interface RoundRobinServiceItf

initRoundRobinService

private static void initRoundRobinService(java.lang.String file)
                                   throws java.lang.Exception
InitRoundRobinService bind the RoundRobinService to the registry
Parameters:
file - the file of config

main

public static void main(java.lang.String[] argv)
Main methode main of the RoundRobinService
Parameters:
argv: - the string array which is the command line

PrintUsage

private static void PrintUsage()
Display usage of the command line

Copyright 1885-2001 FIRMENICH SA, Geneva

Submit a bug or feature
Copyright 1885-2001 FIRMENICH SA, Geneva,
All Rights Reserved.