|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.post.proxy.PostProxy
public class PostProxy
This class starts up everything on the Pastry side, and then boots up the PAST, Scribe, POST.
Nested Class Summary | |
---|---|
protected class |
PostProxy.KillPanel
|
protected class |
PostProxy.LivenessKeyHandler
|
protected class |
PostProxy.LivenessThread
|
class |
PostProxy.PasswordFrame
|
protected class |
PostProxy.PostDialog
|
protected class |
PostProxy.PostPanel
|
class |
PostProxy.SMTPServerPanel
|
Field Summary | |
---|---|
protected PostUserAddress |
address
The address of the local user |
protected StorageManagerImpl |
aggrWaitingStorage
The local storage for objects waiting to be aggregated |
protected java.security.PublicKey |
caPublic
The well-known public key of the CA |
protected RingCertificate |
cert
The ring certificate for the pastry node |
protected PostCertificate |
certificate
The certificate of the local user |
PostEntityAddress |
clone
The previous address of the user, used to clone the old PostLog |
static java.lang.String[] |
DEFAULT_PARAMS_FILES
|
protected Cache |
deliveredBackupCache
The local backup cache for pending deliveries |
protected PastImpl |
deliveredPast
The local Past service |
protected StorageManagerImpl |
deliveredStorage
The local storage for pending deliveries |
protected PostProxy.PostDialog |
dialog
The dialog showing the post status to users |
protected Environment |
environment
|
protected DistPastryNodeFactory |
factory
The factory used to create the normal Pastry node |
protected IdFactory |
FACTORY
The IdFactory to use (for protocol independence) |
protected static java.lang.String |
FAILURE
|
protected ForwardLog |
forwardLog
The fetched forward log |
protected StorageManagerImpl |
glacierImmutableStorage
The local storage for immutable glacier fragments |
protected StorageManagerImpl |
glacierMutableStorage
The local storage for mutable glacier fragments |
protected StorageManagerImpl |
glacierNeighborStorage
The local storage for glacier neighbor certificates |
protected StorageManagerImpl |
glacierTrashStorage
The local storage for glacier's 'trash can' |
protected RingCertificate |
globalCert
The ring certificate for the global node (if one exists) |
protected Node |
globalNode
The node running in the global ring (if one exists) |
protected PastryNode |
globalPastryNode
The node running in the global ring (if one exists) |
protected int |
globalPort
The port number for the global Pastry node |
protected Cache |
immutableBackupCache
The local backup cache, for immutable objects |
protected GlacierImpl |
immutableGlacier
The local Glacier service |
protected Past |
immutablePast
The local Past service, for immutable objects |
protected StorageManagerImpl |
immutableStorage
The local storage manager, for immutable objects |
protected FragmentKeyFactory |
KFACTORY
The IdFactory to use for glacier fragments |
protected java.net.InetAddress |
localHost
|
protected PostLog |
log
The fetched POST log |
protected Logger |
logger
|
protected LogManager |
logManager
The class which manages the log |
protected Past |
mutablePast
The local Past service, for mutable objects |
protected StorageManagerImpl |
mutableStorage
The local storage manager, for mutable objects |
protected Node |
node
The node the services should use |
protected static int |
PAD_SIZE
|
protected java.security.KeyPair |
pair
The keypair of the local user |
protected Parameters |
parameters
The parameters we are running with |
protected java.lang.String |
pass
The password of the local user |
protected PastryNode |
pastryNode
The node the services should use |
protected Cache |
pendingBackupCache
The local backup cache, for pending deliveries |
protected DeliveryPastImpl |
pendingPast
The local Past service for delivery requests |
protected StorageManagerImpl |
pendingStorage
The local storage for pending deliveries |
protected int |
port
The port number for the Pastry node |
protected Post |
post
The local Post service |
static java.lang.String |
PROXY_PARAMETERS_NAME
The name of the parameters file for Post |
protected Past |
realImmutablePast
The local Past service, for immutable objects |
protected Id |
ringId
The ring Id |
protected java.lang.String |
smtpServer
The SMTP Server |
protected static java.lang.String |
SUCCESS
|
protected Timer |
timer
The global timer used for scheduling events |
protected StorageManagerImpl |
trashStorage
The local trash can, if in use |
static java.lang.String |
version
|
Constructor Summary | |
---|---|
PostProxy()
|
Method Summary | |
---|---|
protected void |
dialogPrint(java.lang.String message)
|
protected Id |
generateRingId(java.lang.String name)
Method which builds a ring id given a string to hash. |
protected java.net.InetSocketAddress[] |
getBootstrapsThatAreNotMe(java.net.InetSocketAddress[] addrs,
int port)
Pulls the |
GlacierImpl |
getGlacier()
|
java.net.InetAddress |
getLocalHost()
|
static void |
main(java.lang.String[] args)
|
int |
message(java.lang.String m,
java.lang.String[] options,
java.lang.String def)
|
void |
panic(java.lang.Exception e,
java.lang.String m,
java.lang.String params)
Helper method which throws an exception and tells the user a message why the error occurred. |
void |
panic(java.lang.Exception e,
java.lang.String m,
java.lang.String[] params)
|
void |
panic(java.lang.String m)
|
void |
resign()
|
protected void |
sectionDone()
|
protected void |
sectionStart(java.lang.String name)
|
protected void |
setVersion()
|
protected void |
start()
|
protected void |
start2()
|
protected void |
startCheckBoot()
Method which check all necessary boot conditions before starting the proxy. |
protected void |
startCreateIdFactory()
Method which creates the IdFactory to use |
protected void |
startDeterminePorts(Parameters parameters)
Method which determines the local ports to use |
protected void |
startDetermineSMTPServer(Parameters parameters)
Method which determines the local SMTP server to use |
protected void |
startDialog(Parameters parameters)
Method which sees if we are going to use a proxy for the pastry node, and if so initiates the remote connection. |
protected void |
startFetchForwardingLog()
Method which fetches the local user's forwarding log |
protected void |
startFetchLog()
Method which fetches the local user's log |
protected void |
startGlacier()
Method which initializes and starts up the glacier service |
protected void |
startGlobalMultiringNode(Environment env)
Method which starts up the global multiring node service |
protected void |
startGlobalNode()
Method which starts up the global ring node, if required |
protected void |
startGlobalPastryNode(Parameters parameters)
Method which starts up the local pastry node |
protected void |
startInsertLog()
Method which forces a log reinsertion, if desired (deletes all of the local log, so beware) |
protected void |
startLivenessMonitor()
Method which sees if we are using a liveness monitor, and if so, sets up this VM to have a client liveness monitor. |
protected void |
startLoadRingCertificates(Parameters parameters)
Method which loads the ring certificates ports to use |
protected void |
startMultiringNode()
Method which starts up the local multiring node service |
protected void |
startPast()
Method which starts up the local past service |
protected void |
startPastryNode()
Method which starts up the local pastry node |
protected void |
startPost()
Method which starts up the local post service |
protected void |
startRetrieveCAKey(Parameters parameters)
Method which retrieves the CA's public key |
protected void |
startRetrieveUser(Parameters parameters)
Method which retrieve the post user's certificate and key |
protected void |
startRetrieveUserCertificate(Parameters parameters)
Method which retrieve's the user's certificate |
protected void |
startRetrieveUserClone(Parameters parameters)
Method which sets up the post log we're going to clone, if we can't find ours |
protected void |
startRetrieveUserKey(Parameters parameters)
Method which retrieves the user's encrypted keypair |
protected void |
startRetrieveUsername(Parameters parameters)
Method which determines the username which POST should run with |
protected void |
startSecurityManager(Parameters parameters)
Method which installs a modified security manager |
protected void |
startShutdownHooks(Parameters parameters)
Method which installs shutdown hooks |
protected void |
startStorageManagers()
Method which initializes the storage managers |
protected void |
startUpdateForwardingLog()
Method which updates the local user's forward log |
protected void |
startUpdateUser(Parameters parameters)
Method which updates the user certificate from userid.certificate and userid.keypair.enc to userid.epost. |
protected void |
startVerifyUserCertificate(Parameters parameters)
Method which verifies the user's certificate |
protected void |
startVerifyUserKey(Parameters parameters)
Method which verifies the user's encrypted keypair |
protected void |
stepDone(java.lang.String status)
|
protected void |
stepDone(java.lang.String status,
java.lang.String message)
|
protected void |
stepException(java.lang.Exception e)
|
protected void |
stepStart(java.lang.String name)
|
protected void |
updateParameters(Parameters parameters)
|
boolean |
useUI()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String PROXY_PARAMETERS_NAME
public static java.lang.String[] DEFAULT_PARAMS_FILES
protected static final java.lang.String SUCCESS
protected static final java.lang.String FAILURE
protected static final int PAD_SIZE
protected Id ringId
protected IdFactory FACTORY
protected FragmentKeyFactory KFACTORY
protected DistPastryNodeFactory factory
protected PastryNode pastryNode
protected RingCertificate cert
protected PastryNode globalPastryNode
protected RingCertificate globalCert
protected int port
protected int globalPort
protected Node node
protected Node globalNode
protected Past immutablePast
protected Past realImmutablePast
protected Past mutablePast
protected DeliveryPastImpl pendingPast
protected PastImpl deliveredPast
protected GlacierImpl immutableGlacier
protected Post post
protected Timer timer
protected StorageManagerImpl immutableStorage
protected StorageManagerImpl mutableStorage
protected StorageManagerImpl pendingStorage
protected StorageManagerImpl deliveredStorage
protected StorageManagerImpl trashStorage
protected StorageManagerImpl glacierMutableStorage
protected StorageManagerImpl glacierImmutableStorage
protected StorageManagerImpl glacierNeighborStorage
protected StorageManagerImpl glacierTrashStorage
protected StorageManagerImpl aggrWaitingStorage
protected Cache immutableBackupCache
protected Cache pendingBackupCache
protected Cache deliveredBackupCache
protected java.lang.String pass
protected PostUserAddress address
public PostEntityAddress clone
protected PostCertificate certificate
protected java.security.KeyPair pair
protected java.security.PublicKey caPublic
protected PostProxy.PostDialog dialog
protected LogManager logManager
protected Parameters parameters
protected PostLog log
protected ForwardLog forwardLog
protected java.lang.String smtpServer
protected Environment environment
protected java.net.InetAddress localHost
protected Logger logger
public static java.lang.String version
Constructor Detail |
---|
public PostProxy()
Method Detail |
---|
protected void startLivenessMonitor() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
public java.net.InetAddress getLocalHost() throws java.io.IOException
java.io.IOException
protected void startCheckBoot() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startDialog(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startShutdownHooks(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startSecurityManager(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startRetrieveCAKey(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startUpdateUser(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startRetrieveUsername(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startRetrieveUserCertificate(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startVerifyUserCertificate(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startRetrieveUserKey(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startVerifyUserKey(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startRetrieveUserClone(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startRetrieveUser(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startLoadRingCertificates(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startDeterminePorts(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startDetermineSMTPServer(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startCreateIdFactory() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startStorageManagers() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startPastryNode() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected Id generateRingId(java.lang.String name)
name
- The name to generate a ring from
protected void startMultiringNode() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startGlobalPastryNode(Parameters parameters) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected java.net.InetSocketAddress[] getBootstrapsThatAreNotMe(java.net.InetSocketAddress[] addrs, int port) throws java.io.IOException
addrs
- port
-
java.io.IOException
protected void startGlobalMultiringNode(Environment env) throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startGlobalNode() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startGlacier() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startPast() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startPost() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startInsertLog() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startFetchLog() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startFetchForwardingLog() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void startUpdateForwardingLog() throws java.lang.Exception
parameters
- The parameters to use
java.lang.Exception
protected void setVersion()
protected void start2() throws java.lang.Exception
java.lang.Exception
protected void updateParameters(Parameters parameters) throws java.io.IOException
java.io.IOException
protected void start()
public void panic(java.lang.Exception e, java.lang.String m, java.lang.String params) throws java.lang.Exception
e
- The exceptionm
- The message why
java.lang.Exception
public void panic(java.lang.Exception e, java.lang.String m, java.lang.String[] params) throws java.lang.Exception
java.lang.Exception
public void panic(java.lang.String m)
public boolean useUI()
public void resign()
public int message(java.lang.String m, java.lang.String[] options, java.lang.String def)
public static void main(java.lang.String[] args)
protected void sectionStart(java.lang.String name)
protected void sectionDone()
protected void stepStart(java.lang.String name)
protected void stepDone(java.lang.String status)
protected void stepDone(java.lang.String status, java.lang.String message)
protected void stepException(java.lang.Exception e)
protected void dialogPrint(java.lang.String message)
public GlacierImpl getGlacier()
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |