Class Factory

java.lang.Object
gov.usgs.earthquake.distribution.Factory

public class Factory extends Object
Factory class for EIDS CLIENT to send and receive notifications and products
  • Constructor Details

    • Factory

      public Factory()
  • Method Details

    • createEIDSClient

      public EIDSClient createEIDSClient(String serverHost, Integer serverPort, String alternateServers, String trackingFileName)
      Creates EIDS Client using given params
      Parameters:
      serverHost - host
      serverPort - port
      alternateServers - for list of alternate servers
      trackingFileName - tracking file name
      Returns:
      EIDSClient
    • createEIDSNotificationReceiver

      public EIDSNotificationReceiver createEIDSNotificationReceiver(String serverList, File receiverStorageDirectory, File receiverIndexFile, EIDSClient client) throws Exception
      Creates EIDS Notification Receiver
      Parameters:
      serverList - serverlist
      receiverStorageDirectory - file of storage directory
      receiverIndexFile - file of receiver index
      client - EIDSClient
      Returns:
      new EIDSNotificationReceiver
      Throws:
      Exception - if error occurs
    • createSocketProductReceiver

      public SocketProductReceiver createSocketProductReceiver(int port, int numThreads, File receiverStorageDirectory, File receiverIndexFile) throws Exception
      Create new socket product receiver
      Parameters:
      port - int of port
      numThreads - int of threads
      receiverStorageDirectory - file of storage directory
      receiverIndexFile - file of receiver index
      Returns:
      new SocketProductReceiver
      Throws:
      Exception - if error occurs
    • createEIDSNotificationSender

      public EIDSNotificationSender createEIDSNotificationSender(String corbaHost, String corbaPort, File eidsPolldir, File htdocs, URL htdocsURL)
      create new EIDS Notification Sender
      Parameters:
      corbaHost - String of host
      corbaPort - String of port
      eidsPolldir - file of eidsPoll directory
      htdocs - file of htdocs
      htdocsURL - URL of htdocs
      Returns:
      new EIDSNotificationSender