Style Intelligence v12.0

inetsoft.sree.schedule
Class ScheduleServer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by inetsoft.sree.schedule.ScheduleServer
All Implemented Interfaces:
Schedule, TestableRemote, Serializable, Remote

public class ScheduleServer
extends UnicastRemoteObject
implements Schedule

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ScheduleServer()
          Default constructor.
 
Method Summary
static void main(String[] args)
          Create a new schedule process.
 void runNow(String taskName)
          Run a task immediately.
 void setID(String identifier)
          Set the unique identifier for this scheduler.
 void start()
          Start the schedule server.
 void stop()
          Stop the schedule server.
 void stopNow(String taskName)
          Stop a task immediately.
 void test()
          To test whether the remote schedule is running.
 
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
 

Constructor Detail

ScheduleServer

public ScheduleServer()
               throws RemoteException
Default constructor.

Throws:
RemoteException
Method Detail

start

public void start()
           throws RemoteException
Start the schedule server.

Specified by:
start in interface Schedule
Throws:
RemoteException

stop

public void stop()
          throws RemoteException
Stop the schedule server.

Specified by:
stop in interface Schedule
Throws:
RemoteException

runNow

public void runNow(String taskName)
            throws RemoteException
Run a task immediately.

Specified by:
runNow in interface Schedule
Parameters:
taskName - the name of task
Throws:
RemoteException

stopNow

public void stopNow(String taskName)
             throws RemoteException
Stop a task immediately.

Specified by:
stopNow in interface Schedule
Parameters:
taskName - the name of task
Throws:
RemoteException

main

public static void main(String[] args)
Create a new schedule process.

Parameters:
args - args[0] can contain the identfier for the scheduler.

setID

public void setID(String identifier)
Set the unique identifier for this scheduler.


test

public void test()
          throws RemoteException
To test whether the remote schedule is running.

Specified by:
test in interface TestableRemote
Throws:
RemoteException

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.