/** * An {@link ApplicationProcess} that is executing or executed on * a {@link RemotePlatform}. * <p> * Typically application developers would not use this interface directly as * the {@link Application} interface provides both higher-level concepts and * increased functionality over that of which is defined here. * <p> * Copyright (c) 2014. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public interface RemoteApplicationProcess extends ApplicationProcess { }
/** * A {@link ApplicationProcess} specifically for managing Java-based * Applications at runtime. * <p> * Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public interface JavaApplicationProcess extends ApplicationProcess, RemoteChannel { /** * Obtains the resolved System {@link Properties} provided to the {@link JavaApplicationProcess} * when it was launched. * * @return the resolved System {@link Properties} */ Properties getSystemProperties(); }
/** * A internal mechanism to build {@link RemoteTerminal}s for {@link RemotePlatform}s. * <p> * Copyright (c) 2015. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Jonathan Knight */ @Internal public interface RemoteTerminalBuilder extends Option { /** * Builds a {@link RemoteTerminal} that will connect to a {@link Platform}. * * @param platform the {@link Platform} * * @return a {@link RemoteTerminal} */ RemoteTerminal build(Platform platform); }
/** * A {@link ApplicationProcess} specifically for managing Java-based * Applications at runtime. * <p> * Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public interface JavaApplicationProcess extends ApplicationProcess, RemoteChannel { /** * Obtains the resolved System {@link Properties} provided to the {@link JavaApplicationProcess} * when it was launched. * * @return the resolved System {@link Properties} */ Properties getSystemProperties(); }
/** * A simple implementation of an {@link Assembly} * <p> * Copyright (c) 2014. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Jonathan Knight * * @param <A> the type of {@link Application} contained within this {@link SimpleAssembly} */ @Internal public class SimpleAssembly<A extends Application> extends AbstractAssembly<A> { /** * Constructs a {@link SimpleAssembly}. * * @param optionsByType the {@link OptionsByType} for the {@link Assembly} */ public SimpleAssembly(OptionsByType optionsByType) { super(optionsByType); } }
/** * A {@link SimpleJavaApplication} is concrete implementation of a {@link JavaApplication}. * <p> * Copyright (c) 2011. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public class SimpleJavaApplication extends AbstractJavaApplication<JavaApplicationProcess> { /** * Constructs a {@link SimpleJavaApplication}. * * @param platform the {@link Platform} on which the {@link Application} was launched * @param process the underlying {@link ApplicationProcess} representing the {@link Application} * @param optionsByType the {@link OptionsByType} used to launch the {@link Application} */ public SimpleJavaApplication(Platform platform, JavaApplicationProcess process, OptionsByType optionsByType) { super(platform, process, optionsByType); } }
/** * Provides the ability to receive callbacks when certain events * occur on a {@link RemoteChannel}. * <p> * Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public interface RemoteChannelListener { /** * Called when a {@link RemoteChannel} is opened. * * @param channel the {@link RemoteChannel} */ public void onOpened(RemoteChannel channel); /** * Called when a {@link RemoteChannel} is closed. * * @param channel the {@link RemoteChannel} */ public void onClosed(RemoteChannel channel); }
/** * A {@link RemoteChannel} that sends requests to {@link SocketBasedRemoteChannelServer}s for processing. * <p> * Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public class SocketBasedRemoteChannelClient extends SocketBasedRemoteChannel { /** * Constructs a {@link SocketBasedRemoteChannelClient}. * * @param address the {@link InetAddress} of the {@link SocketBasedRemoteChannelServer} * @param port the port of the {@link SocketBasedRemoteChannelServer} * * @throws IOException should the {@link SocketBasedRemoteChannelClient} fail to connect */ public SocketBasedRemoteChannelClient(InetAddress address, int port) throws IOException { super(new Socket(address, port)); } }
/** * A pipe-based implementation of a {@link RemoteChannel}. * <p> * Copyright (c) 2016. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public class PipeBasedRemoteChannel extends AbstractRemoteChannel { /** * Create a {@link PipeBasedRemoteChannel} using the specified * {@link PipedInputStream} and {@link PipedOutputStream}s. * * @param outputStream the {@link PipedOutputStream} * @param inputStream the {@link PipedInputStream} * * @throws IOException when it's not possible to use the respective pipes */ public PipeBasedRemoteChannel(PipedOutputStream outputStream, PipedInputStream inputStream) throws IOException { super(outputStream, inputStream); } }
/** * A simple implementation of an {@link Assembly} * <p> * Copyright (c) 2014. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Jonathan Knight * * @param <A> the type of {@link Application} contained within this {@link SimpleAssembly} */ @Internal public class SimpleAssembly<A extends Application> extends AbstractAssembly<A> { /** * Constructs a {@link SimpleAssembly}. * * @param optionsByType the {@link OptionsByType} for the {@link Assembly} */ public SimpleAssembly(OptionsByType optionsByType) { super(optionsByType); } }
/** * A {@link Scope} to use in a Container when a {@link ContainerScope} could * not be determined. * <p> * Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public class DefaultScope extends AbstractContainerScope { /** * Constructs a {@link DefaultScope}. * * @param platformScope the {@link PlatformScope} on which the {@link DefaultScope} * will be based. */ public DefaultScope(PlatformScope platformScope) { super("(Default)", platformScope.getProperties(), platformScope.getAvailablePorts(), null); stdout = platformScope.getStandardOutput(); stderr = platformScope.getStandardError(); stdin = platformScope.getStandardInput(); } }
/** * Provides the ability to receive callbacks when certain events * occur on a {@link RemoteChannel}. * <p> * Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public interface RemoteChannelListener { /** * Called when a {@link RemoteChannel} is opened. * * @param channel the {@link RemoteChannel} */ public void onOpened(RemoteChannel channel); /** * Called when a {@link RemoteChannel} is closed. * * @param channel the {@link RemoteChannel} */ public void onClosed(RemoteChannel channel); }
@Internal public class SimpleRemoteApplicationLauncher extends AbstractRemoteApplicationLauncher<SimpleApplication>
/** * A {@link SimpleJavaApplication} is concrete implementation of a {@link JavaApplication}. * <p> * Copyright (c) 2011. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public class SimpleJavaApplication extends AbstractJavaApplication<JavaApplicationProcess> { /** * Constructs a {@link SimpleJavaApplication}. * * @param platform the {@link Platform} on which the {@link Application} was launched * @param process the underlying {@link ApplicationProcess} representing the {@link Application} * @param optionsByType the {@link OptionsByType} used to launch the {@link Application} */ public SimpleJavaApplication(Platform platform, JavaApplicationProcess process, OptionsByType optionsByType) { super(platform, process, optionsByType); } }
/** * A {@link Scope} to use in a Container when a {@link ContainerScope} could * not be determined. * <p> * Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public class DefaultScope extends AbstractContainerScope { /** * Constructs a {@link DefaultScope}. * * @param platformScope the {@link PlatformScope} on which the {@link DefaultScope} * will be based. */ public DefaultScope(PlatformScope platformScope) { super("(Default)", platformScope.getProperties(), platformScope.getAvailablePorts(), null); stdout = platformScope.getStandardOutput(); stderr = platformScope.getStandardError(); stdin = platformScope.getStandardInput(); } }
/** * A pipe-based implementation of a {@link RemoteChannel}. * <p> * Copyright (c) 2016. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public class PipeBasedRemoteChannel extends AbstractRemoteChannel { /** * Create a {@link PipeBasedRemoteChannel} using the specified * {@link PipedInputStream} and {@link PipedOutputStream}s. * * @param outputStream the {@link PipedOutputStream} * @param inputStream the {@link PipedInputStream} * * @throws IOException when it's not possible to use the respective pipes */ public PipeBasedRemoteChannel(PipedOutputStream outputStream, PipedInputStream inputStream) throws IOException { super(outputStream, inputStream); } }
/** * A {@link RemoteChannel} that sends requests to {@link SocketBasedRemoteChannelServer}s for processing. * <p> * Copyright (c) 2013. All Rights Reserved. Oracle Corporation.<br> * Oracle is a registered trademark of Oracle Corporation and/or its affiliates. * * @author Brian Oliver */ @Internal public class SocketBasedRemoteChannelClient extends SocketBasedRemoteChannel { /** * Constructs a {@link SocketBasedRemoteChannelClient}. * * @param address the {@link InetAddress} of the {@link SocketBasedRemoteChannelServer} * @param port the port of the {@link SocketBasedRemoteChannelServer} * * @throws IOException should the {@link SocketBasedRemoteChannelClient} fail to connect */ public SocketBasedRemoteChannelClient(InetAddress address, int port) throws IOException { super(new Socket(address, port)); } }
@Internal public interface ControllableRemoteChannel extends RemoteChannel, Closeable
@Internal public interface ControllableRemoteChannel extends RemoteChannel, Closeable
@Internal public class DelegatingStdInInputStream extends AbstractDelegatingInputStream