com.sun.sgs.impl.util
Class AbstractKernelRunnable

java.lang.Object
  extended by com.sun.sgs.impl.util.AbstractKernelRunnable
All Implemented Interfaces:
KernelRunnable
Direct Known Subclasses:
KernelCallable, NodeMappingServerImpl.GetIdTask

public abstract class AbstractKernelRunnable
extends Object
implements KernelRunnable

A utility class that implements the getBaseTaskType method of KernelRunnable to return the class name of the concrete instance.


Constructor Summary
AbstractKernelRunnable(String name)
          Constructs an instance with the specified name.
 
Method Summary
 String getBaseTaskType()
          Returns the class name of the concrete instance.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.sgs.kernel.KernelRunnable
run
 

Constructor Detail

AbstractKernelRunnable

public AbstractKernelRunnable(String name)
Constructs an instance with the specified name. If the name is non-null, then it is included in the toString method to identify the instance.

Parameters:
name - a name for the instance
Method Detail

getBaseTaskType

public String getBaseTaskType()
Returns the class name of the concrete instance.

Specified by:
getBaseTaskType in interface KernelRunnable
Returns:
the class name of the concrete instance

toString

public String toString()

Overrides:
toString in class Object

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved