public class URLAcquisition extends Object implements AcquisitionHandler
Modifier and Type | Field and Description |
---|---|
static String |
FILE |
static String |
HOST |
static String |
PATH |
private int |
type |
static String |
TYPE |
static String |
URL |
private String |
urlStr |
Constructor and Description |
---|
URLAcquisition() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this handler and releases any system resources associated to it.
|
private static byte[] |
getResource(String spec,
Properties prop)
get the file.
|
void |
retrieve(ReliableTransmitter transmitter)
Check the URL resource.
|
void |
setProperties(Properties properties)
Configures the handler with the given properties.
|
public static final String FILE
public static final String PATH
public static final String HOST
public static final String URL
public static final String TYPE
private String urlStr
private int type
private static byte[] getResource(String spec, Properties prop) throws IOException
spec
- the String to parse as a URL.IOException
public void retrieve(ReliableTransmitter transmitter) throws Exception
retrieve
in interface AcquisitionHandler
transmitter
- a transmitter used to transmit retrieved messages to the MOM
reliably.Exception
com.scalagent.joram.mom.dest.collector.Collector#check()
public void setProperties(Properties properties)
AcquisitionHandler
setProperties
in interface AcquisitionHandler
properties
- The new set of properties.public void close()
AcquisitionHandler
close
in interface AcquisitionHandler
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.