Class Workunit
- java.lang.Object
-
- java.util.Observable
-
- org.hpccsystems.ws.client.utils.DataSingleton
-
- org.hpccsystems.ws.client.platform.Workunit
-
public class Workunit extends DataSingleton
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Workunit.Notification
-
Field Summary
Fields Modifier and Type Field Description static DataSingletonCollection
All
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_clone()
Clone.void
abort()
Abort.void
delete()
Delete.boolean
equals(Object aThat)
protected void
fastRefresh()
protected void
fullRefresh()
static Workunit
get(Platform platform, String wuid)
Gets the.String
getApplicationValue(String key)
Gets the application value.Object
getClusterName()
Gets the cluster name.GregorianCalendar
getDate()
Gets the date.Graph[]
getGraphs()
Gets the graphs.String
getJobname()
Gets the jobname.String
getOwner()
Gets the owner.Platform
getPlatform()
Gets the platform.String
getQueryText()
Gets the query text.Result
getResult(Integer sequence)
Gets the result.Result
getResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult r)
Gets the result.Result[]
getResults()
Gets the results.String[]
getResultViews()
Gets the result views.LogicalFile[]
getSourceFiles()
Gets the source files.String
getState()
Gets the state.WUState
getStateID()
Gets the state ID.String
getWuid()
Gets the wuid.boolean
hasApplicationValue(String key)
Checks for application value.int
hashCode()
boolean
isComplete()
static boolean
isFailedState(String state)
Checks if is failed state.void
publish()
Publish.void
refreshState()
Refresh state.void
restart()
Restart.void
resubmit()
Resubmit.void
resubmit(boolean restart, boolean clone)
Resubmit.static WUState
translateWUState(String state)
Translate WU state.boolean
update(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit wu)
Update.-
Methods inherited from class org.hpccsystems.ws.client.utils.DataSingleton
monitor
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Field Detail
-
All
public static DataSingletonCollection All
-
-
Method Detail
-
get
public static Workunit get(Platform platform, String wuid)
Gets the.- Parameters:
platform
- the platformwuid
- the wuid- Returns:
- the workunit
-
getPlatform
public Platform getPlatform()
Gets the platform.- Returns:
- the platform
-
getWuid
public String getWuid()
Gets the wuid.- Returns:
- the wuid
-
getQueryText
public String getQueryText()
Gets the query text.- Returns:
- the query text
-
getClusterName
public Object getClusterName()
Gets the cluster name.- Returns:
- the cluster name
-
getStateID
public WUState getStateID()
Gets the state ID.- Returns:
- the state ID
-
isFailedState
public static boolean isFailedState(String state)
Checks if is failed state.- Parameters:
state
- the state- Returns:
- true, if is failed state
-
translateWUState
public static WUState translateWUState(String state)
Translate WU state.- Parameters:
state
- the state- Returns:
- the WU state
-
getState
public String getState()
Gets the state.- Returns:
- the state
-
getDate
public GregorianCalendar getDate()
Gets the date.- Returns:
- the date
-
getResultViews
public String[] getResultViews()
Gets the result views.- Returns:
- the result views
-
hasApplicationValue
public boolean hasApplicationValue(String key)
Checks for application value.- Parameters:
key
- the key- Returns:
- true, if successful
-
getApplicationValue
public String getApplicationValue(String key)
Gets the application value.- Parameters:
key
- the key- Returns:
- the application value
-
getResult
public Result getResult(Integer sequence)
Gets the result.- Parameters:
sequence
- the sequence- Returns:
- the result
-
getResult
public Result getResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult r)
Gets the result.- Parameters:
r
- the r- Returns:
- the result
-
getResults
public Result[] getResults()
Gets the results.- Returns:
- the results
-
getGraphs
public Graph[] getGraphs()
Gets the graphs.- Returns:
- the graphs
-
getSourceFiles
public LogicalFile[] getSourceFiles()
Gets the source files.- Returns:
- the source files
-
isComplete
public boolean isComplete()
- Specified by:
isComplete
in classDataSingleton
-
getJobname
public String getJobname()
Gets the jobname.- Returns:
- the jobname
-
getOwner
public String getOwner()
Gets the owner.- Returns:
- the owner
-
abort
public void abort()
Abort.
-
delete
public void delete()
Delete.
-
resubmit
public void resubmit(boolean restart, boolean clone)
Resubmit.- Parameters:
restart
- the restartclone
- the clone
-
resubmit
public void resubmit()
Resubmit.
-
restart
public void restart()
Restart.
-
_clone
public void _clone()
Clone.
-
publish
public void publish()
Publish.
-
refreshState
public void refreshState()
Refresh state.
-
fastRefresh
protected void fastRefresh()
- Specified by:
fastRefresh
in classDataSingleton
-
fullRefresh
protected void fullRefresh()
- Specified by:
fullRefresh
in classDataSingleton
-
update
public boolean update(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit wu)
Update.- Parameters:
wu
- the wu- Returns:
- true, if successful
-
equals
public boolean equals(Object aThat)
- Specified by:
equals
in classDataSingleton
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classDataSingleton
-
-