Style Intelligence v12.0

inetsoft.sree.schedule
Class ScheduleClient

java.lang.Object
  extended by inetsoft.sree.schedule.ScheduleClient

public class ScheduleClient
extends Object

Class providing client-side access to the schedule server.


Constructor Summary
ScheduleClient()
          Default constructor.
 
Method Summary
static ScheduleClient getScheduleClient()
          Get a singleton of the ScheduleClient
static Date getScheduleStartDate()
          Get the schedule start Date.
 boolean isRunning()
          Determines if the schedule server is running.
 boolean isRunning(long timeout)
          Determines if the schedule server is running.
 boolean isRunning(long timeout, boolean refresh)
          Determines if the schedule server is running.
 boolean isRunning(String server)
          Determines if the schedule server is running.
 boolean isSchedulerRunning()
          Determines if the schedule server being used is running.
 boolean isSchedulerRunning(boolean isLocal)
          Determines if the schedule server being used is running.
 boolean runNow(String task)
          Return status of startup
 void startServer()
          Starts the schedule server.
 void startServer(boolean isLocal)
          Starts the schedule server.
 boolean stopNow(String task)
          Return status of stop
 void stopServer()
          Stops the schedule server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleClient

public ScheduleClient()
Default constructor. If this class is used to implement the Enterprise Manager interface controls, then rather use the Singleton method getScheduleClient(..) to get an instance.

Method Detail

startServer

public void startServer()
                 throws Exception
Starts the schedule server.

Throws:
Exception

startServer

public void startServer(boolean isLocal)
                 throws Exception
Starts the schedule server.

Throws:
Exception

stopServer

public void stopServer()
                throws RemoteException
Stops the schedule server.

Throws:
RemoteException

stopNow

public boolean stopNow(String task)
                throws RemoteException
Return status of stop

Returns:
true if task is stopped
Throws:
RemoteException

runNow

public boolean runNow(String task)
               throws RemoteException
Return status of startup

Returns:
true if task is started
Throws:
RemoteException

isRunning

public boolean isRunning()
Determines if the schedule server is running.

Returns:
true if sscheduler is running, otherwise false

isRunning

public boolean isRunning(long timeout)
Determines if the schedule server is running.

Returns:
true if sscheduler is running, otherwise false

isRunning

public boolean isRunning(String server)
Determines if the schedule server is running.

Returns:
true if sscheduler is running, otherwise false

isSchedulerRunning

public boolean isSchedulerRunning()
Determines if the schedule server being used is running.

Returns:
true if sscheduler is running, otherwise false

isSchedulerRunning

public boolean isSchedulerRunning(boolean isLocal)
Determines if the schedule server being used is running.

Parameters:
isLocal - the running state of local scheduler or main scheduler.
Returns:
true if sscheduler is running, otherwise false

isRunning

public boolean isRunning(long timeout,
                         boolean refresh)
Determines if the schedule server is running.

Returns:
true if sscheduler is running, otherwise false

getScheduleClient

public static ScheduleClient getScheduleClient()
Get a singleton of the ScheduleClient

Returns:
a singleton of this class

getScheduleStartDate

public static Date getScheduleStartDate()
Get the schedule start Date.


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