Skip navigation links


com.essbase.eas.server.fireforget
Class WorkScheduler

java.lang.Object
  extended by com.essbase.eas.server.fireforget.WorkScheduler


public final class WorkScheduler
extends java.lang.Object

WorkScheduler Coordinates requested work with available threads

Version:
1.00 07/18/2000
Author:
Brendan Gaul

Method Summary
 java.lang.String fireAndForget(java.lang.String userID, java.lang.String action_name, java.lang.String source, java.lang.Object o, java.lang.String method_name, java.lang.Object[] args)
          This is the method used by all code to schedule a fire-and-forget action.
 java.lang.String fireAndForget(java.lang.String userID, java.lang.String action_name, java.lang.String source, java.lang.String target, java.lang.Object o, java.lang.String method_name, java.lang.Object[] args)
          This is the method used by all code to schedule a fire-and-forget action.
 java.lang.String fireAndForget(java.lang.String userID, java.lang.String action_name, java.lang.String source, java.lang.String target, java.lang.Object o, java.lang.String method_name, java.lang.Object[] args, boolean workNeedsID)
           
 java.lang.String fireAndForget(java.lang.String userID, java.lang.String action_name, java.lang.String source, java.lang.String target, java.lang.Object obj, java.lang.String method_name, java.lang.Object[] args, boolean workNeedsID, Work.ITaskCompleted onTaskCompletion)
           
 int getActiveCount()
           
static WorkScheduler getInstance()
           
 Work lookup(java.lang.String action_name, java.lang.Class objectClass, java.lang.String method_name, java.lang.Object[] args)
           
 void removeStatusItem(java.lang.String id)
          Removes record of Work object
 void shutdown()
          Initiates shutdown.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getInstance

public static WorkScheduler getInstance()

fireAndForget

public java.lang.String fireAndForget(java.lang.String userID,
                                      java.lang.String action_name,
                                      java.lang.String source,
                                      java.lang.String target,
                                      java.lang.Object o,
                                      java.lang.String method_name,
                                      java.lang.Object[] args,
                                      boolean workNeedsID)

fireAndForget

public java.lang.String fireAndForget(java.lang.String userID,
                                      java.lang.String action_name,
                                      java.lang.String source,
                                      java.lang.String target,
                                      java.lang.Object obj,
                                      java.lang.String method_name,
                                      java.lang.Object[] args,
                                      boolean workNeedsID,
                                      Work.ITaskCompleted onTaskCompletion)

fireAndForget

public java.lang.String fireAndForget(java.lang.String userID,
                                      java.lang.String action_name,
                                      java.lang.String source,
                                      java.lang.String target,
                                      java.lang.Object o,
                                      java.lang.String method_name,
                                      java.lang.Object[] args)
This is the method used by all code to schedule a fire-and-forget action. The signature must conform to the following:
  1. 1'st arg - unique user identifier.
  2. 2'nd arg - name of this command to be displayed on screen.
  3. 3'rd arg - reference to the class instance that the method will be called against.
  4. 4'th arg - string name of the method to be called on above class instance.
  5. 5'th arg - an array of the objects passed to the method as arguments
  6. 6'th arg - tells work unit if its action requires its process ID
  7. 7'th arg - can contain any object which can be used to do some specialized processing (like saving archive location to disk in case archive data command was successful) on completion of task.

fireAndForget

public java.lang.String fireAndForget(java.lang.String userID,
                                      java.lang.String action_name,
                                      java.lang.String source,
                                      java.lang.Object o,
                                      java.lang.String method_name,
                                      java.lang.Object[] args)
This is the method used by all code to schedule a fire-and-forget action. The signature must conform to the following: *
  1. 1'st arg - unique user identifier. *
  2. 2'nd arg - name of this command to be displayed on screen. *
  3. 3'rd arg - reference to the class instance that the method will be called against.
  4. 4'th arg - string name of the method to be called on above class instance.
  5. 5'th arg - an array of the objects passed to the method as arguments *
  6. 6'th arg - tells work unit if its action requires its process ID *

shutdown

public void shutdown()
Initiates shutdown. Propagates notice to all WorkThreads.

removeStatusItem

public void removeStatusItem(java.lang.String id)
Removes record of Work object

getActiveCount

public int getActiveCount()

lookup

public Work lookup(java.lang.String action_name,
                   java.lang.Class objectClass,
                   java.lang.String method_name,
                   java.lang.Object[] args)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.