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 classWorkunit.Notification
-
Field Summary
Fields Modifier and Type Field Description static DataSingletonCollectionAll
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void_clone()Clone.voidabort()Abort.voiddelete()Delete.booleanequals(Object aThat)protected voidfastRefresh()protected voidfullRefresh()static Workunitget(Platform platform, String wuid)Gets the.StringgetApplicationValue(String key)Gets the application value.ObjectgetClusterName()Gets the cluster name.GregorianCalendargetDate()Gets the date.Graph[]getGraphs()Gets the graphs.StringgetJobname()Gets the jobname.StringgetOwner()Gets the owner.PlatformgetPlatform()Gets the platform.StringgetQueryText()Gets the query text.ResultgetResult(Integer sequence)Gets the result.ResultgetResult(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.StringgetState()Gets the state.WUStategetStateID()Gets the state ID.StringgetWuid()Gets the wuid.booleanhasApplicationValue(String key)Checks for application value.inthashCode()booleanisComplete()static booleanisFailedState(String state)Checks if is failed state.voidpublish()Publish.voidrefreshState()Refresh state.voidrestart()Restart.voidresubmit()Resubmit.voidresubmit(boolean restart, boolean clone)Resubmit.static WUStatetranslateWUState(String state)Translate WU state.booleanupdate(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:
isCompletein 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:
fastRefreshin classDataSingleton
-
fullRefresh
protected void fullRefresh()
- Specified by:
fullRefreshin 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:
equalsin classDataSingleton
-
hashCode
public int hashCode()
- Specified by:
hashCodein classDataSingleton
-
-