com.preemptive.instrumentation
Class SendOfflineData

java.lang.Object
  extended by com.preemptive.instrumentation.SendOfflineData
All Implemented Interfaces:
Runnable

public class SendOfflineData
extends Object
implements Runnable

Transmit saved off-line PA data to the PA server. This class can either be used as a command line application or can be incorporated into another application.

Related system properties:

Since:
6.4.1

Constructor Summary
SendOfflineData(String applicationId)
          Create a new instance to transmit data for a single application.
SendOfflineData(String applicationId, boolean useSsl, String endPoint)
          Create a new instance to transmit data for a single application.
 
Method Summary
static void main(String[] args)
          Transmit data from one or more applications.
 void run()
          Send the off-line data for the application.
 void setLogger(Logger logger)
          Set the logger used to receive messages about the transmission process.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendOfflineData

public SendOfflineData(String applicationId)
                throws MalformedURLException
Create a new instance to transmit data for a single application.

Parameters:
applicationId - the ID of the application (GUID)
Throws:
MalformedURLException - if there was a problem creating the PA server endpoint

SendOfflineData

public SendOfflineData(String applicationId,
                       boolean useSsl,
                       String endPoint)
                throws MalformedURLException
Create a new instance to transmit data for a single application.

Parameters:
applicationId - the ID of the application (GUID)
useSsl - should the connection to the endpoint be made using https or http
endPoint - the PA server endpoint. This should include the host and file portions of a URL, but not the protocol.
Throws:
MalformedURLException - if there was a problem creating the PA server endpoint
Method Detail

main

public static void main(String[] args)
Transmit data from one or more applications. Returns 0 if all data was transmitted.

Parameters:
args - the application IDs (GUID) for one or more applcations.

setLogger

public void setLogger(Logger logger)
Set the logger used to receive messages about the transmission process.

Parameters:
logger - the logger to recieve messages. If null messages will be sent to System.out and System.err.

run

public void run()
Send the off-line data for the application.

Specified by:
run in interface Runnable


Copyright © 2013 PreEmptive Solutions, LLC. All Rights Reserved.