Style Intelligence v12.0

inetsoft.sree.schedule
Class MVAction

java.lang.Object
  extended by inetsoft.sree.schedule.MVAction
All Implemented Interfaces:
AssetSupport, ScheduleAction, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class MVAction
extends Object
implements AssetSupport, Cloneable, inetsoft.util.XMLSerializable

A schedule action to generate materialized view.

See Also:
Serialized Form

Constructor Summary
MVAction()
          Create an empty action.
MVAction(inetsoft.report.composition.mv.MVDef mv)
          A generaction action for the specified materialized view.
MVAction(inetsoft.report.composition.mv.MVDef mv, String email)
          A generaction action for the specified materialized view.
 
Method Summary
 void cancel()
          Cancel the mv.
 Object clone()
          Clone the action.
 void create()
          Create the MV.
 void createMV(Principal principal)
          Execute the action.
static String detectURL(String urlstr)
          Detect full url.
 AssetEntry getEntry()
          Get the asset entry.
 inetsoft.report.composition.mv.MVDef getMV()
          Get the mv.
 void parseXML(Element tag)
           
 void run(Principal principal)
          Run this MV internally.
protected static void sendMVAction(Principal principal, String mvname, String params)
           
 void setEntry(AssetEntry entry)
          Set the asset entry.
 void setMV(inetsoft.report.composition.mv.MVDef mv)
          Set the mv.
 String toString()
          Get the string representation.
 void writeXML(PrintWriter writer)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MVAction

public MVAction()
Create an empty action.


MVAction

public MVAction(inetsoft.report.composition.mv.MVDef mv)
A generaction action for the specified materialized view.


MVAction

public MVAction(inetsoft.report.composition.mv.MVDef mv,
                String email)
A generaction action for the specified materialized view.

Method Detail

getEntry

public AssetEntry getEntry()
Get the asset entry.

Specified by:
getEntry in interface AssetSupport

setEntry

public void setEntry(AssetEntry entry)
Set the asset entry.

Specified by:
setEntry in interface AssetSupport

clone

public Object clone()
Clone the action.

Overrides:
clone in class Object

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object

getMV

public inetsoft.report.composition.mv.MVDef getMV()
Get the mv.


setMV

public void setMV(inetsoft.report.composition.mv.MVDef mv)
Set the mv.


run

public void run(Principal principal)
         throws Exception
Run this MV internally.

Specified by:
run in interface ScheduleAction
Parameters:
principal - represents an entity
Throws:
Exception

sendMVAction

protected static void sendMVAction(Principal principal,
                                   String mvname,
                                   String params)
                            throws Exception
Throws:
Exception

detectURL

public static String detectURL(String urlstr)
                        throws Exception
Detect full url.

Throws:
Exception

create

public void create()
            throws Throwable
Create the MV.

Throws:
Throwable

cancel

public void cancel()
Cancel the mv.


createMV

public void createMV(Principal principal)
              throws Throwable
Execute the action.

Throws:
Throwable

parseXML

public void parseXML(Element tag)
              throws Exception
Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Throws:
Exception

writeXML

public void writeXML(PrintWriter writer)
Specified by:
writeXML in interface inetsoft.util.XMLSerializable

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.