Class RpcEndPoint
- java.lang.Object
-
- com.google.apphosting.runtime.jetty9.RpcEndPoint
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.eclipse.jetty.io.EndPoint
public class RpcEndPoint extends Object implements org.eclipse.jetty.io.EndPoint
Jetty Endpoint implementation for our RuntimePB protocol buffer.
-
-
Constructor Summary
Constructors Constructor Description RpcEndPoint(com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intfill(ByteBuffer buffer)voidfillInterested(org.eclipse.jetty.util.Callback callback)booleanflush(ByteBuffer... buffer)org.eclipse.jetty.io.ConnectiongetConnection()longgetCreatedTimeStamp()longgetIdleTimeout()InetSocketAddressgetLocalAddress()InetSocketAddressgetRemoteAddress()ObjectgetTransport()com.google.apphosting.base.protos.RuntimePb.UPRequestgetUpRequest()MutableUpResponsegetUpResponse()booleanisFillInterested()booleanisInputShutdown()booleanisOpen()booleanisOptimizedForDirectBuffers()booleanisOutputShutdown()voidonClose()voidonOpen()voidsetConnection(org.eclipse.jetty.io.Connection connection)voidsetIdleTimeout(long idleTimeout)voidshutdownOutput()booleantryFillInterested(org.eclipse.jetty.util.Callback callback)voidupgrade(org.eclipse.jetty.io.Connection a)voidwrite(org.eclipse.jetty.util.Callback callback, ByteBuffer... buffers)
-
-
-
Constructor Detail
-
RpcEndPoint
public RpcEndPoint(com.google.apphosting.base.protos.RuntimePb.UPRequest upRequest, MutableUpResponse upResponse)
-
-
Method Detail
-
getUpRequest
public com.google.apphosting.base.protos.RuntimePb.UPRequest getUpRequest()
-
getUpResponse
public MutableUpResponse getUpResponse()
-
getLocalAddress
public InetSocketAddress getLocalAddress()
- Specified by:
getLocalAddressin interfaceorg.eclipse.jetty.io.EndPoint
-
getRemoteAddress
public InetSocketAddress getRemoteAddress()
- Specified by:
getRemoteAddressin interfaceorg.eclipse.jetty.io.EndPoint
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceorg.eclipse.jetty.io.EndPoint
-
getCreatedTimeStamp
public long getCreatedTimeStamp()
- Specified by:
getCreatedTimeStampin interfaceorg.eclipse.jetty.io.EndPoint
-
shutdownOutput
public void shutdownOutput()
- Specified by:
shutdownOutputin interfaceorg.eclipse.jetty.io.EndPoint
-
isOutputShutdown
public boolean isOutputShutdown()
- Specified by:
isOutputShutdownin interfaceorg.eclipse.jetty.io.EndPoint
-
isInputShutdown
public boolean isInputShutdown()
- Specified by:
isInputShutdownin interfaceorg.eclipse.jetty.io.EndPoint
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.eclipse.jetty.io.EndPoint
-
fill
public int fill(ByteBuffer buffer) throws IOException
- Specified by:
fillin interfaceorg.eclipse.jetty.io.EndPoint- Throws:
IOException
-
flush
public boolean flush(ByteBuffer... buffer) throws IOException
- Specified by:
flushin interfaceorg.eclipse.jetty.io.EndPoint- Throws:
IOException
-
getTransport
public Object getTransport()
- Specified by:
getTransportin interfaceorg.eclipse.jetty.io.EndPoint
-
getIdleTimeout
public long getIdleTimeout()
- Specified by:
getIdleTimeoutin interfaceorg.eclipse.jetty.io.EndPoint
-
setIdleTimeout
public void setIdleTimeout(long idleTimeout)
- Specified by:
setIdleTimeoutin interfaceorg.eclipse.jetty.io.EndPoint
-
fillInterested
public void fillInterested(org.eclipse.jetty.util.Callback callback)
- Specified by:
fillInterestedin interfaceorg.eclipse.jetty.io.EndPoint
-
tryFillInterested
public boolean tryFillInterested(org.eclipse.jetty.util.Callback callback)
- Specified by:
tryFillInterestedin interfaceorg.eclipse.jetty.io.EndPoint
-
write
public void write(org.eclipse.jetty.util.Callback callback, ByteBuffer... buffers)- Specified by:
writein interfaceorg.eclipse.jetty.io.EndPoint
-
getConnection
public org.eclipse.jetty.io.Connection getConnection()
- Specified by:
getConnectionin interfaceorg.eclipse.jetty.io.EndPoint
-
setConnection
public void setConnection(org.eclipse.jetty.io.Connection connection)
- Specified by:
setConnectionin interfaceorg.eclipse.jetty.io.EndPoint
-
onOpen
public void onOpen()
- Specified by:
onOpenin interfaceorg.eclipse.jetty.io.EndPoint
-
onClose
public void onClose()
- Specified by:
onClosein interfaceorg.eclipse.jetty.io.EndPoint
-
upgrade
public void upgrade(org.eclipse.jetty.io.Connection a)
- Specified by:
upgradein interfaceorg.eclipse.jetty.io.EndPoint
-
isFillInterested
public boolean isFillInterested()
- Specified by:
isFillInterestedin interfaceorg.eclipse.jetty.io.EndPoint
-
isOptimizedForDirectBuffers
public boolean isOptimizedForDirectBuffers()
- Specified by:
isOptimizedForDirectBuffersin interfaceorg.eclipse.jetty.io.EndPoint
-
-