net.refractions.udig.catalog.ui.workflow
Class ConnectionFailureState
java.lang.Object
net.refractions.udig.catalog.ui.workflow.Workflow.State
net.refractions.udig.catalog.ui.workflow.ConnectionFailureState
public class ConnectionFailureState
- extends Workflow.State
A State that will occur if no services were able to be created from a param map or a URL. This state is designed
to explain "why" the failure occurred.
- Since:
- 1.1.0
- Author:
- Jesse
Constructor Summary |
ConnectionFailureState(java.util.List<java.net.URL> urls,
java.util.Map<java.lang.String,java.io.Serializable> params)
|
Method Summary |
java.lang.String |
getName()
|
java.util.Map<java.lang.String,java.io.Serializable> |
getParams()
|
java.util.Map<java.lang.String,java.util.List<net.refractions.udig.catalog.ui.workflow.ConnectionFailureState.Data>> |
getReports()
|
java.util.List<java.net.URL> |
getUrls()
|
void |
init(IProgressMonitor monitor)
Initialize the state. |
boolean |
run(IProgressMonitor monitor)
Performs any "hard" work. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionFailureState
public ConnectionFailureState(java.util.List<java.net.URL> urls,
java.util.Map<java.lang.String,java.io.Serializable> params)
getName
public java.lang.String getName()
- Specified by:
getName
in class Workflow.State
getParams
public java.util.Map<java.lang.String,java.io.Serializable> getParams()
getUrls
public java.util.List<java.net.URL> getUrls()
getReports
public java.util.Map<java.lang.String,java.util.List<net.refractions.udig.catalog.ui.workflow.ConnectionFailureState.Data>> getReports()
init
public void init(IProgressMonitor monitor)
throws java.io.IOException
- Description copied from class:
Workflow.State
- Initialize the state. This is the second method in the lifecycle of
the state. It is called after #setPrevious(). If the state needs to
"seed" itself with any context, that should occur here.
- Overrides:
init
in class Workflow.State
- Throws:
java.io.IOException
run
public boolean run(IProgressMonitor monitor)
throws java.io.IOException
- Description copied from class:
Workflow.State
- Performs any "hard" work. This method is provided is provided for
states which have to block to get work done. For instance, making
a connection to a remote service. This method returns a boolean
which signals wether the state was able to get the work done.
- Overrides:
run
in class Workflow.State
- Parameters:
monitor
- A progress monitor.
- Returns:
- True if the state was able to complete its job, otherwise
false.
- Throws:
java.io.IOException