public class PlasticMode extends Object implements ProcessingMode
Modifier and Type | Field and Description |
---|---|
static URI |
MSG_BYTEXT
Message ID for load by passing VOTable text as a string argument.
|
static URI |
MSG_BYURL
Message ID for load by passing VOTable URL (temp file) as argument.
|
Constructor and Description |
---|
PlasticMode() |
Modifier and Type | Method and Description |
---|---|
static void |
broadcast(uk.ac.starlink.table.StarTable table,
URI msg,
org.votech.plastic.PlasticHubListener hub,
URI plasticId,
uk.ac.starlink.table.StoragePolicy policy,
String client,
PrintStream out)
Broadcasts a table to PLASTIC listeners by sending it to the hub
as a VOTable.
|
TableConsumer |
createConsumer(uk.ac.starlink.task.Environment env)
Creates a TableConsumer, deriving any additional required
configuration from a given environment.
|
uk.ac.starlink.task.Parameter<?>[] |
getAssociatedParameters()
Returns a list of any parameters which are associated with this mode.
|
String |
getDescription()
Returns a textual description of this processing mode.
|
public static final URI MSG_BYTEXT
public static final URI MSG_BYURL
public String getDescription()
ProcessingMode
getDescription
in interface ProcessingMode
public uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()
ProcessingMode
getAssociatedParameters
in interface ProcessingMode
public TableConsumer createConsumer(uk.ac.starlink.task.Environment env) throws uk.ac.starlink.task.TaskException
ProcessingMode
createConsumer
in interface ProcessingMode
env
- execution environmentuk.ac.starlink.task.TaskException
public static void broadcast(uk.ac.starlink.table.StarTable table, URI msg, org.votech.plastic.PlasticHubListener hub, URI plasticId, uk.ac.starlink.table.StoragePolicy policy, String client, PrintStream out) throws IOException
table
- table to broadcastmsg
- PLASTIC message key which defines how the transport
will take place (one of MSG_BYTEXT, MSG_BYURL or null)hub
- plastic hub objectplasticId
- plastic identifier for this clientpolicy
- storage policyclient
- application name of sole target for broadcast,
or null for allout
- output stream to the environment (may be null)IOException
Copyright © 2022 Central Laboratory of the Research Councils. All Rights Reserved.