public class Platform extends DataSingleton
| Modifier and Type | Field and Description |
|---|---|
static DataSingletonCollection |
All |
static String |
API_ID |
protected HPCCWsClientPool |
hpccClientPool |
protected boolean |
isDisabled |
boolean |
isTempDisabled |
static String |
P_CLUSTER |
static String |
P_COMPILEONLY |
static String |
P_DISABLED |
static String |
P_IP |
static String |
P_IP_DEFAULT |
static String |
P_PASSWORD |
static String |
P_PORT |
static int |
P_PORT_DEFAULT |
static String |
P_PORT_DEFAULT_STR |
static String |
P_SSL |
static boolean |
P_SSL_DEFAULT |
static int |
P_SSLPORT_DEFAULT |
static String |
P_SSLPORT_DEFAULT_STR |
static String |
P_USER |
protected HPCCWsClient |
platformHPCCClient |
protected Collection<Workunit> |
workunits |
| Modifier | Constructor and Description |
|---|---|
protected |
Platform(Connection hpccconn)
Instantiates a new platform.
|
protected |
Platform(Connection hpccconn,
long pooltimeoutmillis)
Instantiates a new platform.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkInHPCCWsClient(HPCCWsClient client)
Check in HPCC ws client.
|
HPCCWsClient |
checkOutHPCCWsClient()
Check out HPCC ws client.
|
void |
clearTempDisabled()
Clear temp disabled.
|
protected void |
confirmDisable()
Confirm disable.
|
boolean |
equals(Object aThat) |
void |
expireHPCCWsClient(HPCCWsClient client)
Expire HPCC ws client.
|
protected void |
fastRefresh() |
protected void |
fullRefresh() |
static Platform |
get(Connection conn)
Gets the.
|
static Platform |
get(String protocol,
String ip,
int port,
String user,
String pass)
Gets the.
|
static Platform |
get(String address,
String user,
String pass)
Gets the.
|
protected String |
getBuild()
Gets the builds the.
|
Version |
getBuildVersion()
Gets the builds the version.
|
Cluster |
getCluster(String name)
Gets the cluster.
|
Cluster |
getCluster(org.hpccsystems.ws.client.gen.axis2.wstopology.v1_30.TpTargetCluster tc)
Gets the cluster.
|
Cluster[] |
getClusters()
Gets the clusters.
|
DataQuerySet |
getDataQuerySet(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_81.QuerySet qs)
Gets the data query set.
|
DataQuerySet |
getDataQuerySet(String name)
Gets the data query set.
|
DataQuerySet[] |
getDataQuerySets()
Gets the data query sets.
|
DropZone |
getDropZone(String name)
Gets the drop zone.
|
DropZone |
getDropZone(org.hpccsystems.ws.client.gen.axis2.wstopology.v1_30.TpDropZone dz)
Gets the drop zone.
|
DropZone |
getDropZone(TpDropZoneWrapper dz)
Gets the drop zone.
|
DropZone[] |
getDropZones()
Gets the drop zones.
|
FileSprayWorkunit |
getFileSprayWorkunit(DFUWorkunitWrapper wu)
Gets the file spray workunit.
|
FileSprayWorkunit |
getFileSprayWorkunit(String id)
Gets the file spray workunit.
|
FileSprayWorkunit[] |
getFileSprayWorkunits()
Gets the file spray workunits.
|
FileSprayWorkunit[] |
getFileSprayWorkunits(String cluster)
Gets the file spray workunits.
|
String |
getIP()
Gets the ip.
|
LogicalFile |
getLogicalFile(org.hpccsystems.ws.client.gen.axis2.wsdfu.v1_57.DFULogicalFile lf)
Gets the logical file.
|
LogicalFile |
getLogicalFile(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_81.ECLSourceFile sf)
Gets the logical file.
|
LogicalFile |
getLogicalFile(String name)
Gets the logical file.
|
LogicalFile[] |
getLogicalFiles()
Gets the logical files.
|
LogicalFile[] |
getLogicalFiles(String cluster)
Gets the logical files.
|
static Platform |
getNoCreate(String protocol,
String ip,
int port,
String user,
String pass)
Deprecated.
|
String |
getPassword()
Gets the password.
|
int |
getPort()
Gets the port.
|
String |
getProtocol()
Gets the protocol.
|
URL |
getURL()
Gets the url.
|
URL |
getURL(String service)
Gets the url.
|
URL |
getURL(String service,
String method)
Gets the url.
|
URL |
getURL(String service,
String method,
String params)
Gets the url.
|
String |
getUser()
Gets the user.
|
Version |
getVersion()
Gets the version.
|
URL |
getWidgetURL(String widget,
String params)
Gets the widget URL.
|
Workunit |
getWorkunit(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_81.ECLWorkunit wu)
Gets the workunit.
|
Workunit |
getWorkunit(String wuid)
Gets the workunit.
|
Collection<Workunit> |
getWorkunits(boolean userOnly)
Gets the workunits.
|
Collection<Workunit> |
getWorkunits(boolean userOnly,
String cluster)
Gets the workunits.
|
Collection<Workunit> |
getWorkunits(boolean userOnly,
String cluster,
String startDate,
String endDate,
String jobname,
String appKey,
String appData)
Gets the workunits.
|
Collection<Workunit> |
getWorkunits(String owner,
String cluster,
GregorianCalendar startDate,
GregorianCalendar endDate)
Gets the workunits.
|
HPCCWsClient |
getWsClient()
Gets the ws client.
|
protected static String |
hackUnicodeInXMLForAxisOneAndESP(String src)
Hack unicode in XML for axis one and ESP.
|
int |
hashCode() |
protected boolean |
isComplete() |
boolean |
isContainerized() |
boolean |
isDisabled()
Checks if is disabled.
|
boolean |
isEnabled()
Checks if is enabled.
|
boolean |
pingServer()
Ping server.
|
static void |
remove(Platform p)
Removes the.
|
Workunit |
submit(String cluster,
String archiveOrEcl,
boolean compileOnly)
Submit.
|
Workunit |
submit(String cluster,
String archiveOrEcl,
String jobname,
String filePath,
int inlineResultLimit,
boolean compileOnly)
Submit.
|
protected void |
testServer()
Test server.
|
static String |
toESPString(GregorianCalendar _calendar)
To ESP string.
|
boolean |
validateHPCCWsClient(HPCCWsClient client)
Validate HPCC ws client.
|
monitoraddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic static final String API_ID
public static DataSingletonCollection All
public static final String P_DISABLED
public static final String P_SSL
public static final boolean P_SSL_DEFAULT
public static final String P_IP
public static final String P_IP_DEFAULT
public static final String P_PORT
public static final int P_PORT_DEFAULT
public static final int P_SSLPORT_DEFAULT
public static final String P_PORT_DEFAULT_STR
public static final String P_SSLPORT_DEFAULT_STR
public static final String P_USER
public static final String P_PASSWORD
public static final String P_CLUSTER
public static final String P_COMPILEONLY
protected HPCCWsClient platformHPCCClient
protected HPCCWsClientPool hpccClientPool
protected boolean isDisabled
public boolean isTempDisabled
protected Collection<Workunit> workunits
protected Platform(Connection hpccconn)
hpccconn - the hpccconnprotected Platform(Connection hpccconn, long pooltimeoutmillis)
hpccconn - the hpccconnpooltimeoutmillis - the pooltimeoutmillispublic static Platform get(Connection conn)
conn - the connpublic static Platform get(String protocol, String ip, int port, String user, String pass)
protocol - the protocolip - the ipport - the portuser - the userpass - the passpublic static Platform get(String address, String user, String pass)
address - the addressuser - the userpass - the pass@Deprecated public static Platform getNoCreate(String protocol, String ip, int port, String user, String pass)
protocol - the protocolip - the ipport - the portuser - the userpass - the passpublic static void remove(Platform p)
p - the pprotected void confirmDisable()
public void clearTempDisabled()
public boolean isContainerized()
protected void testServer()
public boolean isDisabled()
public boolean isEnabled()
public String getProtocol()
public String getIP()
public int getPort()
public String getUser()
public String getPassword()
protected String getBuild()
public boolean pingServer()
public Version getBuildVersion()
public Version getVersion()
protected static String hackUnicodeInXMLForAxisOneAndESP(String src)
src - the srcpublic Workunit submit(String cluster, String archiveOrEcl, boolean compileOnly)
cluster - the clusterarchiveOrEcl - the archive or eclcompileOnly - the compile onlypublic Workunit submit(String cluster, String archiveOrEcl, String jobname, String filePath, int inlineResultLimit, boolean compileOnly)
cluster - the clusterarchiveOrEcl - the archive or ecljobname - the jobnamefilePath - the file pathinlineResultLimit - the inline result limitcompileOnly - the compile onlyprotected boolean isComplete()
isComplete in class DataSingletonprotected void fastRefresh()
fastRefresh in class DataSingletonprotected void fullRefresh()
fullRefresh in class DataSingletonpublic Workunit getWorkunit(String wuid)
wuid - the wuidpublic Workunit getWorkunit(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_81.ECLWorkunit wu)
wu - the wupublic Collection<Workunit> getWorkunits(boolean userOnly, String cluster, String startDate, String endDate, String jobname, String appKey, String appData)
userOnly - the user onlycluster - the clusterstartDate - the start dateendDate - the end datejobname - the jobnameappKey - the app keyappData - the app datapublic static String toESPString(GregorianCalendar _calendar)
_calendar - the calendarpublic Collection<Workunit> getWorkunits(String owner, String cluster, GregorianCalendar startDate, GregorianCalendar endDate)
owner - the ownercluster - the clusterstartDate - the start dateendDate - the end datepublic Collection<Workunit> getWorkunits(boolean userOnly, String cluster)
userOnly - the user onlycluster - the clusterpublic Collection<Workunit> getWorkunits(boolean userOnly)
userOnly - the user onlypublic FileSprayWorkunit getFileSprayWorkunit(String id)
id - the idpublic FileSprayWorkunit getFileSprayWorkunit(DFUWorkunitWrapper wu)
wu - the wupublic FileSprayWorkunit[] getFileSprayWorkunits(String cluster)
cluster - the clusterpublic FileSprayWorkunit[] getFileSprayWorkunits()
public DataQuerySet getDataQuerySet(String name)
name - the namepublic DataQuerySet getDataQuerySet(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_81.QuerySet qs)
qs - the qspublic DataQuerySet[] getDataQuerySets()
public LogicalFile getLogicalFile(String name)
name - the namepublic LogicalFile getLogicalFile(org.hpccsystems.ws.client.gen.axis2.wsdfu.v1_57.DFULogicalFile lf)
lf - the lfpublic LogicalFile getLogicalFile(org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_81.ECLSourceFile sf)
sf - the sfpublic LogicalFile[] getLogicalFiles(String cluster)
cluster - the clusterpublic LogicalFile[] getLogicalFiles()
public Cluster getCluster(String name)
name - the namepublic Cluster getCluster(org.hpccsystems.ws.client.gen.axis2.wstopology.v1_30.TpTargetCluster tc)
tc - the tcpublic Cluster[] getClusters()
public DropZone getDropZone(String name)
name - the namepublic DropZone getDropZone(org.hpccsystems.ws.client.gen.axis2.wstopology.v1_30.TpDropZone dz)
dz - the dzpublic DropZone getDropZone(TpDropZoneWrapper dz)
dz - the dzpublic DropZone[] getDropZones()
public URL getURL() throws MalformedURLException
MalformedURLException - the malformed URL exceptionpublic URL getURL(String service) throws MalformedURLException
service - the serviceMalformedURLException - the malformed URL exceptionpublic URL getURL(String service, String method) throws MalformedURLException
service - the servicemethod - the methodMalformedURLException - the malformed URL exceptionpublic URL getURL(String service, String method, String params) throws MalformedURLException
service - the servicemethod - the methodparams - the paramsMalformedURLException - the malformed URL exceptionpublic URL getWidgetURL(String widget, String params) throws MalformedURLException
widget - the widgetparams - the paramsMalformedURLException - the malformed URL exceptionpublic HPCCWsClient getWsClient() throws Exception
Exception - the exceptionpublic HPCCWsClient checkOutHPCCWsClient() throws Exception
Exception - the exceptionpublic void checkInHPCCWsClient(HPCCWsClient client) throws Exception
client - - returns hpccWsClient to pool for use by other threadsException - the exceptionpublic boolean validateHPCCWsClient(HPCCWsClient client)
client - the clientpublic void expireHPCCWsClient(HPCCWsClient client)
client - the clientpublic boolean equals(Object aThat)
equals in class DataSingletonpublic int hashCode()
hashCode in class DataSingletonCopyright © 2021. All rights reserved.