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(StarTable table,
URI msg,
PlasticHubListener hub,
URI plasticId,
StoragePolicy policy,
String client,
PrintStream out)
Broadcasts a table to PLASTIC listeners by sending it to the hub
as a VOTable.
|
TableConsumer |
createConsumer(Environment env)
Creates a TableConsumer, deriving any additional required
configuration from a given environment.
|
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 Parameter<?>[] getAssociatedParameters()
ProcessingMode
getAssociatedParameters
in interface ProcessingMode
public TableConsumer createConsumer(Environment env) throws TaskException
ProcessingMode
createConsumer
in interface ProcessingMode
env
- execution environmentTaskException
public static void broadcast(StarTable table, URI msg, PlasticHubListener hub, URI plasticId, 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 © 2024 Central Laboratory of the Research Councils. All Rights Reserved.