Class Platform

    • Constructor Detail

      • Platform

        protected Platform​(Connection hpccconn)
        Instantiates a new platform.
        Parameters:
        hpccconn - the hpccconn
      • Platform

        protected Platform​(Connection hpccconn,
                           long pooltimeoutmillis)
        Instantiates a new platform.
        Parameters:
        hpccconn - the hpccconn
        pooltimeoutmillis - the pooltimeoutmillis
    • Method Detail

      • get

        public static Platform get​(Connection conn)
        Gets the.
        Parameters:
        conn - the conn
        Returns:
        the platform
      • get

        public static Platform get​(String protocol,
                                   String ip,
                                   int port,
                                   String user,
                                   String pass)
        Gets the.
        Parameters:
        protocol - the protocol
        ip - the ip
        port - the port
        user - the user
        pass - the pass
        Returns:
        the platform
      • get

        public static Platform get​(String address,
                                   String user,
                                   String pass)
        Gets the.
        Parameters:
        address - the address
        user - the user
        pass - the pass
        Returns:
        the platform
      • getNoCreate

        @Deprecated
        public static Platform getNoCreate​(String protocol,
                                           String ip,
                                           int port,
                                           String user,
                                           String pass)
        Deprecated.
        Gets the no create.
        Parameters:
        protocol - the protocol
        ip - the ip
        port - the port
        user - the user
        pass - the pass
        Returns:
        the no create
      • remove

        public static void remove​(Platform p)
        Removes the.
        Parameters:
        p - the p
      • confirmDisable

        protected void confirmDisable()
        Confirm disable.
      • clearTempDisabled

        public void clearTempDisabled()
        Clear temp disabled.
      • isContainerized

        public boolean isContainerized()
      • testServer

        protected void testServer()
        Test server.
      • isDisabled

        public boolean isDisabled()
        Checks if is disabled.
        Returns:
        true, if is disabled
      • isEnabled

        public boolean isEnabled()
        Checks if is enabled.
        Returns:
        true, if is enabled
      • getProtocol

        public String getProtocol()
        Gets the protocol.
        Returns:
        the protocol
      • getIP

        public String getIP()
        Gets the ip.
        Returns:
        the ip
      • getPort

        public int getPort()
        Gets the port.
        Returns:
        the port
      • getUser

        public String getUser()
        Gets the user.
        Returns:
        the user
      • getPassword

        public String getPassword()
        Gets the password.
        Returns:
        the password
      • getBuild

        protected String getBuild()
        Gets the builds the.
        Returns:
        the builds the
      • pingServer

        public boolean pingServer()
        Ping server.
        Returns:
        true, if successful
      • getBuildVersion

        public Version getBuildVersion()
        Gets the builds the version.
        Returns:
        the builds the version
      • getVersion

        public Version getVersion()
        Gets the version.
        Returns:
        the version
      • hackUnicodeInXMLForAxisOneAndESP

        protected static String hackUnicodeInXMLForAxisOneAndESP​(String src)
        Hack unicode in XML for axis one and ESP.
        Parameters:
        src - the src
        Returns:
        the string
      • submit

        public Workunit submit​(String cluster,
                               String archiveOrEcl,
                               boolean compileOnly)
        Submit.
        Parameters:
        cluster - the cluster
        archiveOrEcl - the archive or ecl
        compileOnly - the compile only
        Returns:
        the workunit
      • submit

        public Workunit submit​(String cluster,
                               String archiveOrEcl,
                               String jobname,
                               String filePath,
                               int inlineResultLimit,
                               boolean compileOnly)
        Submit.
        Parameters:
        cluster - the cluster
        archiveOrEcl - the archive or ecl
        jobname - the jobname
        filePath - the file path
        inlineResultLimit - the inline result limit
        compileOnly - the compile only
        Returns:
        the workunit
      • getWorkunit

        public Workunit getWorkunit​(String wuid)
        Gets the workunit.
        Parameters:
        wuid - the wuid
        Returns:
        the workunit
      • getWorkunit

        public Workunit getWorkunit​(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit wu)
        Gets the workunit.
        Parameters:
        wu - the wu
        Returns:
        the workunit
      • getWorkunits

        public Collection<Workunit> getWorkunits​(boolean userOnly,
                                                 String cluster,
                                                 String startDate,
                                                 String endDate,
                                                 String jobname,
                                                 String appKey,
                                                 String appData)
        Gets the workunits.
        Parameters:
        userOnly - the user only
        cluster - the cluster
        startDate - the start date
        endDate - the end date
        jobname - the jobname
        appKey - the app key
        appData - the app data
        Returns:
        the workunits
      • toESPString

        public static String toESPString​(GregorianCalendar _calendar)
        To ESP string.
        Parameters:
        _calendar - the calendar
        Returns:
        the string
      • getWorkunits

        public Collection<Workunit> getWorkunits​(boolean userOnly,
                                                 String cluster)
        Gets the workunits.
        Parameters:
        userOnly - the user only
        cluster - the cluster
        Returns:
        the workunits
      • getWorkunits

        public Collection<Workunit> getWorkunits​(boolean userOnly)
        Gets the workunits.
        Parameters:
        userOnly - the user only
        Returns:
        the workunits
      • getFileSprayWorkunit

        public FileSprayWorkunit getFileSprayWorkunit​(String id)
        Gets the file spray workunit.
        Parameters:
        id - the id
        Returns:
        the file spray workunit
      • getFileSprayWorkunit

        public FileSprayWorkunit getFileSprayWorkunit​(org.hpccsystems.ws.client.wrappers.gen.filespray.DFUWorkunitWrapper wu)
        Gets the file spray workunit.
        Parameters:
        wu - the wu
        Returns:
        the file spray workunit
      • getFileSprayWorkunits

        public FileSprayWorkunit[] getFileSprayWorkunits​(String cluster)
        Gets the file spray workunits.
        Parameters:
        cluster - the cluster
        Returns:
        the file spray workunits
      • getFileSprayWorkunits

        public FileSprayWorkunit[] getFileSprayWorkunits()
        Gets the file spray workunits.
        Returns:
        the file spray workunits
      • getDataQuerySet

        public DataQuerySet getDataQuerySet​(String name)
        Gets the data query set.
        Parameters:
        name - the name
        Returns:
        the data query set
      • getDataQuerySet

        public DataQuerySet getDataQuerySet​(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet qs)
        Gets the data query set.
        Parameters:
        qs - the qs
        Returns:
        the data query set
      • getDataQuerySets

        public DataQuerySet[] getDataQuerySets()
        Gets the data query sets.
        Returns:
        the data query sets
      • getLogicalFile

        public LogicalFile getLogicalFile​(String name)
        Gets the logical file.
        Parameters:
        name - the name
        Returns:
        the logical file
      • getLogicalFile

        public LogicalFile getLogicalFile​(org.hpccsystems.ws.client.gen.axis2.wsdfu.latest.DFULogicalFile lf)
        Gets the logical file.
        Parameters:
        lf - the lf
        Returns:
        the logical file
      • getLogicalFile

        public LogicalFile getLogicalFile​(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile sf)
        Gets the logical file.
        Parameters:
        sf - the sf
        Returns:
        the logical file
      • getLogicalFiles

        public LogicalFile[] getLogicalFiles​(String cluster)
        Gets the logical files.
        Parameters:
        cluster - the cluster
        Returns:
        the logical files
      • getLogicalFiles

        public LogicalFile[] getLogicalFiles()
        Gets the logical files.
        Returns:
        the logical files
      • getCluster

        public Cluster getCluster​(String name)
        Gets the cluster.
        Parameters:
        name - the name
        Returns:
        the cluster
      • getCluster

        public Cluster getCluster​(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster tc)
        Gets the cluster.
        Parameters:
        tc - the tc
        Returns:
        the cluster
      • getClusters

        public Cluster[] getClusters()
        Gets the clusters.
        Returns:
        the clusters
      • getDropZone

        public DropZone getDropZone​(String name)
        Gets the drop zone.
        Parameters:
        name - the name
        Returns:
        the drop zone
      • getDropZone

        public DropZone getDropZone​(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone dz)
        Gets the drop zone.
        Parameters:
        dz - the dz
        Returns:
        the drop zone
      • getDropZone

        public DropZone getDropZone​(org.hpccsystems.ws.client.wrappers.gen.wstopology.TpDropZoneWrapper dz)
        Gets the drop zone.
        Parameters:
        dz - the dz
        Returns:
        the drop zone
      • getDropZones

        public DropZone[] getDropZones()
        Gets the drop zones.
        Returns:
        the drop zones
      • getWsClient

        public HPCCWsClient getWsClient()
                                 throws Exception
        Gets the ws client.
        Returns:
        HPCCWsClient instance - not thread safe - Use checkoutWsClient for multi-thread use
        Throws:
        Exception - the exception
      • checkOutHPCCWsClient

        public HPCCWsClient checkOutHPCCWsClient()
                                          throws Exception
        Check out HPCC ws client.
        Returns:
        HPCCWsClient from HPCCClient pool, caller responsible for checking client back in
        Throws:
        Exception - the exception
      • checkInHPCCWsClient

        public void checkInHPCCWsClient​(HPCCWsClient client)
                                 throws Exception
        Check in HPCC ws client.
        Parameters:
        client - - returns hpccWsClient to pool for use by other threads
        Throws:
        Exception - the exception
      • validateHPCCWsClient

        public boolean validateHPCCWsClient​(HPCCWsClient client)
        Validate HPCC ws client.
        Parameters:
        client - the client
        Returns:
        true, if successful
      • expireHPCCWsClient

        public void expireHPCCWsClient​(HPCCWsClient client)
        Expire HPCC ws client.
        Parameters:
        client - the client