com.ibm.manplato
Class Server

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--com.ibm.manplato.Server
All Implemented Interfaces:
java.rmi.Remote, RemoteManagementListener, java.io.Serializable, SynchronizerListener

public class Server
extends java.rmi.server.UnicastRemoteObject
implements SynchronizerListener, RemoteManagementListener

Thir class provides the executable code to start the ManplatoSync Mustiport Server.

Version:
$Rev$-$Date: 2001/05/25 03:31:36 $$State: Exp $
Author:
File Created By: Brad BARCLAY <bbarclay@ca.ibm.com>, Last Modified By: $Author: schmidtd $
See Also:
Serialized Form

Inner Class Summary
(package private)  class Server.ExitThread
           
(package private)  class Server.LogPrintStream
           
 
Field Summary
static int NETSYNC_DEFAULT_NUMLISTENERS
           
static int NETSYNC_DEFAULT_PORT
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
Server()
          ManplatoSyncServer constructor comment.
 
Method Summary
 void endOfSync(Synchronizer s)
          endOfSync method comment.
protected  void finalize()
          Insert the method's description here.
 java.util.Vector getConduits(Synchronizer s)
          getConduits method comment.
 DefaultConduit getDefaultConduit(Synchronizer s)
          Insert the method's description here.
 java.util.ListResourceBundle getLanguageBundle()
          getLanguageBundle method comment.
 DLPUserInfo getNewUserInfo(Synchronizer s)
          getNewUserInfo method comment.
 int getSyncType(Synchronizer s)
          getSyncType method comment.
static void main(java.lang.String[] args)
          Starts the application.
 void midSync(Synchronizer s)
          midSync method comment.
 void processUser(DLPUserInfo userInfo, Synchronizer s)
          processUser method comment.
 void startOfSync(Synchronizer s)
          startOfSync method comment.
 void startServer()
          Insert the method's description here.
 java.lang.Boolean stopServer(java.lang.String password)
          Informs the server to shutdown all operations.
 boolean useTimeSync(Synchronizer s)
          useTimeSync method comment.
 boolean validateUser(int userID, Synchronizer s)
          validateUser method comment.
 
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
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NETSYNC_DEFAULT_PORT

public static final int NETSYNC_DEFAULT_PORT

NETSYNC_DEFAULT_NUMLISTENERS

public static final int NETSYNC_DEFAULT_NUMLISTENERS
Constructor Detail

Server

public Server()
       throws java.rmi.RemoteException
ManplatoSyncServer constructor comment.
Method Detail

endOfSync

public void endOfSync(Synchronizer s)
endOfSync method comment.
Specified by:
endOfSync in interface SynchronizerListener

finalize

protected void finalize()
                 throws java.lang.Throwable
Insert the method's description here. Creation date: (05/03/00 1:38:56 AM)
Overrides:
finalize in class java.lang.Object

getConduits

public java.util.Vector getConduits(Synchronizer s)
getConduits method comment.
Specified by:
getConduits in interface SynchronizerListener
Following copied from interface: com.ibm.manplato.Threads.SynchronizerListener
Returns:
java.util.Vector

getDefaultConduit

public DefaultConduit getDefaultConduit(Synchronizer s)
Insert the method's description here. Creation date: (05/03/00 4:03:33 AM)
Specified by:
getDefaultConduit in interface SynchronizerListener
Returns:
com.ibm.manplato.Conduit.DefaultConduit

getLanguageBundle

public java.util.ListResourceBundle getLanguageBundle()
getLanguageBundle method comment.
Specified by:
getLanguageBundle in interface SynchronizerListener
Following copied from interface: com.ibm.manplato.Threads.SynchronizerListener
Returns:
java.util.ResourceBundle

getNewUserInfo

public DLPUserInfo getNewUserInfo(Synchronizer s)
getNewUserInfo method comment.
Specified by:
getNewUserInfo in interface SynchronizerListener
Following copied from interface: com.ibm.manplato.Threads.SynchronizerListener
Returns:
com.ibm.manplato.Protocol.Util.DLPUserInfo

getSyncType

public int getSyncType(Synchronizer s)
getSyncType method comment.
Specified by:
getSyncType in interface SynchronizerListener
Following copied from interface: com.ibm.manplato.Threads.SynchronizerListener
Returns:
int

main

public static void main(java.lang.String[] args)
Starts the application.
Parameters:
args - an array of command-line arguments

midSync

public void midSync(Synchronizer s)
midSync method comment.
Specified by:
midSync in interface SynchronizerListener

processUser

public void processUser(DLPUserInfo userInfo,
                        Synchronizer s)
processUser method comment.
Specified by:
processUser in interface SynchronizerListener
Following copied from interface: com.ibm.manplato.Threads.SynchronizerListener
Parameters:
userInfo - com.ibm.manplato.Protocol.Util.DLPUserInfo

startOfSync

public void startOfSync(Synchronizer s)
startOfSync method comment.
Specified by:
startOfSync in interface SynchronizerListener

startServer

public void startServer()
Insert the method's description here. Creation date: (05/03/00 12:57:59 AM)

stopServer

public java.lang.Boolean stopServer(java.lang.String password)
                             throws java.rmi.RemoteException
Informs the server to shutdown all operations.
Specified by:
stopServer in interface RemoteManagementListener
Parameters:
the - remote administration password.
Returns:
a Boolean object representing the status of the request. true == request accepted, false otherwise.
Throws:
java.rmi.RemoteException - Any exception thrown while processing the request.

useTimeSync

public boolean useTimeSync(Synchronizer s)
useTimeSync method comment.
Specified by:
useTimeSync in interface SynchronizerListener
Following copied from interface: com.ibm.manplato.Threads.SynchronizerListener
Returns:
boolean

validateUser

public boolean validateUser(int userID,
                            Synchronizer s)
validateUser method comment.
Specified by:
validateUser in interface SynchronizerListener
Following copied from interface: com.ibm.manplato.Threads.SynchronizerListener
Parameters:
userID - int
Returns:
boolean