http://git-wip-us.apache.org/repos/asf/twill/blob/9ea6dac8/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/ServiceController.html ---------------------------------------------------------------------- diff --git a/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/ServiceController.html b/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/ServiceController.html deleted file mode 100644 index 17b22b1..0000000 --- a/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/ServiceController.html +++ /dev/null @@ -1,360 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.6.0_65) on Fri Feb 27 13:20:34 PST 2015 --> -<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<TITLE> -ServiceController (Apache Twill 0.5.0-incubating API) -</TITLE> - -<META NAME="date" CONTENT="2015-02-27"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../javadoc-stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="ServiceController (Apache Twill 0.5.0-incubating API)"; - } -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> -<HR> - - -<!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ServiceController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/twill/api/ServiceAnnouncer.html" title="interface in org.apache.twill.api"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/twill/api/ServiceController.html" target="_top"><B>FRAMES</B></A> - <A HREF="ServiceController.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> -<!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<!-- ======== START OF CLASS DATA ======== --> -<H2> -<FONT SIZE="-1"> -org.apache.twill.api</FONT> -<BR> -Interface ServiceController</H2> -<DL> -<DT><B>All Superinterfaces:</B> <DD>com.google.common.util.concurrent.Service</DD> -</DL> -<DL> -<DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../../org/apache/twill/api/TwillController.html" title="interface in org.apache.twill.api">TwillController</A></DD> -</DL> -<HR> -<DL> -<DT><PRE>public interface <B>ServiceController</B><DT>extends com.google.common.util.concurrent.Service</DL> -</PRE> - -<P> -This interface is for controlling a remote running service. -<P> - -<P> -<HR> - -<P> -<!-- ======== NESTED CLASS SUMMARY ======== --> - -<A NAME="nested_class_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Nested Class Summary</B></FONT></TH> -</TR> -</TABLE> - <A NAME="nested_classes_inherited_from_class_com.google.common.util.concurrent.Service"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service</B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE>com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State</CODE></TD> -</TR> -</TABLE> - - -<!-- ========== METHOD SUMMARY =========== --> - -<A NAME="method_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Method Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/ServiceController.html#addListener(com.google.common.util.concurrent.Service.Listener, java.util.concurrent.Executor)">addListener</A></B>(com.google.common.util.concurrent.Service.Listener listener, - <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/Executor.html?is-external=true" title="class or interface in java.util.concurrent">Executor</A> executor)</CODE> - -<BR> - Registers a <CODE>Listener</CODE> to be <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/Executor.html?is-external=true#execute(java.lang.Runnable)" title="class or interface in java.util.concurrent">executed</A> on the given - executor.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api">RunId</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/ServiceController.html#getRunId()">getRunId</A></B>()</CODE> - -<BR> - Returns the <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api"><CODE>RunId</CODE></A> of the running application.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/ServiceController.html#kill()">kill</A></B>()</CODE> - -<BR> - Requests to forcefully kill a running service.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> com.google.common.util.concurrent.ListenableFuture<<A HREF="../../../../org/apache/twill/api/Command.html" title="interface in org.apache.twill.api">Command</A>></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/ServiceController.html#sendCommand(org.apache.twill.api.Command)">sendCommand</A></B>(<A HREF="../../../../org/apache/twill/api/Command.html" title="interface in org.apache.twill.api">Command</A> command)</CODE> - -<BR> - Sends a user command to the running application.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> com.google.common.util.concurrent.ListenableFuture<<A HREF="../../../../org/apache/twill/api/Command.html" title="interface in org.apache.twill.api">Command</A>></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/ServiceController.html#sendCommand(java.lang.String, org.apache.twill.api.Command)">sendCommand</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> runnableName, - <A HREF="../../../../org/apache/twill/api/Command.html" title="interface in org.apache.twill.api">Command</A> command)</CODE> - -<BR> - Sends a user command to the given runnable of the running application.</TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_com.google.common.util.concurrent.Service"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from interface com.google.common.util.concurrent.Service</B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE>awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, start, startAndWait, startAsync, state, stop, stopAndWait, stopAsync</CODE></TD> -</TR> -</TABLE> - -<P> - -<!-- ============ METHOD DETAIL ========== --> - -<A NAME="method_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Method Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="getRunId()"><!-- --></A><H3> -getRunId</H3> -<PRE> -<A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api">RunId</A> <B>getRunId</B>()</PRE> -<DL> -<DD>Returns the <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api"><CODE>RunId</CODE></A> of the running application. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="sendCommand(org.apache.twill.api.Command)"><!-- --></A><H3> -sendCommand</H3> -<PRE> -com.google.common.util.concurrent.ListenableFuture<<A HREF="../../../../org/apache/twill/api/Command.html" title="interface in org.apache.twill.api">Command</A>> <B>sendCommand</B>(<A HREF="../../../../org/apache/twill/api/Command.html" title="interface in org.apache.twill.api">Command</A> command)</PRE> -<DL> -<DD>Sends a user command to the running application. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>command</CODE> - The command to send. -<DT><B>Returns:</B><DD>A <CODE>ListenableFuture</CODE> that will be completed when the command is successfully processed - by the target application.</DL> -</DD> -</DL> -<HR> - -<A NAME="sendCommand(java.lang.String, org.apache.twill.api.Command)"><!-- --></A><H3> -sendCommand</H3> -<PRE> -com.google.common.util.concurrent.ListenableFuture<<A HREF="../../../../org/apache/twill/api/Command.html" title="interface in org.apache.twill.api">Command</A>> <B>sendCommand</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> runnableName, - <A HREF="../../../../org/apache/twill/api/Command.html" title="interface in org.apache.twill.api">Command</A> command)</PRE> -<DL> -<DD>Sends a user command to the given runnable of the running application. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>runnableName</CODE> - Name of the <A HREF="../../../../org/apache/twill/api/TwillRunnable.html" title="interface in org.apache.twill.api"><CODE>TwillRunnable</CODE></A>.<DD><CODE>command</CODE> - The command to send. -<DT><B>Returns:</B><DD>A <CODE>ListenableFuture</CODE> that will be completed when the command is successfully processed - by the target runnable.</DL> -</DD> -</DL> -<HR> - -<A NAME="kill()"><!-- --></A><H3> -kill</H3> -<PRE> -void <B>kill</B>()</PRE> -<DL> -<DD>Requests to forcefully kill a running service. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="addListener(com.google.common.util.concurrent.Service.Listener, java.util.concurrent.Executor)"><!-- --></A><H3> -addListener</H3> -<PRE> -void <B>addListener</B>(com.google.common.util.concurrent.Service.Listener listener, - <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/Executor.html?is-external=true" title="class or interface in java.util.concurrent">Executor</A> executor)</PRE> -<DL> -<DD>Registers a <CODE>Listener</CODE> to be <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/Executor.html?is-external=true#execute(java.lang.Runnable)" title="class or interface in java.util.concurrent">executed</A> on the given - executor. The listener will have the corresponding transition method called whenever the - service changes state. When added, the current state of the service will be reflected through - callback to the listener. Methods on the listener is guaranteed to be called no more than once. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE>addListener</CODE> in interface <CODE>com.google.common.util.concurrent.Service</CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>listener</CODE> - the listener to run when the service changes state is complete<DD><CODE>executor</CODE> - the executor in which the the listeners callback methods will be run. For fast, - lightweight listeners that would be safe to execute in any thread, consider - <CODE>MoreExecutors.sameThreadExecutor()</CODE>.</DL> -</DD> -</DL> -<!-- ========= END OF CLASS DATA ========= --> -<HR> - - -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<A NAME="navbar_bottom"><!-- --></A> -<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_bottom_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ServiceController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/twill/api/ServiceAnnouncer.html" title="interface in org.apache.twill.api"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/twill/api/ServiceController.html" target="_top"><B>FRAMES</B></A> - <A HREF="ServiceController.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> -<!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2013 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved. -</BODY> -</HTML>
http://git-wip-us.apache.org/repos/asf/twill/blob/9ea6dac8/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillApplication.html ---------------------------------------------------------------------- diff --git a/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillApplication.html b/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillApplication.html deleted file mode 100644 index cb65c30..0000000 --- a/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillApplication.html +++ /dev/null @@ -1,214 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.6.0_65) on Fri Feb 27 13:20:34 PST 2015 --> -<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<TITLE> -TwillApplication (Apache Twill 0.5.0-incubating API) -</TITLE> - -<META NAME="date" CONTENT="2015-02-27"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../javadoc-stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="TwillApplication (Apache Twill 0.5.0-incubating API)"; - } -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> -<HR> - - -<!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TwillApplication.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/twill/api/ServiceController.html" title="interface in org.apache.twill.api"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/twill/api/TwillContext.html" title="interface in org.apache.twill.api"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/twill/api/TwillApplication.html" target="_top"><B>FRAMES</B></A> - <A HREF="TwillApplication.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> -<!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<!-- ======== START OF CLASS DATA ======== --> -<H2> -<FONT SIZE="-1"> -org.apache.twill.api</FONT> -<BR> -Interface TwillApplication</H2> -<HR> -<DL> -<DT><PRE>public interface <B>TwillApplication</B></DL> -</PRE> - -<P> -Represents a application that can be launched by Twill. -<P> - -<P> -<HR> - -<P> - -<!-- ========== METHOD SUMMARY =========== --> - -<A NAME="method_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Method Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/api/TwillSpecification.html" title="interface in org.apache.twill.api">TwillSpecification</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillApplication.html#configure()">configure</A></B>()</CODE> - -<BR> - Invoked when launching the application on the client side.</TD> -</TR> -</TABLE> - -<P> - -<!-- ============ METHOD DETAIL ========== --> - -<A NAME="method_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Method Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="configure()"><!-- --></A><H3> -configure</H3> -<PRE> -<A HREF="../../../../org/apache/twill/api/TwillSpecification.html" title="interface in org.apache.twill.api">TwillSpecification</A> <B>configure</B>()</PRE> -<DL> -<DD>Invoked when launching the application on the client side. -<P> -<DD><DL> - -<DT><B>Returns:</B><DD>A <A HREF="../../../../org/apache/twill/api/TwillSpecification.html" title="interface in org.apache.twill.api"><CODE>TwillSpecification</CODE></A> specifying properties about this application.</DL> -</DD> -</DL> -<!-- ========= END OF CLASS DATA ========= --> -<HR> - - -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<A NAME="navbar_bottom"><!-- --></A> -<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_bottom_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TwillApplication.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/twill/api/ServiceController.html" title="interface in org.apache.twill.api"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/twill/api/TwillContext.html" title="interface in org.apache.twill.api"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/twill/api/TwillApplication.html" target="_top"><B>FRAMES</B></A> - <A HREF="TwillApplication.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> -<!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2013 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved. -</BODY> -</HTML> http://git-wip-us.apache.org/repos/asf/twill/blob/9ea6dac8/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillContext.html ---------------------------------------------------------------------- diff --git a/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillContext.html b/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillContext.html deleted file mode 100644 index 43e3249..0000000 --- a/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillContext.html +++ /dev/null @@ -1,522 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.6.0_65) on Fri Feb 27 13:20:34 PST 2015 --> -<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<TITLE> -TwillContext (Apache Twill 0.5.0-incubating API) -</TITLE> - -<META NAME="date" CONTENT="2015-02-27"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../javadoc-stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="TwillContext (Apache Twill 0.5.0-incubating API)"; - } -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> -<HR> - - -<!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TwillContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/twill/api/TwillController.html" title="interface in org.apache.twill.api"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/twill/api/TwillContext.html" target="_top"><B>FRAMES</B></A> - <A HREF="TwillContext.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> -<!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<!-- ======== START OF CLASS DATA ======== --> -<H2> -<FONT SIZE="-1"> -org.apache.twill.api</FONT> -<BR> -Interface TwillContext</H2> -<DL> -<DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../org/apache/twill/discovery/DiscoveryServiceClient.html" title="interface in org.apache.twill.discovery">DiscoveryServiceClient</A>, <A HREF="../../../../org/apache/twill/api/ServiceAnnouncer.html" title="interface in org.apache.twill.api">ServiceAnnouncer</A></DD> -</DL> -<HR> -<DL> -<DT><PRE>public interface <B>TwillContext</B><DT>extends <A HREF="../../../../org/apache/twill/api/ServiceAnnouncer.html" title="interface in org.apache.twill.api">ServiceAnnouncer</A>, <A HREF="../../../../org/apache/twill/discovery/DiscoveryServiceClient.html" title="interface in org.apache.twill.discovery">DiscoveryServiceClient</A></DL> -</PRE> - -<P> -Represents the runtime context of a <A HREF="../../../../org/apache/twill/api/TwillRunnable.html" title="interface in org.apache.twill.api"><CODE>TwillRunnable</CODE></A>. -<P> - -<P> -<HR> - -<P> - -<!-- ========== METHOD SUMMARY =========== --> - -<A NAME="method_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Method Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks">Lock</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#createLock(java.lang.String)">createLock</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> - -<BR> - Creates a <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks"><CODE>Lock</CODE></A> for performing locking mechanism within the same <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><CODE>TwillApplication</CODE></A>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/discovery/ServiceDiscovered.html" title="interface in org.apache.twill.discovery">ServiceDiscovered</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#discover(java.lang.String)">discover</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> - -<BR> - Discover service with the given name that is announced within the same <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><CODE>TwillApplication</CODE></A>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#electLeader(java.lang.String, org.apache.twill.api.ElectionHandler)">electLeader</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, - <A HREF="../../../../org/apache/twill/api/ElectionHandler.html" title="interface in org.apache.twill.api">ElectionHandler</A> participantHandler)</CODE> - -<BR> - Register to participate in a leader election by instances within the same <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><CODE>TwillApplication</CODE></A>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getApplicationArguments()">getApplicationArguments</A></B>()</CODE> - -<BR> - Returns the runtime arguments that are passed to the <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><CODE>TwillApplication</CODE></A>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api">RunId</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getApplicationRunId()">getApplicationRunId</A></B>()</CODE> - -<BR> - Returns the <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api"><CODE>RunId</CODE></A> of this running application.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getArguments()">getArguments</A></B>()</CODE> - -<BR> - Returns the runtime arguments that are passed to the <A HREF="../../../../org/apache/twill/api/TwillRunnable.html" title="interface in org.apache.twill.api"><CODE>TwillRunnable</CODE></A>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://download.oracle.com/javase/6/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getHost()">getHost</A></B>()</CODE> - -<BR> - Returns the hostname that the runnable is running on.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getInstanceCount()">getInstanceCount</A></B>()</CODE> - -<BR> - Returns the number of running instances assigned for this <A HREF="../../../../org/apache/twill/api/TwillRunnable.html" title="interface in org.apache.twill.api"><CODE>TwillRunnable</CODE></A>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getInstanceId()">getInstanceId</A></B>()</CODE> - -<BR> - Returns an integer id from 0 to (instanceCount - 1).</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getMaxMemoryMB()">getMaxMemoryMB</A></B>()</CODE> - -<BR> - Returns the amount of memory in MB the runnable is allowed to use.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api">RunId</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getRunId()">getRunId</A></B>()</CODE> - -<BR> - Returns the <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api"><CODE>RunId</CODE></A> of this running instance of <A HREF="../../../../org/apache/twill/api/TwillRunnable.html" title="interface in org.apache.twill.api"><CODE>TwillRunnable</CODE></A>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/api/TwillRunnableSpecification.html" title="interface in org.apache.twill.api">TwillRunnableSpecification</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getSpecification()">getSpecification</A></B>()</CODE> - -<BR> - Returns the <A HREF="../../../../org/apache/twill/api/TwillRunnableSpecification.html" title="interface in org.apache.twill.api"><CODE>TwillRunnableSpecification</CODE></A> that was created by <A HREF="../../../../org/apache/twill/api/TwillRunnable.html#configure()"><CODE>TwillRunnable.configure()</CODE></A>.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillContext.html#getVirtualCores()">getVirtualCores</A></B>()</CODE> - -<BR> - Returns the number of virtual cores the runnable is allowed to use.</TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_org.apache.twill.api.ServiceAnnouncer"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from interface org.apache.twill.api.<A HREF="../../../../org/apache/twill/api/ServiceAnnouncer.html" title="interface in org.apache.twill.api">ServiceAnnouncer</A></B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><A HREF="../../../../org/apache/twill/api/ServiceAnnouncer.html#announce(java.lang.String, int)">announce</A></CODE></TD> -</TR> -</TABLE> - -<P> - -<!-- ============ METHOD DETAIL ========== --> - -<A NAME="method_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Method Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="getRunId()"><!-- --></A><H3> -getRunId</H3> -<PRE> -<A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api">RunId</A> <B>getRunId</B>()</PRE> -<DL> -<DD>Returns the <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api"><CODE>RunId</CODE></A> of this running instance of <A HREF="../../../../org/apache/twill/api/TwillRunnable.html" title="interface in org.apache.twill.api"><CODE>TwillRunnable</CODE></A>. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getApplicationRunId()"><!-- --></A><H3> -getApplicationRunId</H3> -<PRE> -<A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api">RunId</A> <B>getApplicationRunId</B>()</PRE> -<DL> -<DD>Returns the <A HREF="../../../../org/apache/twill/api/RunId.html" title="interface in org.apache.twill.api"><CODE>RunId</CODE></A> of this running application. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getInstanceCount()"><!-- --></A><H3> -getInstanceCount</H3> -<PRE> -int <B>getInstanceCount</B>()</PRE> -<DL> -<DD>Returns the number of running instances assigned for this <A HREF="../../../../org/apache/twill/api/TwillRunnable.html" title="interface in org.apache.twill.api"><CODE>TwillRunnable</CODE></A>. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getHost()"><!-- --></A><H3> -getHost</H3> -<PRE> -<A HREF="http://download.oracle.com/javase/6/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</A> <B>getHost</B>()</PRE> -<DL> -<DD>Returns the hostname that the runnable is running on. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getArguments()"><!-- --></A><H3> -getArguments</H3> -<PRE> -<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getArguments</B>()</PRE> -<DL> -<DD>Returns the runtime arguments that are passed to the <A HREF="../../../../org/apache/twill/api/TwillRunnable.html" title="interface in org.apache.twill.api"><CODE>TwillRunnable</CODE></A>. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getApplicationArguments()"><!-- --></A><H3> -getApplicationArguments</H3> -<PRE> -<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getApplicationArguments</B>()</PRE> -<DL> -<DD>Returns the runtime arguments that are passed to the <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><CODE>TwillApplication</CODE></A>. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getSpecification()"><!-- --></A><H3> -getSpecification</H3> -<PRE> -<A HREF="../../../../org/apache/twill/api/TwillRunnableSpecification.html" title="interface in org.apache.twill.api">TwillRunnableSpecification</A> <B>getSpecification</B>()</PRE> -<DL> -<DD>Returns the <A HREF="../../../../org/apache/twill/api/TwillRunnableSpecification.html" title="interface in org.apache.twill.api"><CODE>TwillRunnableSpecification</CODE></A> that was created by <A HREF="../../../../org/apache/twill/api/TwillRunnable.html#configure()"><CODE>TwillRunnable.configure()</CODE></A>. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getInstanceId()"><!-- --></A><H3> -getInstanceId</H3> -<PRE> -int <B>getInstanceId</B>()</PRE> -<DL> -<DD>Returns an integer id from 0 to (instanceCount - 1). -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getVirtualCores()"><!-- --></A><H3> -getVirtualCores</H3> -<PRE> -int <B>getVirtualCores</B>()</PRE> -<DL> -<DD>Returns the number of virtual cores the runnable is allowed to use. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getMaxMemoryMB()"><!-- --></A><H3> -getMaxMemoryMB</H3> -<PRE> -int <B>getMaxMemoryMB</B>()</PRE> -<DL> -<DD>Returns the amount of memory in MB the runnable is allowed to use. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="discover(java.lang.String)"><!-- --></A><H3> -discover</H3> -<PRE> -<A HREF="../../../../org/apache/twill/discovery/ServiceDiscovered.html" title="interface in org.apache.twill.discovery">ServiceDiscovered</A> <B>discover</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> -<DL> -<DD>Discover service with the given name that is announced within the same <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><CODE>TwillApplication</CODE></A>. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/twill/discovery/DiscoveryServiceClient.html#discover(java.lang.String)">discover</A></CODE> in interface <CODE><A HREF="../../../../org/apache/twill/discovery/DiscoveryServiceClient.html" title="interface in org.apache.twill.discovery">DiscoveryServiceClient</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the service -<DT><B>Returns:</B><DD>A <A HREF="../../../../org/apache/twill/discovery/ServiceDiscovered.html" title="interface in org.apache.twill.discovery"><CODE>ServiceDiscovered</CODE></A> object representing the result.</DL> -</DD> -</DL> -<HR> - -<A NAME="electLeader(java.lang.String, org.apache.twill.api.ElectionHandler)"><!-- --></A><H3> -electLeader</H3> -<PRE> -<A HREF="../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</A> <B>electLeader</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, - <A HREF="../../../../org/apache/twill/api/ElectionHandler.html" title="interface in org.apache.twill.api">ElectionHandler</A> participantHandler)</PRE> -<DL> -<DD>Register to participate in a leader election by instances within the same <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><CODE>TwillApplication</CODE></A>. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>name</CODE> - Unique name for the election -<DT><B>Returns:</B><DD>A <A HREF="../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common"><CODE>Cancellable</CODE></A> object representing this candidate's participation.</DL> -</DD> -</DL> -<HR> - -<A NAME="createLock(java.lang.String)"><!-- --></A><H3> -createLock</H3> -<PRE> -<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks">Lock</A> <B>createLock</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> -<DL> -<DD>Creates a <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks"><CODE>Lock</CODE></A> for performing locking mechanism within the same <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><CODE>TwillApplication</CODE></A>. - The lock created is a reentrant such that if the lock is owned by the current thread, it will return immediately. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>name</CODE> - Unique name for the lock -<DT><B>Returns:</B><DD>A <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/locks/Lock.html?is-external=true" title="class or interface in java.util.concurrent.locks"><CODE>Lock</CODE></A> object</DL> -</DD> -</DL> -<!-- ========= END OF CLASS DATA ========= --> -<HR> - - -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<A NAME="navbar_bottom"><!-- --></A> -<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_bottom_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TwillContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/twill/api/TwillController.html" title="interface in org.apache.twill.api"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/twill/api/TwillContext.html" target="_top"><B>FRAMES</B></A> - <A HREF="TwillContext.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> -<!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2013 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved. -</BODY> -</HTML> http://git-wip-us.apache.org/repos/asf/twill/blob/9ea6dac8/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillController.html ---------------------------------------------------------------------- diff --git a/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillController.html b/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillController.html deleted file mode 100644 index 27ddb21..0000000 --- a/src/site/resources/apidocs-0.5.0-incubating/org/apache/twill/api/TwillController.html +++ /dev/null @@ -1,335 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.6.0_65) on Fri Feb 27 13:20:34 PST 2015 --> -<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<TITLE> -TwillController (Apache Twill 0.5.0-incubating API) -</TITLE> - -<META NAME="date" CONTENT="2015-02-27"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../javadoc-stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="TwillController (Apache Twill 0.5.0-incubating API)"; - } -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> -<HR> - - -<!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TwillController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/twill/api/TwillContext.html" title="interface in org.apache.twill.api"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/twill/api/TwillPreparer.html" title="interface in org.apache.twill.api"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/twill/api/TwillController.html" target="_top"><B>FRAMES</B></A> - <A HREF="TwillController.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> -<!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<!-- ======== START OF CLASS DATA ======== --> -<H2> -<FONT SIZE="-1"> -org.apache.twill.api</FONT> -<BR> -Interface TwillController</H2> -<DL> -<DT><B>All Superinterfaces:</B> <DD>com.google.common.util.concurrent.Service, <A HREF="../../../../org/apache/twill/api/ServiceController.html" title="interface in org.apache.twill.api">ServiceController</A></DD> -</DL> -<HR> -<DL> -<DT><PRE>public interface <B>TwillController</B><DT>extends <A HREF="../../../../org/apache/twill/api/ServiceController.html" title="interface in org.apache.twill.api">ServiceController</A></DL> -</PRE> - -<P> -For controlling a running application. -<P> - -<P> -<HR> - -<P> -<!-- ======== NESTED CLASS SUMMARY ======== --> - -<A NAME="nested_class_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Nested Class Summary</B></FONT></TH> -</TR> -</TABLE> - <A NAME="nested_classes_inherited_from_class_com.google.common.util.concurrent.Service"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service</B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE>com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State</CODE></TD> -</TR> -</TABLE> - - -<!-- ========== METHOD SUMMARY =========== --> - -<A NAME="method_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Method Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillController.html#addLogHandler(org.apache.twill.api.logging.LogHandler)">addLogHandler</A></B>(<A HREF="../../../../org/apache/twill/api/logging/LogHandler.html" title="interface in org.apache.twill.api.logging">LogHandler</A> handler)</CODE> - -<BR> - Adds a <A HREF="../../../../org/apache/twill/api/logging/LogHandler.html" title="interface in org.apache.twill.api.logging"><CODE>LogHandler</CODE></A> for receiving application log.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> com.google.common.util.concurrent.ListenableFuture<<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillController.html#changeInstances(java.lang.String, int)">changeInstances</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> runnable, - int newCount)</CODE> - -<BR> - Changes the number of running instances of a given runnable.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/discovery/ServiceDiscovered.html" title="interface in org.apache.twill.discovery">ServiceDiscovered</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillController.html#discoverService(java.lang.String)">discoverService</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> serviceName)</CODE> - -<BR> - Discovers the set of <A HREF="../../../../org/apache/twill/discovery/Discoverable.html" title="interface in org.apache.twill.discovery"><CODE>Discoverable</CODE></A> endpoints that provides service for the given service name.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../org/apache/twill/api/ResourceReport.html" title="interface in org.apache.twill.api">ResourceReport</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/twill/api/TwillController.html#getResourceReport()">getResourceReport</A></B>()</CODE> - -<BR> - Get a snapshot of the resources used by the application, broken down by each runnable.</TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_org.apache.twill.api.ServiceController"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from interface org.apache.twill.api.<A HREF="../../../../org/apache/twill/api/ServiceController.html" title="interface in org.apache.twill.api">ServiceController</A></B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><A HREF="../../../../org/apache/twill/api/ServiceController.html#addListener(com.google.common.util.concurrent.Service.Listener, java.util.concurrent.Executor)">addListener</A>, <A HREF="../../../../org/apache/twill/api/ServiceController.html#getRunId()">getRunId</A>, <A HREF="../../../../org/apache/twill/api/ServiceController.html#kill()">kill</A>, <A HREF="../../../../org/apache/twill/api/ServiceController.html#sendCommand(org.apache.twill.api.Command)">sendCommand</A>, <A HREF="../../../../org/apache/twill/api/ServiceController.html#sendCommand(java.lang.String, org.apache.twill.api.Command)">sendCommand</A></CODE></TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_com.google.common.util.concurrent.Service"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from interface com.google.common.util.concurrent.Service</B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE>awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, failureCause, isRunning, start, startAndWait, startAsync, state, stop, stopAndWait, stopAsync</CODE></TD> -</TR> -</TABLE> - -<P> - -<!-- ============ METHOD DETAIL ========== --> - -<A NAME="method_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Method Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="addLogHandler(org.apache.twill.api.logging.LogHandler)"><!-- --></A><H3> -addLogHandler</H3> -<PRE> -void <B>addLogHandler</B>(<A HREF="../../../../org/apache/twill/api/logging/LogHandler.html" title="interface in org.apache.twill.api.logging">LogHandler</A> handler)</PRE> -<DL> -<DD>Adds a <A HREF="../../../../org/apache/twill/api/logging/LogHandler.html" title="interface in org.apache.twill.api.logging"><CODE>LogHandler</CODE></A> for receiving application log. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>handler</CODE> - The handler to add.</DL> -</DD> -</DL> -<HR> - -<A NAME="discoverService(java.lang.String)"><!-- --></A><H3> -discoverService</H3> -<PRE> -<A HREF="../../../../org/apache/twill/discovery/ServiceDiscovered.html" title="interface in org.apache.twill.discovery">ServiceDiscovered</A> <B>discoverService</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> serviceName)</PRE> -<DL> -<DD>Discovers the set of <A HREF="../../../../org/apache/twill/discovery/Discoverable.html" title="interface in org.apache.twill.discovery"><CODE>Discoverable</CODE></A> endpoints that provides service for the given service name. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>serviceName</CODE> - Name of the service to discovery. -<DT><B>Returns:</B><DD>A <A HREF="../../../../org/apache/twill/discovery/ServiceDiscovered.html" title="interface in org.apache.twill.discovery"><CODE>ServiceDiscovered</CODE></A> object representing the result.</DL> -</DD> -</DL> -<HR> - -<A NAME="changeInstances(java.lang.String, int)"><!-- --></A><H3> -changeInstances</H3> -<PRE> -com.google.common.util.concurrent.ListenableFuture<<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</A>> <B>changeInstances</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> runnable, - int newCount)</PRE> -<DL> -<DD>Changes the number of running instances of a given runnable. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>runnable</CODE> - The name of the runnable.<DD><CODE>newCount</CODE> - Number of instances for the given runnable. -<DT><B>Returns:</B><DD>A <CODE>ListenableFuture</CODE> that will be completed when the number running instances has been - successfully changed. The future will carry the new count as the result. If there is any error - while changing instances, it'll be reflected in the future.</DL> -</DD> -</DL> -<HR> - -<A NAME="getResourceReport()"><!-- --></A><H3> -getResourceReport</H3> -<PRE> -<A HREF="../../../../org/apache/twill/api/ResourceReport.html" title="interface in org.apache.twill.api">ResourceReport</A> <B>getResourceReport</B>()</PRE> -<DL> -<DD>Get a snapshot of the resources used by the application, broken down by each runnable. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> - -<DT><B>Returns:</B><DD>A <A HREF="../../../../org/apache/twill/api/ResourceReport.html" title="interface in org.apache.twill.api"><CODE>ResourceReport</CODE></A> containing information about resources used by the application.</DL> -</DD> -</DL> -<!-- ========= END OF CLASS DATA ========= --> -<HR> - - -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<A NAME="navbar_bottom"><!-- --></A> -<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_bottom_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TwillController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../org/apache/twill/api/TwillContext.html" title="interface in org.apache.twill.api"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/twill/api/TwillPreparer.html" title="interface in org.apache.twill.api"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/twill/api/TwillController.html" target="_top"><B>FRAMES</B></A> - <A HREF="TwillController.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> -<!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2013 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved. -</BODY> -</HTML>
