|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.router.StandardRoutingService
Use the newStandardRoutingService
static factory method(s),
not the StandardRoutingService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
QUEUE_PREFIX
|
private static String |
RESOURCE
|
Hashtable |
routers
Supported API: false |
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.router.RoutingService |
ROUTERS |
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardRoutingService()
|
Method Summary | |
private void |
clearQueues(Hashtable routers)
|
String |
getConceptualClassname()
Deprecated. |
private RouterMethodArg |
getMethodArg(Object targetObject)
|
String |
getQueueName(int routerNum,
int qNum)
Supported API: false |
String |
getQueueName(RouterIfc router,
int qNum)
Supported API: false |
Hashtable |
getRouters()
Gets the object for the association that plays role: routers. |
boolean |
isEmpty(ProcessingQueue pq)
Supported API: false |
static StandardRoutingService |
newStandardRoutingService()
Default factory for the class. |
protected void |
performStartupProcess()
Supported API: false |
void |
postMethod(RouterIfc router,
Method method,
Serializable targetObject,
Serializable[] args)
Supported API: false |
private void |
printAllRoutersConfig()
|
private void |
processImmediateMode(RouterIfc router,
Method method,
boolean putCoverWrapper,
Serializable targetObject,
Serializable[] args)
|
private void |
processImmediateMode(RouterIfc router,
Method method,
boolean putCoverWrapper,
Serializable targetObject,
Serializable[] args,
ScheduleHistory hItem)
processImmediateMode - used immediate mode and when executing "todo" items. |
static void |
processToDoList(String routerName,
ScheduleHistory hItem)
This method should be scheduled for execution by wt.scheduler. |
private void |
processTodoMode(RouterIfc router,
Method method,
Serializable targetObject,
Serializable[] args)
|
void |
subscribeOnRoutingEvent(Class eventClass,
RouterIfc router)
Supported API: false |
static void |
testRouter(Serializable t_obj)
|
Method |
toMethod(String methodSpec)
Supported API: false |
static void |
wrapperForPersistentTarg(ObjectReference targObjRef,
Serializable[] invocationDesc,
String t_method,
String t_class)
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String QUEUE_PREFIX
public final Hashtable routers
Constructor Detail |
public StandardRoutingService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public static StandardRoutingService newStandardRoutingService() throws WTException
WTException
public static void processToDoList(String routerName, ScheduleHistory hItem)
routerName
- hItem
- public static void wrapperForPersistentTarg(ObjectReference targObjRef, Serializable[] invocationDesc, String t_method, String t_class) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
targObjRef
- invocationDesc
- t_method
- t_class
-
IllegalAccessException
IllegalArgumentException
InvocationTargetException
public void postMethod(RouterIfc router, Method method, Serializable targetObject, Serializable[] args) throws WTException
postMethod
in interface RoutingService
router
- method
- targetObject
- args
-
WTException
public Method toMethod(String methodSpec) throws WTPropertyVetoException
toMethod
in interface RoutingService
methodSpec
-
WTPropertyVetoException
public String getQueueName(RouterIfc router, int qNum)
getQueueName
in interface RoutingService
router
- qNum
-
public String getQueueName(int routerNum, int qNum)
getQueueName
in interface RoutingService
routerNum
- qNum
-
public boolean isEmpty(ProcessingQueue pq) throws WTException
isEmpty
in interface RoutingService
pq
-
WTException
public void subscribeOnRoutingEvent(Class eventClass, RouterIfc router)
subscribeOnRoutingEvent
in interface RoutingService
eventClass
- router
- public Hashtable getRouters()
getRouters
in interface RoutingService
private void processImmediateMode(RouterIfc router, Method method, boolean putCoverWrapper, Serializable targetObject, Serializable[] args) throws WTException
WTException
private void processImmediateMode(RouterIfc router, Method method, boolean putCoverWrapper, Serializable targetObject, Serializable[] args, ScheduleHistory hItem) throws WTException
router
- router reference to know the RoundRobinRouter instancemethod
- method to be executed from FIFO ( i.e. "invokeScheduled" )targetObject
- principal object parameterargs
- additional args for the "invokeScheduled" method:
args[0] = actual method to invoke
args[1] = other args for the actual method.
args[2] = ScheduleHistory object
WTException
private void processTodoMode(RouterIfc router, Method method, Serializable targetObject, Serializable[] args) throws WTException
WTException
private void clearQueues(Hashtable routers) throws WTException
WTException
private RouterMethodArg getMethodArg(Object targetObject) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public static void testRouter(Serializable t_obj)
private void printAllRoutersConfig()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |