Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.altara.mars.engine
Class Probe  view Probe download Probe.java

java.lang.Object
  extended byorg.altara.mars.engine.Probe
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable
Direct Known Subclasses:
SendExpectProbe

public abstract class Probe
extends java.lang.Object
implements java.lang.Runnable, java.io.Serializable

Probe is the abstract superclass of all MARS service probes.


Field Summary
protected  org.altara.mars.Service service
           
 
Constructor Summary
protected Probe()
           
protected Probe(org.altara.mars.Service service)
           
 
Method Summary
 boolean canRun()
           
protected abstract  org.altara.mars.Status doProbe()
           
 org.altara.mars.Service getService()
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 void setService(org.altara.mars.Service service)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

service

protected org.altara.mars.Service service
Constructor Detail

Probe

protected Probe()

Probe

protected Probe(org.altara.mars.Service service)
Method Detail

setService

public void setService(org.altara.mars.Service service)

getService

public org.altara.mars.Service getService()

canRun

public boolean canRun()

run

public final void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


doProbe

protected abstract org.altara.mars.Status doProbe()
                                           throws java.lang.Exception