Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2010 VMware Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: VMware Inc. - initial contribution /
 
 
 package org.eclipse.virgo.kernel.model.management;
 
 import java.util.Map;
 
 
 import  org.eclipse.equinox.region.Region;
Represents an artifact in the runtime model of this system. Acts as a generic interface that delegates to the richer type and translates types that are JMX-unfriendly to types that are JMX-friendly.

Concurrent Semantics
Implementations must be threadsafe

 
 public interface ManageableArtifact {

    
Start this ManageableArtifact
 
     void start();

    
Stop this ManageableArtifact
 
     void stop();

    
Update and refresh the contents of this ManageableArtifact

Returns:
true if refresh is successful, false if refresh is not done
 
     boolean refresh();

    
Uninstall this ManageableArtifact
 
     void uninstall();

    
Get the ManageableArtifacts that this ManageableArtifact depends on. The dependency can be of any kind and will be determined by the type of ManageableArtifact represented.

Returns:
This ManageableArtifact's dependents
 
     ObjectName[] getDependents();

    
Get the type of this ManageableArtifact

Returns:
The type of this ManageableArtifact
 
     String getType();

    
Get the name of this ManageableArtifact

Returns:
The name of this ManageableArtifact
 
     String getName();

    
Get the org.osgi.framework.Version of this ManageableArtifact

Returns:
The @{link Version} of this ManageableArtifact
 
     String getVersion();

    
Get the state of this ManageableArtifact

Returns:
The state of this ManageableArtifact
 
     String getState();
    
    
Get the Region of this ManageableArtifact or the empty string if this artifact does not belong in a region

Returns:
the Region of this ManageableArtifact or the enpty string if this artifact does not belong in a region
 
     String getRegion();

    
Get this ManageableArtifact's properties. This map is free to hold any properties contributed by any collaborator.

Returns:
This ManageableArtifact's properties
New to GrepCode? Check out our FAQ X